使用Perfmon插件监控Jmeter性能 [英] Jmeter performance monitoring using perfmon plugin

查看:715
本文介绍了使用Perfmon插件监控Jmeter性能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Jmeter perfmon插件来监视服务器的cpu和内存利用率. 服务器托管在linux计算机上,并且正在运行apache和postgresql.

I am trying to use Jmeter perfmon plugin to monitor cpu and memory utilisation of server. Server is hosted on linux machine and is running apache and postgresql.

我正在linux服务器中运行serveragent,并在Jmeter性能指标收集器中添加了CPU和内存参数.

I am running serveragent in linux server and added cpu and memory parameters in Jmeter perfmon metrics collector.

现在,当我运行Jmeter测试时,将同时使用apache和postgrelsql.我可以看到一些数据进入了性能收集器.

Now when I run my Jmeter tests then both apache and postgrelsql are used.I can see some data coming in performance collector.

1)运行测试时,如何找到apachae和progresql的cpu利用率?

1)How can I find cpu utilization of apachae and progresql when test are run?

2)我可以看到内存以一条直线进入.我在其他一些线程中读到它是因为JVM不断使用内存.我无法理解为什么会发生这种情况.服务器代​​理应提供所有进程的内存利用率,而不是JVM.在这种情况下如何获得实际的内存使用情况?

2) I can see memory is coming as a straight line. I read in some other threads its because of JVM constant memory usage.I am not able to understand why this is happening.Server agent should give memory utilization of all processes rather than JVM. How can I get actual memory usage in this case?

推荐答案

apache或postgres都不使用JVM,确定要运行服务器代理在正确的主机上?

Neither apache nor postgres use JVM, are you sure you are running Server Agent on a correct host?

关于您自己的问题:可以跟踪每进程指标 ,例如,您可以应用以下配置:

With regards to your question itself: it is possible to track Per-Process metrics, for example you can apply configuration like:

您将需要替换:

  1. localhost具有运行apache,postgres和JMeter服务器代理的计算机的主机名或IP地址
  2. 4949具有您的apache实例的真实PID
  3. 3521具有您的postgres实例的真实PID
  1. localhost with the hostname or IP address of the machine where apache, postgres and JMeter server agent are running
  2. 4949 with the real PID of your apache instance
  3. 3521 with the real PID of your postgres instance

完成后,您应该会看到4个图表,分别代表apache CPU使用率,apache内存使用率,postgres CPU使用率和postgres内存使用情况.

Once done you should see 4 charts standing for apache CPU usage, apache memory usage, postgres CPU usage and postgres memory usage correspondingly.

请参见如何监控您的服务器健康状况"JMeter负载测试期间的性能" 文章以获取更多信息.

See How to Monitor Your Server Health & Performance During a JMeter Load Test article for more information.

这篇关于使用Perfmon插件监控Jmeter性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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