Reputation: 571
I have used jmeter for capturing the CPU and memory configurations of each component on my server using pid of that particular component.
I am able to get the results but i am not able to understand the results of the cpu and memory percentage of the each component.
I am bit confused how the jmeter is calculating the results.
Can anyone please explain me how to understand the results.
Please find the graph generated by jmeter when i calculated the cpu and memory percentage of tomcat.
Upvotes: 0
Views: 1173
Reputation: 168002
On multi-core systems you can easily get percentages greater than 100% so the maximum number would be number of cores * 100%
.
References:
Upvotes: 0
Reputation: 2978
CPU usage means how much of the CPU's total resources are being utilized at a given moment.
JMeter Perfmon metrics collector actually collects the server metrics (i.e CPU usage) for every second. In your graph, it just collects the CPU usage of process id "99696" for 11 minutes 17 seconds. You can easily match the JMeter results with your process CPU usage. For this, you can run the below commands on your server:
ps -p <pid> -o %cpu //This will return the CPU usage of the process while you run the command.
To check the CPU usage for every second, just run the below command and try to match with the JMeter results:
top -p <pid> //use your process ID like 99696 in <pid>
If you don't know the actual meaning of CPU usages of any process, please check this.
Upvotes: 1