Originally posted by eL-ankebut
I am serving large files through apache web server. But in sometime apache stops to respond so I have to restart the web server.
Sounds like you don't have enough apache server processes available.
Bump up the "MaxClients" number, and/or check out mod_ioboost which will immediately free up apache to do other stuff rather than serve up the big files.
Originally posted by NWSTech hmmm, have you thought of setting up a second webserver app on a different port to server the files - you could then use a program that is less heavy on usage and ram than apache
just my .2c
yes i tried to use thttpd but the same problems occurred again, can you recommend another web server software?
Originally posted by eL-ankebut I've tried to search mod_ioboost in google which turned out nothing. A search on ioboost gave a few results but i didnt work out.
Can you please post here the url of website where i can find it
mod_boost and MaxClients are values that can be adjusted in httpd.conf on your server.
I would also suggest tweaking up your Apache before concidering other webservers, as I suspect you'll end up with more-less same problem.
I am not 100% sure, but I think you can instruct Apache to send files, if not directly, but then to lower the memory buffer before sending files (like, load 1% of file in memory (which would be like 1 mb, if file is 100MB) and then send it, then load again 1% etc etc etc).
Also take a look at: http ://httpd.apache.org/ docs-2.0/mod/core.html#enablesendfile
(dunno, what files are 'static' nor what files are you offering for download).
And just one suggestion, try (costs nothing to mail people @tucows, download.com etc to get you started in good direction (will certanly not offer you complete solution, but...)
I would try changing the MaxClients. By default apache has a small value for MaxClients, I forget what it is though.
But once you do this more people can connect at a time and since you are serving large files once one person is connected they are there for a long time.
Semi-managed dedicated servers at unmanged prices, visit www.bit42.com