2.7 <, 2.7
Enter the <script header = header> code type
Background monitoring
Cd/nmon
./Nmon_x86_64_sles11-f-s 30-c 120
The parameters are as follows:
-F output file in standard format:
-S: sample every n seconds. The value is 30.
-C: the number of samples taken out. The value here is 120, that is, monitoring = 120 * (30/60/60) = 1 hour.
The formula for calculating this number by hour is: c = h * 3600/s. For example, if you want to monitor for 10 hours and sample every 30 seconds, c = 10*3600/30 = 1200
After the command is started, a monitoring file is generated in the directory where nmon is located, and resource data is continuously written until monitoring is completed for one hour. These operations are automatically completed without manual preparation, testers can continue to perform other operations. If you want to stop the monitoring, You need to query the process number through "# ps-ef | grep nmon", and then kill the process to stop monitoring.