Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 213
  • Last Modified:

Find Poorly Optimized Scripts

My memory and CPU usage have been going quite high lately, and I am wondering what is the easiest way to monitor the scripts running on my server to find out which ones are using the most CPU and memory.  I need something that does more than top in SSH and can help me pinpoint it more than the page in WHM that shows top processes.
0
jls33fsls
Asked:
jls33fsls
  • 3
  • 2
1 Solution
 
periwinkleCommented:
What more than top are you looking for?
0
 
jls33fslsAuthor Commented:
I have been optimizing all the scripts on my site and the server load problem has not gone away.  I want to try and find what is causing the problem, but top just shows things like what user the process is from and nothing very specific.  I want to try and pinpoint certain scripts that are causing the problem.
0
 
periwinkleCommented:
Try doing:

ps ax

to show what processes are running (and the parameters they are running with) at the time of the problems.  Additionally, check the web logs and error logs, as well as the message logs.
0
 
jls33fslsAuthor Commented:
That doesn't help me see which ones are causing the load problem though.
0
 
periwinkleCommented:
Looking at the documentation and faqs for Cricket, that might work for you:

http://cricket.sourceforge.net/
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now