I rent a small virtual server at 1und1.de. (Link, but German only) (2GB RAM dynamic, 512MB at least, 20 GB HDD) I choose to run a Ubuntu 8.04 LTS as operating system (64 Bit). I installed apache2 + php5 + mysql via the Ubuntu repositories and later eAccelerator.
I running some development stuff and a production site. This site is a kind of directory and has a few visitors (250 each day) and a lot of pages (about 7,5k). Every few days the servers freezes. This means, it's up, could be pinged, but any other action will result in "server refused connection". Looking into the admin panel it says that my kmemsize is to high and also there a lot of apache processes that were spawned.
For me it seems that my apache consumes all my ressources (and it also seems, that these freezes seems to start if Google or another crawler start to crawl the page).
Then I tried to avoid this freezes:
- I lowered MaxKeepAliveRequests and KeepAliveTimeout in the Apache config
- I set MaxRequestsPerChild in the setting of the prefork settings, to keep Apache workers cleaned more often.
This seems to improve the situation, but still freezes are happening.
Anyone any idea what could / should be changed?