Jump to content

script to monitor php scripts on shared account - track down cpu usage ?


scanreg

Recommended Posts

Are there any scripts that can monitor the other scripts to determine which scripts are using how much cpu and produce a report over time?

 

Meaning, a script might be running okay now but it might spike at some other time, and I gotta figure out which scripts are the ones that are spiking.

 

Reason is that some script on one of my sites sometimes uses 30% of CPU but the host cannot identify which script it is and they shut down the site.

 

Any help MOST appreciated, the sites are my survival

 

Thanks

Link to comment
Share on other sites

"top" or "ps -ef"

 

Do you mean to run:

 

ps -ef

 

as a shell command?

 

Such as, telnet in, type in ps -ef, and then click the Enter key, and then some report comes up?

 

Also, what is the difference between "top" and "ps -ef" ?

 

Oh, will the ps -ef command provide a history, or is just at the moment activity?

 

Thanks so much for sure

Link to comment
Share on other sites

First, I recommend you to download: RCLI.  This can analyze your system and keep track of everything for you.

 

"top" or "ps -ef"

 

Do you mean to run:

 

ps -ef

 

as a shell command?

 

Yes.

 

Such as, telnet in, type in ps -ef, and then click the Enter key, and then some report comes up?

 

No, I definitely would not use telnet, very insecure.  But yes if you type in "top" or "ps -ef" you will see the processes pop up with, time, CPU usage, etc...

 

Oh, will the ps -ef command provide a history, or is just at the moment activity?

 

Current, that's why if you write a script or use the tool I suggested then you can store this information somewhere.

 

Hope this answers your question and fixes your problem.

Link to comment
Share on other sites

First, I recommend you to download: RCLI.  This can analyze your system and keep track of everything for you.

 

Thank you, thank you :-)

 

I went to the above URL but it generated an error, said it was an invalid download group

 

What is RCLI ?

 

I couldn't find RCLI on their site

 

Many many thanks :-)

 

 

Link to comment
Share on other sites

Thanks

 

Created an account (maybe I gotta do email validation, will check), haven't found download so far but will keep at it, super thanks  :)

 

After you sign up you should see the download for the different platforms.  You should download the gz file locally and FTP it to your site and set it up there.

 

If you just need something simple then SSH to your server and use the command "top" or "ps -ef" to view the details of the current processes.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.