如何在负载测试期间测量 CPU 和内存 [英] How to measure CPU and memory during load test

查看:34
本文介绍了如何在负载测试期间测量 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的角度,可以使用jconsole 或编写您自己的 代码监控内存使用情况.

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

  1. 测量 Java 应用程序的 CPU 和内存消耗
  2. javasysmon 在 github 上
  3. dstat 适用于 Linux,perfmon 适用于 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 和内存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆