如何在负载测试期间测量CPU和内存

如何在负载测试期间测量CPU和内存

本文介绍了如何在负载测试期间测量CPU和内存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在异构环境中使用JMeter,我们希望在运行服务或Web应用程序的服务器上产生大量负载时测量CPU和内存。你会建议使用什么?是否有可用的软件解决方案(开源或商业)记录文件或数据库中的CPU和内存使用情况?

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?

谢谢!

推荐答案

从java的角度来看,你可以使用或自己编写以监控内存使用情况。

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




  1. for linux和perfmon for windows。

  1. Measure CPU and memory consumption of a Java application
  2. javasysmon on github
  3. dstat for linux and perfmon for windows. Read more

这篇关于如何在负载测试期间测量CPU和内存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-06 02:14