JMETER - MONITOR TEST PLAN



Similar documents
Apache JMeter HTTP(S) Test Script Recorder

The data between TC Monitor and remote devices is exchanged using HTTP protocol. Monitored devices operate either as server or client mode.

SAIP 2012 Performance Engineering

CORISECIO. Quick Installation Guide Open XML Gateway

Customer Tips. Configuring Color Access on the WorkCentre 7328/7335/7345 using Windows Active Directory. for the user. Overview

Introduction. Installation of SE S AM E BARCODE virtual machine distribution. (Windows / Mac / Linux)

Configuring ActiveVOS Identity Service Using LDAP

Novell ZENworks Asset Management 7.5

Deploying Intellicus Portal on IBM WebSphere

EMC Documentum Connector for Microsoft SharePoint

Sentral servers provide a wide range of services to school networks.

CA APM Cloud Monitor. Scripting Guide. Release 8.2

Smartphone Pentest Framework v0.1. User Guide

LICENSE4J AUTO LICENSE GENERATION AND ACTIVATION SERVER USER GUIDE

LAE 5.1. Windows Server Installation Guide. Version 1.0

NSi Mobile Installation Guide. Version 6.2

escan SBS 2008 Installation Guide

RemoteTM LAN Server User Guide

StreamServe Job Gateway

SIEMENS. Teamcenter Web Application Deployment PLM

Upgrading User-ID. Tech Note PAN-OS , Palo Alto Networks, Inc.

EQUELLA. Clustering Configuration Guide. Version 6.0

SSO Plugin. J System Solutions. Upgrading SSO Plugin 3x to 4x - BMC AR System & Mid Tier.

Managing Qualys Scanners

Basic Exchange Setup Guide

JMeter Testing. Identify Preformance acceptance criteria: Identfy throughput,response time and resource utilization goals and constraints.

BusinessObjects Enterprise XI Release 2

PRODUCT WHITE PAPER LABEL ARCHIVE. Adding and Configuring Active Directory Users in LABEL ARCHIVE

Livezilla How to Install on Shared Hosting By: Jon Manning

CONSOLEWORKS WINDOWS EVENT FORWARDER START-UP GUIDE

RemoteTM Web Server User Guide. Copyright Maxprograms

24x7 Scheduler Multi-platform Edition 5.2

Configuring Cisco CallManager IP Phones to Work With IP Phone Agent

Project Management (PM) Cell

Lucid Key Server v2 Installation Documentation.

So in order to grab all the visitors requests we add to our workbench a non-test-element of the proxy type.

Configuring Color Access on the WorkCentre 7120 Using Microsoft Active Directory Customer Tip

Enterprise Content Management System Monitor. How to deploy the JMX monitor application in WebSphere ND clustered environments. Revision 1.

Dell UPS Local Node Manager USER'S GUIDE EXTENSION FOR MICROSOFT VIRTUAL ARCHITECTURES Dellups.com

13.1 Backup virtual machines running on VMware ESXi / ESX Server

Configuring Nex-Gen Web Load Balancer

TECHNICAL NOTE SETTING UP A STRM UPDATE SERVER. Configuring your Update Server

Informatica Corporation Proactive Monitoring for PowerCenter Operations Version 3.0 Release Notes May 2014

IUCLID 5 Guidance and Support

Basic Exchange Setup Guide

SOLR INSTALLATION & CONFIGURATION GUIDE FOR USE IN THE NTER SYSTEM

User Replicator USER S GUIDE

Setting up Sharp MX-Color Imagers for Inbound Fax Routing to or Network Folder

ZeroTurnaround License Server User Manual 1.4.0

Integration Guide. SafeNet Authentication Service. Oracle Secure Desktop Using SAS RADIUS OTP Authentication

Various Load Testing Tools

Knoa MicroStrategy Web Configuration Table of contents

Deploying BitDefender Client Security and BitDefender Windows Server Solutions

Spam Marshall SpamWall Step-by-Step Installation Guide for Exchange 5.5

IBM WebSphere Application Server V8.5 lab Basic Liberty profile administration using the job manager

Application Note. Gemalto s SA Server and OpenLDAP

How To - Implement Single Sign On Authentication with Active Directory

Magento Search Extension TECHNICAL DOCUMENTATION

Rev 7 06-OCT Site Manager Installation Guide

Configure Single Sign on Between Domino and WPS

Summer Internship 2013

EVALUATION ONLY. WA2088 WebSphere Application Server 8.5 Administration on Windows. Student Labs. Web Age Solutions Inc.

Tivoli Endpoint Manager BigFix Dashboard

Jive Connects for Microsoft SharePoint: Troubleshooting Tips

JBoss AS Administration Console User Guide. by Shelly McGowan and Ian Springer

ISSN: (Online) Volume 2, Issue 1, January 2014 International Journal of Advance Research in Computer Science and Management Studies

Tutorial: Load Testing with CLIF

LogMeIn Network Console Version 8 Getting Started Guide

Pcounter Web Administrator User Guide - v Pcounter Web Administrator User Guide Version 1.0

How to install phpbb forum on NTU student club web server

Virtual Appliance Setup Guide

Web Application Testing. Web Performance Testing

FileMaker Server 10 Help

FlexSim LAN License Server

BMC Remedy Integration Guide

IBM WEBSPHERE LOAD BALANCING SUPPORT FOR EMC DOCUMENTUM WDK/WEBTOP IN A CLUSTERED ENVIRONMENT

Dynamic DNS How-To Guide

Intelligent Power Protector User manual extension for Microsoft Virtual architectures: Hyper-V 6.0 Manager Hyper-V Server (R1&R2)

Immersion Day. Creating an Elastic Load Balancer. Rev

How To Integrate IIS6 and Apache Tomcat

New Relic & JMeter - Perfect Performance Testing

Volume SYSLOG JUNCTION. User s Guide. User s Guide

Installing The SysAidTM Server Locally

Web-JISIS Reference Manual

Network Monitoring with SNMP

Apache Configuration

Installation Instructions

Salesforce Integration

FileMaker Server 12. FileMaker Server Help

Crawl Proxy Installation and Configuration Guide

Training module 2 Installing VMware View

Net Services: File System Monitor

Funambol Exchange Connector v6.5 Installation Guide

Stress Testing for Performance Tuning. Stress Testing for Performance Tuning

Oracle Managed File Getting Started - Transfer FTP Server to File Table of Contents

Application Servers - BEA WebLogic. Installing the Application Server

Intro to Load-Balancing Tomcat with httpd and mod_jk

ServerView Inventory Manager

Transcription:

http://www.tutorialspoint.com JMETER - MONITOR TEST PLAN Copyright tutorialspoint.com In this chapter, we will discuss how to create a Test Plan using JMeter to monitor webservers. The uses of monitor tests are as follows Monitors are useful for a stress testing and system management. Used with stress testing, the monitor provides additional information about server performance. Monitors make it easier to see the relationship between server performance and response time on the client side. As a system administration tool, the monitor provides an easy way to monitor multiple servers from one console. We need Tomcat 5 or above for monitoring. For our test purpose, we will monitor Tomcat 7.0.42 server. You can test any servlet container that supports Java Management Extension JMX. Let us write a test case to monitor the Tomcat server. Let us first set up our tomcat server. Setup Tomcat Server We start with opening the Tomcat service status. To do this, edit the configuration file for users, <TOMCAT_HOME>/conf/tomcat-users.xml. This file contains a tomcat-users section commented as shown <tomcat-users> <!-- <role rolename="tomcat"/> <role rolename="role1"/> <user username="tomcat" password="tomcat" roles="tomcat"/> <user username="both" password="tomcat" roles="tomcat,role1"/> <user username="role1" password="tomcat" roles="role1"/> --> </tomcat-users> We need to change this section to add the admin roles, manager, manager-gui and assign the user "admin". The revised file is as follows <tomcat-users> <role rolename="manager-gui"/> <role rolename="manager-script"/> <role rolename="manager-jmx"/> <role rolename="manager-status"/> <user username="admin" password="admin" roles="manager-gui,manager-script,managerjmx,manager-status"/> </tomcat-users> Now start the tomcat server <TOMCAT_HOME>/bin/startup.sh for Linux and <TOMCAT_HOME>/bin/startup.bat for windows. Once started, check that the Tomcat supervision works by entering the following link in your browser http://localhost:8080/manager/status?xml=true An authentication window appears in the browser. Enter the tomcat login and password associated inourcaseitisadmin. Then, the browser shows the execution status of Tomcat as below

From the above screenshot, we can note a few things In the URL, note that XML = true notethecasesensitivity allows a clean display of the supervisory Tomcat necessary for the JMeter functioning. Also note that there are default two connectors. The AJP connector used in general coupled with the mod_jk Apache HTTPD front module and the HTTP connector which is commonly used connector for direct access to Tomcat via port 8080. Write JMeter Test Plan Let us monitor the Tomcat server by writing a test plan Rename Test Plan Open the JMeter window by clicking /home/manisha/apache-jmeter2.9/bin/jmeter.sh. Click the Test Plan node. Add a thread group as explained in the next step. Add Thread Group Right-click on Test Plan > Add > ThreadsUsers > Thread Group. Thread Group will get added under the Test Plan node. Change the loop count to forever orsomelargenumber so that enough samples are generated.

HTTP Authorization Manager Add HTTP Authorization Manager to the Thread Group element by selecting Add > Config element > HTTP Authorization Manager. This element manages authentication requested by the browser to see the Tomcat server status. Select the HTTP Authorization Manager. Edit the following details Username admin dependingontheconfigurationintomcat users. xmlfile Password admin dependingontheconfigurationinthetomcatusers. xmlfile The other fields are left empty. Add Sampler-HTTP Request Now that we have defined our users, it is time to define the tasks that they will be performing. We add HTTP Request element. Right click the mouse button to get the Add menu. Select Add > Sampler > HTTP Request. Then, select the HTTP Request element in the tree. Edit the following properties as in the image below The following details are entered in this element Name Server Status Server Name or IP localhost Port 8080 Path /manager/status Parameters Add a request parameter named "XML" in uppercase. Give it a value of "true" in lowercase. Optional Tasks Check "Use as Monitor" at the bottom of the sampler.

Add a Constant Timer To request the status of the server periodically, add a Constant Timer which will allow a time interval between each request. Add a timer to this thread group by selecting Add > Timer > Constant Timer. Enter 5000 milliseconds in the Thread Delay box. In general, using intervals shorter than 5 seconds may add stress to your server. Find out what is an acceptable interval before you deploy the monitor in your production environment. Add Listener The final element you need to add to your Test Plan is a Listener. We add two types of listeners. One that stores results in a file and second that shows the graphical view of the results. Select the thread group element. Add a Simple Data Writer listener Add > Listener > Simple Data Writer. Specify a directory and filename of the output file inourcase, itis/home/manisha/work/sample. csv

Let us add another listener by selecting the test plan element Add > Listener > Monitor Results. Run the Test Plan Now save the above test plan as monitor_test.jmx. Execute this test plan using Run > Start option. View the Output Results will be saved in /home/manisha/work/sample.csv file. You can also see a graphical result in the Monitor result listener as in the image below.

Note the graph has captions on both sides of the graph. On the left is percent and the right is dead/healthy. If the memory line spikes up and down rapidly, it could indicate memory thrashing. In those situations, it is a good idea to profile the application with Borland OptimizeIt or JProbe. What you want to see is a regular pattern for load, memory and threads. Any erratic behavior usually indicates poor performance or a bug of some sort. Loading [MathJax]/jax/output/HTML-CSS/jax.js