Hi,

Jay SenSharma

Jay SenSharma

In this demonstration we are going to see How can we use the Jakarta JMeter to monitor the Performance of WLS of any Server with a Great Performance Statistics/Graph and throughput analysis. In order to achieve this first of all we need to download Jakarta JMeter from the below link: http://jakarta.apache.org/site/downloads/downloads_jmeter.cgi

Step1).

Place the Jakarta JMeter in your file system somewhere ..
Example: C:jakarta-jmeter-2.3.4

Step2).

Develop a Simple WebApplication ..Just for testing we can have wther an existing application deployed on WebLogic Server… Or we can put a Simple JSP page inside our application which takes some time to process the clients request …we can achieve this by putting some SLEEP in our code.

“test.jsp”

<%! static int requestCounter=0; %>
<%
requestCounter++;
session.setAttribute(“RequestDetails”,”requestNumber:”+requestCounter+” arrived at :”+new java.util.Date());
System.out.println(“nPage has got a Fresh request from :  “+(String)session.getAttribute(“RequestDetails”));
for (int i=0;i<60;i++)
{
System.out.println(“nt Processing request for : “+(String)session.getAttribute(“RequestDetails”));
try{
Thread.sleep(1000);
}
catch(Exception e)
{
System.out.println(“nnt Something Unexpected happened …Please investigete yourself : “+e);
}
}
out.println(“<h2>REQUEST Processd for “+(String)session.getAttribute(“RequestDetails”));
%>

Step3).

Wrap & Deploy the above JSP page inside any dummy application/ existing Application …sothat we can hit it using JMeter.

Step4).

Move inside the “C:jakarta-jmeter-2.3.4bin” and then run “jmeter.sh” or “jmeter.bat” to start the JMeter.

Step5).

Create a “ThreadGroup” to define the Load on the Server…
Edit (Menu)—> Add—-> ThreadGroup
Number Of Threads (Means Users)= 15
Rampup period (means how much duration the request should be sent):1
Loop Count : 1   (Means once only send these 15 Requests to the server ..donot repeat forever)

You can even check the Schedule Check Box to decide the Time (Duration) In which you want to your Testing should be done.

ThreadGroup Creation

Step6).

Right click on the “MyThreadGroup”. Create a New “Http request HttpClient” like following :

Creating JMeter Sampler

JMeter HttpClient Configuration

Step7).

To analyze the Throughput …better if you add a “Summary Report” as well. like following.

Configuring JMeter SummaryReport

Step8).

Click (select) on the “MyThreadGroup” from left panel and then click on the “Run” Menu …to start the Load test.

Running The Load Test Using JMeter

Step9).

As soon as you try to run the Load test…Jmeter will ask …where to save your JMX plan file…Provide a Location and File name to your Loadtest File for future references. As soon as you save the file …The Load Test Begins…

Step10).

Analyze the Summary Report to understand your Servers Performance

.

.

Thanks

Jay SenSharma