I have a LAMP server with following configuration -
- 32 Bit OS Debian Etch
- Apache 2.2
- PHP 5.2
- MySQL 5.0.32
Hardware
- 3 GB memory
- 2 Intel(R) Xeon(R) 1.86GHz CPUs
Each Apache process taking around 10mb mememory. Apache access log is disabled. Apache, MySQL and PHP is installed using apt-get.
Peak of numbers of hits per second of Apache is 415 hits / seconds
Need to know if its too much for the as my Apache needs a restart every half hour due to memory used up and swapping.
What can be possible wrong with it, please help ....
Adding Apache configuration :
Timeout 300
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15
<IfModule mpm_prefork_module>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 100
</IfModule>
<IfModule mpm_worker_module>
StartServers 4
MaxClients 600
MinSpareThreads 50
MaxSpareThreads 150
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>