I'm hoping someone can point me in the right direction here as I'm a bit confused and at a dead end!
My Plesk server hosts around 100 domains and is secured with ASL.
Everything works perfectly fine 95% of the time, when all of a sudden the memory usage of one of the apache threads grows massive and uses GBs of swap.
Once it uses that amount, the thrashing occurs, spiking the load and bringing the server to a crawl.
That thread does eventually die if it is left alone (i.e. if I'm not at a terminal to notice it and restart apache on my own).
I've made my httpd.conf server config very conservative to test this and I think I've ruled out over stretching the server's capabilities (Pentium(R) Dual-Core CPU E6500 @ 2.93GHz, 4GB Ram) and all I can think of now is a script on the server has a memory leak.
My question(s)
- Does that seem a correct guess at this stage?
- How can I go about identifying either which vhost is causing the spike or (even better) which script is?
- Is there anything else I should be looking at here?
Thanks in advance!