Tuesday, November 28, 2017

JMeter – Server Performance Metrics Collector




JMeter has many listeners which provides information such as Response Time,Error Percentage,Throughput and etc.

But Server Performance Metrics Collector is used to collect server performance like CPU Utilization,Memory Utilization etc..

Here we will see the steps one by one to Configure Server Performance Metrics Collector.

Step 1: Install Server Agent in Server Machine

   1) Download the latest Server Agent from JMeter Website.
   2) Unzip the file and move  in some folder in the server
       (Java should be installed in the server).
   3) Then Open the port 4444(Default) on the server machine.
   4) To Start the Server Agent use startAgent.bat(Windows) / startAgent.sh(Linux).
   5) 5) startAgent.bat -tcp-port 5555(Use this command for different port).

Step 2: PerfMon Metrics Collector

    1) This is the separate listener ,which can be downloaded from JMeter
         (Standard Set Plugins).
    2) Unzip the plugin folder and copy the files to that and paste in "JMeter/lib/ext" folder.
    3) Otherwise use Plugin Manager in the JMeter to download the plugins.
    4) Then Restart JMeter .
    5) Now in listeners , PerfMon Metrics Collector can be seen.

Step 3: How it Works

    1) Open JMeter , Create JMeter Project with basic elements .
    2) Then add PerfMon Metrics Collector in the JMeter Test Plan.
    3) Before adding any stuff in PerfMon , Make sure Server Agent is running in the
        Server Machine.
    4) Then add a Server IP , Port and Metrics to Collect in the as given in the
        image below.
    5) Thats it , Start the JMeter Test Now.



Thanks,

A M Balaji

No comments:

Post a Comment