Jmeter performance monitoring using perfmon plugin

早过忘川 提交于 2019-12-12 04:19:32

问题


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.

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

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

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

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?


回答1:


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:

You will need to replace:

  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

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

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



来源:https://stackoverflow.com/questions/44963028/jmeter-performance-monitoring-using-perfmon-plugin

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