Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 216
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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