Portal Home > Knowledgebase > Articles Database > Determine Resource hog per account


Determine Resource hog per account




Posted by Frankky, 05-14-2014, 10:27 AM
I have a web server with 100 accounts on it but I have 1 account that is using more resources than the others and I have yet to figure why. It's using Wordpress and has no special plugins, no huge traffic, and yet every now and again, it spikes tremendously to the point where CloudLinux locked up the account until I changed the LVE settings for that account. Trying to analyze the problem, the only command/process I see using up resources is php. Is there a way to go deeper than that and find out what file might be the root cause for this? Any other ideas on how to troubleshoot on a per account basis in a CPanel/CloudLinux environment. Last edited by Frankky; 05-14-2014 at 10:28 AM. Reason: Syntax errors

Posted by Srv24x7, 05-14-2014, 10:46 AM
Hi, You may have to check for script that is leaking memory. Try optimizing the site once before trying anything else.

Posted by Frankky, 05-14-2014, 11:20 AM
I understand what you're saying, but how do I find which script? The only thing TOP returns is that PHP is taking alot of resources, would be nice to narrow it down a bit using something other than elbow grease...

Posted by edigest, 05-14-2014, 11:32 AM
Which limit is the container hitting and what settings are you changing in the LVE?

Posted by sysc, 05-14-2014, 11:39 AM
http://www.sysdig.org/ is a pretty amazing troubleshooting tool (assuming your os is supported)

Posted by Frankky, 05-14-2014, 11:53 AM
edigest: The CPU seem to get the most hits, but I've also seen instances where memory gets pretty high too. @sysc: Thanks for the tip, will surely take a look into it.

Posted by edigest, 05-14-2014, 01:06 PM
If it is only MEM or CPU without commensurate EPs, you should be able to track down the problem. Realizing you said "no special plugins" but plugins are often the problem with MEM or CPU usage. Some sitemap plugins, for example, are hogs. I don't have the plugin names handy (and I'm on my way out the door ...) but you can find WP plugins that show which [other] plugins are hogging MEM and/or CPU.

Posted by Frankky, 05-14-2014, 02:48 PM
You can see here a comparison between 2 sites I host on the same server, traffic averages are higher on the 506 but load is higher on 707 Graphs

Posted by Ronald_Craft, 05-14-2014, 09:17 PM
Honestly, I'm surprised nobody has recommended P3 Profiler yet. This is a pretty fantastic tool for troubleshooting where resource usage is coming from in individual Wordpress installations. A good idea is to check the access logs for the site and see where traffic is hitting. Odds are, being that it's Wordpress, there's going to be brute force attacks on wp-login.php. If the site is also running a lot of odd processes that are randomly capping out its process limit in CL, there's always the potential that it's actually been compromised too. Make sure everything is up-to-date if it isn't already. And run a maldet scan on the site for good measure.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
PHP + Basis Joomla (Views: 488)
BitNinja (Views: 538)
Eligibiliy for refund (Views: 506)