• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

help diagnosing high apache cpu/memory

mettle

New Pleskian
Hi can someone help me with diagnosing high cpu and memory usage by apache? It seems to be getting higher and higher. I can restart apache and its fine for a while but then spikes again. Thanks.

Screen Shot 2013-05-29 at 10.45.20 AM.png
 
Hello,

You will have to monitor your server with " top -d 2c" command and check which files is consuming the memory and CPU on your server

Thanks
 
Ok, what next? I see mostly httpd threads and apache as the user. How do I track down which sites/files are using the most resources? Would switching sites to use fastcgi help?
 
I switched my highest traffic site to fastcgi and this is the result. Yesterday at 11am I restarted apache, that was the sudden change. Then last night at around 2030 I restarted it again after changing the site to fastcgi. Seems to have made a difference, how do I know if this amount of memory usage is good or bad?

Screen Shot 2013-05-30 at 9.25.18 AM.png
Screen Shot 2013-05-30 at 9.25.12 AM.png
 
Where did you get those graphs? I've found my apache processes at 1.4 gig, and when apache is running memory usage goes from 1.9 gig to 8 gig (100% of memory).
I've severely reduced StartServers, MinSpareServers and MaxSpareServers but just 10 processes still consumes all my memory.

updated: found the graphs. Needed to install PHM (plesk health monitor).

But now see in health monitor that Real Memory Usage is pegged at 100% and Apache constantly growing using close to all the memory.
 
Last edited:
Back
Top