lighttpd configuration for web server residing on embedded system
Added by arysha almost 16 years ago
I have setup lighttpd as a web server on my embedded system. This server serves MPEG files as requested by clients. The client sends Range GET requests. Whenever request comes in for a large file the CPU-load on the server goes to 50% as returned by top. Is there a configuration option tht I can set to lower the CPU load. I'm an absolute newbie with lighttpd and web servers in general so any kind of detailed instructions/help would be appreciated.
Thanks,
Arsha
Replies (4)
RE: lighttpd configuration for web server residing on embedded system - Added by nitrox almost 16 years ago
http://redmine.lighttpd.net/projects/1/wiki/Server.range-requestsDetails
You might want to make sure your version is atleast at a level supporting this option.
RE: lighttpd configuration for web server residing on embedded system - Added by arysha almost 16 years ago
The range-request option is enabled. I came across the traffic-shaping document which talks about the server.kbytes.per.second option. This should control the outgoing bytes and thereby control the CPU load. Since it is serving media files which can have varying bitrates, I'm not sure if this option is the best fit for my case. Is there any throttling option available?
Thanks,
Arsha
lighttpd.conf (11.4 KB) lighttpd.conf | The configuration file being used |
RE: lighttpd configuration for web server residing on embedded system - Added by nitrox almost 16 years ago
server.kbytes.per.second is not working as intended, best is to go with connection.kbytes.per.second or disable it.
RE: lighttpd configuration for web server residing on embedded system - Added by arysha almost 16 years ago
Yes, I noticed that server.kbytes.per.second has problems and it's not limiting the total throughput to the set value. So, with connection.kbytes.per.second would I be able to keep the CPU load low?
Are there any other options that might help in keeping CPU usage low?
How would setting the network-backend option help in performance.
Thanks,
Arysha