Record memory and processor usage of a particular process using top

This small snippet of code will help you monitor the memory and processor usage of a process over time in the background and redirect the output to a file. You can later use the file to analyze its behaviour.

nohup top -d 180 -p 1310 -b > top-firefox.rec &

tejainece

Ravi Teja is a technology entrepreneur with interest in Embedded Systems, Software engineering, Operating Systems, Web development, Cloud computing, Machine learning, etc.

More Posts - Website

Follow Me:
LinkedInGoogle Plus