I am trying to reduce memory usage and increase speed. I am serving a small webservice that receives a max of 800 hits/sec and an average of 400 hits/sec.
The server is a 2 xeon dual core 3.0GHz with 8 Gb of ram.
2Gb is taken by the MySQL 6Gb are left for the rest, which I think that will allow me to take no less than 5Gb for the lighttpd.
How do I have to setup the lighttpd to handle that traffic, regardless of the HW being able, I am interested on optimizing it. I know that the real deal here might be the process involved on the webservice, but that is other story. But it is based on PHP5 and with eAccelerator (it really makes a difference).
I am trying to speed this up because the performace is not good enough. If I increse the number of MaxClients the server starts swapping which is terrible.
I hope I have explained myself properly.
For the apache2 I was using this conf:
<IfModule mpm_prefork_module>
StartServers 5
MinSpareServers 5
MaxSpareServers 100
ServerLimit 1000
ListenBacklog 1000
MaxClients 700
MaxRequestsPerChild 0
</IfModule>
Thanks!