CPU/RAM usage log over a period of time to file on CentOS

Posted by joel_gil on Super User See other posts from Super User or by joel_gil
Published on 2010-06-07T22:05:04Z Indexed on 2010/06/07 22:12 UTC
Read the original article Hit count: 204

Filed under:
|
|
|
|

Hi everyone Im looking for an app pr line of code that could let me observe a process, save the info in a number of variable and then put the gathered info on a file.

Ive been trying with variations of top but no luck. I am running several CentOS virtual servers, VM is 2gb ram 2 processor.

Maybe a script that works over a specified amount of time while writing lines with the info on a text file so at the end i can have a sort of table with the data.

The thing is Im going to stress test the server and I would like to have the data to make some statistics.

Any comments and suggestions are most welcome.

© Super User or respective owner

Related posts about linux

Related posts about centos