linux - how to monitor a processes memory usage over time - ubuntu -


I want to see the process given in Unix over time, how the time memory increases (this is a long lasting Work)

I think I can

  ps -aux | Grep PID   

Run it from the cron every 5 minutes, but it seems that there should be a better way.

Can I use Sir to do this?

I use it:

  $ ps -o rss $ (Pgrep executablename)   

Put the clock in a loop at a time or use the clock to keep track of time with the tail. You can also tee it in a file and Gnuplot can plot it for you and refresh every few seconds.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -