问题
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:
localhost
with the hostname or IP address of the machine where apache, postgres and JMeter server agent are running4949
with the real PID of your apache instance3521
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