How to measure CPU and memory during load test

混江龙づ霸主 提交于 2019-12-02 21:35:49
zengr

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
Stephane

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

You could take a look at Cacti.

It could collect resource usages like CPU, MEM easily with built-in templates and display them in nice graphics. Both Windows and Uni* are supported.

One you install the Perfmon plugin, I also had to install the server agent, and open the firewall port 4444.

Here's a link which I found super useful.

http://grosan.co.uk/web-application-performance-testing-using-apache-jmeter-part-2-monitor-server-resources/

Perhaps you can take a look to collectd if you run in some unix/linux flavour. It will bring you not only CPU but also memory, Disk IO, network and a good number of plugins available.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!