Friday, May 18, 2012

Unix Performance monitoring by Loadrunner

Recently I was working on an application where I had requirement of monitor Unix Boxes, So far I have worked on Windows performance counter and got opportunity to get familiar with the Unix performance counters.
To monitor Unix System Resources, you will require rstatd. The rstatd daemon is a server that returns performance statistics obtained from the kernel. The rstatd daemon is normally started by the inetd daemon.
In most cases, rstatd is already configured and started from inet. Therefore, you should verify if the rstatd daemon is already running using rup command. The command should report various machine statistics, including rstatd configuration. Run the following command to view the machine statistics:

rup host

 Once you've enabled RSTATD it's a simple matter to tell your LoadRunner controller to monitor the UNIX ststistics for the server under test. All you need is it's IP address. Once you add the server to the list of monitored servers iN LoadRunner Controller you se a number of counters which LoadRunner can monitor.


 Many of these counters are similar to the windows performance counters, Below table describes the Unix counters as  well as their equivalent windows counter



3 comments:

  1. Thank you very much for sharing!
    Excellent, simple yet quite informative

    I request you to post a blog on WebLogic Server Performance counters.

    ReplyDelete
  2. Hi Shashikant! This is very helpful. However, I tried this and for some reaosn, still can not see the stats on LoadRunner. I am using LoadRunner 11.0 on a Windows 2008 Server and my UNIX box is Ubuntu. I followed this blog for Ubuntu instructions:http://chenglee.wordpress.com/2010/04/20/install-rstatd-on-ubuntu-9/. Any pointers?

    ReplyDelete
  3. Hi,
    I am trying to access UNIX resources from LR. We configured the rstatd process.
    First time we were able to access the UNIX resources through Loadrunner but after 5-6 min somehow the daemon process got killed.
    Below is the error
    Monitor name :UNIX Resources. Internal rpc error (error code:2). Machine: 10.80.16.143. Hint: Check that RPC on this machine is up and running. Check that rstat daemon on this machine is up and running (use rpcinfo utility for this verification). Details: RPC: RPC call failed.
    RPC-TCP: recv()/recvfrom() failed.
    RPC-TCP: Timeout reached. (entry point: Factory::CollectData). [MsgId: MMSG-47197]

    I checked the configurations, they are enabled. We followed the below link
    http://www.unix.com/aix/126016-how-start-rstatd-daemon.html
    Could you suggest on this!

    ReplyDelete