Server side monitoring in JMeter

15 Apr

Running loadtest is a simple thing with jmeter.But capturing various metrics leads some investigation.The Server side metrics are important while running performance based tests.Because if sometimes the server box running other services apart from our application and that will take more load on the system and leads more response time

So that to analyzing the server side metrics are important.Here you go the basic server side metrics

  • CPU
  • memory
  • Disk I/O
  • Swap
  • Networks I/O

 

By using Perfmon plugin http://code.google.com/p/jmeter-plugins/wiki/PerfMon we can easily get those metrics.

Steps to follow:

  1. Download the JMeter Plugin here http://code.google.com/p/jmeter-plugins/
  2. Extract and copy the files into <JMeter_dir>/lib/ext
  3. Copy the ServerAgent (comes with the plugin package) into your server machine

                    To start the agent, simply run startAgent bat/sh file. It will open UDP/TCP server ports where JMeter will connect and query the metrics. Some information will be printed to standard output, informing you on problems gathering metrics

./startAgent.sh --udp-port 0 --auto-shutdown

The --interval <seconds> argument can be used to change metrics collection frequency. 

 

4.Add the PerfMon listener into the jmeter adn provide server Host name 

5.Save the graph

 

More details Refer this : http://code.google.com/p/jmeter-plugins/wiki/PerfMon

Advertisements

7 Responses to “Server side monitoring in JMeter”

  1. sudhajoyus 05/13/2014 at 12:45 pm #

    HI Britto,
    Java JDK/JRE is required to install in Server , for Server side monitoring in JMeter .
    as you said in blog Copy the ServerAgent (comes with the plugin package) into the server machine.

  2. sudhajoyus 05/13/2014 at 12:50 pm #

    HI Britto,
    Java JDK/JRE is required to install in Server , for Server side monitoring in JMeter .
    as you said in blog Copy the ServerAgent (comes with the plugin package) into the server machine. I hve copied the server Agent in to the server , and my local system I added ‘listner – jp@gc PerfMon Matric Collector, when I run the JMeter Script I am Getting Error – ” ERROR: java.net.ConnectException: Connection refused: connect ”
    Help Me Plz…

  3. santosh 11/06/2014 at 5:58 pm #

    can some tell me what X- axis and Y axis means ….how to read graph of Disk IO

    i have 1 2 3 4 5 6 7 8 9 at y axis and time at x- axis what is the unit of y axis
    and one more thing at the top it is written (x100)

  4. parvez 12/04/2014 at 12:15 pm #

    Hi Britto,

    Can you explain what the port number should be given in perfmon listener ? is there any default port .. how does this listener exactly works ??

    Thanks
    Parvez

  5. Zahid Iqbal 07/07/2015 at 4:05 pm #

    Awesome Artical Really i have searching this type of valuable information From a lot of days i found satisfaction when Read your blog Thanks for giving this type blog and also please Read JMeter Plugins- PerfMon Server Agent

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: