Install sysstat, run the pidstat command, sysstatpidstat
Reprinted please indicate the source: http://blog.csdn.net/supera_li/article/details/45221211
Install sysstat
Insufficient permissions, enter sudo-u admin before the command
Grant the File Execution permission chmod + x [firename]
1.download sysstat-10.0.5.tar.gz to local
2. Use the rz command to upload data through CRT
3. unzip the zip: unzip sysstat-10.0.5.tar.zip
Unzip gz: tar-zxvf sysstat-10.0.5.tar.gz
4. cd systat-10.0.5 in
5. Install configuration./configure
6. make
7. make install
About decompression:
1. unzip: Decompress a compressed file with multiple files
2.tar.
Pidstat command
Pidstat command icons for Performance Tuning
When pidstat is used for problem locating, the following commands are often used:
Pidstat-u 1
Pidstat-r 1
Pidstat-d 1
The preceding command takes one second as the information collection cycle to obtain the statistics of cpu, memory, and disk IO respectively.
References:
[1] Linux running process real-time monitoring pidstat command details http://www.cnblogs.com/ggjucheng/archive/2013/01/13/2858874.html
[2] sysstem Installation
Http://blog.csdn.net/lunarnan/article/details/7655069
[3] decompress unzip, tar http://blog.163.com/yao_knight/blog/static/1340341052012491213941/