You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Le...@syntegra.com on 2001/06/13 12:39:32 UTC

issues

Following on from my previous email, I am basically using jmeter to call a
jsp which in turn calls a EJB method remotely.  This is a dummy EJB and just
outputs a string, ultimately though I would like to use jmeter on our actual
J2EE app.  We will also be using OptimizeIT to catch any performance issues
that arise during this load testing.  In order to test this I have it
plugged into my weblogic server and am monitoring the results of my Jmeter
tests.

I have some issues with Jmeter that are more than likely down to me than the
tool itself, I have detailed these below, if anyone could help it would be
great.

I can create the script no bother, and run it however:

1)	I get a lot of exceptions in the jmeter console mainly
ConnectExceptions mentioning the sockets. (I am not using hhtps only http),
sometimes I get a netAddress or something I can't remember exactly as I
cannot recreate one now I wan to know what it is.

2)	I run my script, which is quite simple, but it only seems to last a
second or two, I thought Jmeter would loop is this the case or will it only
execute through the script once.

3)	I have run my script with the threads set to 500.  Does this mean it
will test 500 threads total, if so how many is it doing at a time.  And how
can I increase the overall test duration or vary the simulated load?

4)	After I have run my script, I cannot re-run it, I stop it, clear the
visualizers and then run, and nothing happens.  I suspect this could be to
do with the exceptions I am encountering, but I have to keep exiting Jmeter
then going back in.  Is there anything that anyone recognises could be at
fault here (aside from me :-)

As I say my aim is to simulate a heavy load on the jsps/servlets so that I
can monitor both the response times and also using OptimizeIT identify any
bottlenecks in the code.  

Many thanks ........again


Leigh White




********************************************************************

This email may contain information which is privileged or confidential. If you are not the intended recipient of this email, please notify the sender immediately and delete it without reading, copying, storing, forwarding or disclosing its contents to any other person
Thank you

Check us out at http://www.syntegra.com

********************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: issues

Posted by Mike Stover <ms...@apache.org>.
On Wednesday 13 June 2001 10:39, Leigh.White@syntegra.com wrote:
> Following on from my previous email, I am basically using jmeter to call a
> jsp which in turn calls a EJB method remotely.  This is a dummy EJB and
> just outputs a string, ultimately though I would like to use jmeter on our
> actual J2EE app.  We will also be using OptimizeIT to catch any performance
> issues that arise during this load testing.  In order to test this I have
> it plugged into my weblogic server and am monitoring the results of my
> Jmeter tests.
>
> I have some issues with Jmeter that are more than likely down to me than
> the tool itself, I have detailed these below, if anyone could help it would
> be great.
>
> I can create the script no bother, and run it however:
>
> 1)	I get a lot of exceptions in the jmeter console mainly
> ConnectExceptions mentioning the sockets. (I am not using hhtps only http),
> sometimes I get a netAddress or something I can't remember exactly as I
> cannot recreate one now I wan to know what it is.

I have seen this type of behavior, and it seems to be related to the site I'm 
hitting at the time.  Using more threads, the number of failed connections 
increases, I've found.  Do you get errors when you have just 1 thread?  10?  
See if there's a correlation.

>
> 2)	I run my script, which is quite simple, but it only seems to last a
> second or two, I thought Jmeter would loop is this the case or will it only
> execute through the script once.

If I remember correctly, your script contained a OnceOnly controller.  All 
samples below that controller will be performed only once and then dropped.  
Remove the OnceOnly controller and it should loop forever.

>
> 3)	I have run my script with the threads set to 500.  Does this mean it
> will test 500 threads total, if so how many is it doing at a time.  And how
> can I increase the overall test duration or vary the simulated load?

500 threads means JMeter will try to spin up 500 threads and then run them 
all simultaneously.  I'd be surprised if your computer handled it well unless 
you have multiple processors.  You can put any number you want in there, but, 
in the end, JMeter's ability to stress your server is limited by the power of 
your machine.  To truly increase the stress load, you need to use RMI and run 
several machines at once.  JMeter is designed to do this, however, the 
functionality needs someone to work on it because it is currently a little 
broken.  ( I believe there are some serialization issues).

>
> 4)	After I have run my script, I cannot re-run it, I stop it, clear the
> visualizers and then run, and nothing happens.  I suspect this could be to
> do with the exceptions I am encountering, but I have to keep exiting Jmeter
> then going back in.  Is there anything that anyone recognises could be at
> fault here (aside from me :-)

Not sure - I've never seen that.  It's possible that having the whole test 
contained in the OnceOnly controller is interfering with JMeter's ability to 
stop the test (ironically enough!).  I re-run JMeter repeatedly all the time.

Hmm, nope - I just tried that out, and it still worked fine.  Maybe it just 
takes JMeter a very long time to shut down 500 threads?  Ok, nope tried that 
too (and actually, it still worked quite well with that many threads).  Have 
you tried the simplest test scripts and still had these problems?

-- 
Mike Stover
mstover1@apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: issues (2,3,4)

Posted by Bruce Barrett <br...@ebrary.com>.
Hi,

>2)	I run my script, which is quite simple, but it only seems to last a
>second or two, I thought Jmeter would loop is this the case or will it only
>execute through the script once.

It should loop. Basically it starts every thread, makes the
request, waits for the reply, then waits a timer's amount of time
and issues the request again.
You should see a list of "number of threads" urls to stdout every cycle.

>
>3)	I have run my script with the threads set to 500.  Does this mean it
>will test 500 threads total, if so how many is it doing at a time.  And how
>can I increase the overall test duration or vary the simulated load?

It will start 500 at a time & repeat every after each one finishes.

>
>4)	After I have run my script, I cannot re-run it, I stop it, clear the
>visualizers and then run, and nothing happens.  I suspect this could be to
>do with the exceptions I am encountering, but I have to keep exiting Jmeter
>then going back in.  Is there anything that anyone recognises could be at
>fault here (aside from me :-)

I haven't seen this. Maybe it's still "running" maybe your OS
configuration is limiting your # of threads.

Start out with 1 thread, get that working, them bump to 10 or 500.

'luck.

Bruce


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org