Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to measure CPU and memory during load test

Tags:

We are using JMeter in a heterogeneous environment and we would like to measure CPU and memory while we are producing heavy load on a server where our service or web application is running. What would you recommend to use? Is there any software solution (open source or commercial) available which records CPU and memory usage in a file or to a database?

Thank you!

like image 944
Thomas Avatar asked Nov 16 '10 09:11

Thomas


2 Answers

You can use our JMeter perfmon plugin to measure CPU, memory and a lot of other metrics:

like image 187
Stephane Avatar answered Oct 18 '22 10:10

Stephane


From the java perspective, you can use jconsole or write your own code to monitor the memory usage.

  1. Measure CPU and memory consumption of a Java application
  2. javasysmon on github
  3. dstat for linux and perfmon for windows. Read more
like image 29
zengr Avatar answered Oct 18 '22 09:10

zengr