How to Monitor Metrics in jmeter
Sub: They are two things in on-prime one is with overall CPU and memory i.e., server-level
another one is to validate the process level i.e, PID while checking with TOP command in Linux or
monitoring in permon in windows.
1. For monitoring Linux server level we can use "SSHMon Sample Collector" which
- sar -u 1 1 |awk '/^Average:/{print 100-$8}' For CPU- sar -b 1 1 | awk '/^Average:/ {print 0 + $2}' For I/O
- sar -S 1 1 | awk '/^Average:/ {print 0 + $6}' For SWAP
This collector gets the samples with out agent and these are for global Samples for the hosts
2. For Monitoring Individual processes like tomcat, notification microservice, Orientdb service, and java services we need to install Perfmon agent in Linux servers.
Steps to install perfmon :
1. create a folder and give full permissions like sudoers and download the software from wget
wget https://github.com/undera/perfmon-agent/releases/download/2.2.3/ServerAgent-2.2.3.zip .
2. unzip ServerAgent-2.2.3.zip
3. sudo chmod 777 startAgent.sh
4. sh startAgent.sh
in JMeter you can get the details from perfmon
in the command : pid=9843:percent PID is the process id
Comments
Post a Comment