« Shannon's report to our musicians | Main | Location of artists now given at Magnatune »

February 10, 2006

Comments

John Buckman

Whoops, turns out thttpd was piggy with its memory and he3 was running slowly this morning, with a Unix load average of 1.5 and mult-second latency on the command line (telnet).

So, now I'm back to mathopd. I found a new web page command in mathopd ("dump") which can show me how many simultaneous listeners we have. The server was set to what I thought was a very generous 1000 listeners, but it turns out we were hitting maximum that most of the day. Now it's set to 5000 max listeners, and I'm storing the # of listeners on a per-minute basis to see if we ever max out.

I also found that I had set the per-connection buffer at 64k, rather the default 12k, and this was causing mathopd to use lots of memory, which caused memory swapping and thus high machine load. I couldn't find any setting like this for thttpd, which is unfortunate because I think the high load on the machine was due to the high memory usage of thttpd.

Mathopd reports right now:

Uptime: 5354 seconds
Active connections: 814 out of 5000
Max simultaneous connections since last dump: 814
Forked child processes: 0
Exited child processes: 0
Requests executed: 73791
Accepted connections: 64473
Pipelined requests: 285

Manish

What is with this lady's voice at the end of every preview song? I know it is a preview song 'cause all the tag fields has the word "preview" in big letters. I also know which artist it is as it has the artist/album in the tags. Then why this announcement? It kinda ruins the experience.

Glukx Ouglouk

John decided to put this anouncement at the end of each track because magnatune songs can also be heard on shoutcast radio stations, and people who listen to magnatune radios can't know which artist is playing when they hear something great (plus for other reasons I don't remember, I think). He explained that in this blog and in the forum.

Wikipedia uses lighttpd for their high-load image-server, and it seem to do the job very well. Funny, that thttpd doesn't compare their browser to lighttpd.

http://www.lighttpd.net/benchmark/

Conclusion:
lighttpd is 4-6 times faster in every setup than apache and outperfoms thttpd for large files.

Might be worth a try.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been saved. Comments are moderated and will not appear until approved by the author. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Comments are moderated, and will not appear until the author has approved them.