issues

2001-06-13 Thread Leigh . White

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: issues

2001-06-13 Thread Mike Stover

On Wednesday 13 June 2001 10:39, [EMAIL PROTECTED] 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
[EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Thx Mike - and some other questions....

2001-06-13 Thread Egger Lothar

Hello

Thanx Mike, for your response and the script. :)
it worked with the latest cvs checkout.

Another question:

We are testing servlets, the servlets a querying a oracle db and the
response is about 1.5 sec.
I am in need to put some delay between the test.

Eg test1:
Query 100 urls

Eg test 2:
Start 2 seconds later than test1 and query the same 100 urls

Eg test 3:
Start 2 seconds later then test2 and so on .

Is this possible ?


Regards
Lothar

Thx again for your help

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Hi All, What to do in the beginning

2001-06-13 Thread Soumyab

Hey Mike,

Thanks for responding. Send me if you have something for HTTP testing. Right
now what I need is something that I can do with Jmeter so that I see it
alive, in other words I wana see Jmeter doing something. 

After downloading, I have run the Jmeter batch from
Jmeter\jakarta-jmeter\bin. It opens an Applet which shows Root with Test
Plan and Work bench as explained in the Jmeter site. But what now? What do I
have to do now to do HTTP testing. Can I do simple stuff by adding
controllers to the threadgroup and hitting Start in Run or do I have to
write code or what? That's the thing bothering me. In other words I need to
see Apache Jmeter doing something, ie running some simple test cases and
showing me some test results. Thats where I am stuck.

Thanks again,

Soumya

-Original Message-
From: Mike Stover [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 12, 2001 2:51 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Hi All, What to do in the beginning


On Tuesday 12 June 2001 14:33, [EMAIL PROTECTED] wrote:
> Hi All,
>
> I have been assigned to learn and use Jmeter for my corporation. Ultimate
> requirement is to test JMS framework as is the web services framework. I
am
> basically a TOOL developer who knows Java but is not very thourough in
J2EE
> stuff(just learning).
>
> I have gone thru the info that was available on the net about Jmeter. Its
> theoritically fine, but I think I need more info to start taking the first
> steps. For eg. I would like to do the following first :
>
> 1. Test a database

Ok, JMeter supports JDBC, but it's currently broken.  I haven't looked into 
the problem as I have no use for such database testing, but I would be glad 
to point you in the right direction.   Here, for example is a testscript
that 
demostrates how you would setup jmeter to test a database (you'll have to
sub 
in appropriate values - but load it first and change the values in JMeter):










root
192.168.1.1
mysql
org.gjt.mm.mysql.Driver
root



1000
10



Sql Query
select * from tablename


Sql Query
select column1,column2 from table2 where 
column1='foo'























When this gets run, I think an error occurs (people out there have reported 
errors, I don't know if they've fixed them or not).

> 2. Test a java object

Not supported, but you could fairly easily write your own controllers to do 
it.  The tricky part comes in when you decide you want to write as few
custom 
controllers as possible to test as many different and varied objects as 
possible. 

> 3. Test a Servlet

As in HTTP testing?  JMeter does this pretty well.  Again, I could send you
a 
script to get you started.  Let me know if that's necessary.

>
> I would like to have an initial idea how to test them stepwise. So, if
> someone has some time and let me know how to go about it, will feel great.

Well, keep asking questions, and I'll see what I can do.

>
> Thanks,
>
> Som
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Mike Stover
[EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Thx Mike - and some other questions....

2001-06-13 Thread Mike Stover

On Wednesday 13 June 2001 13:15, you wrote:
> Hello
>
> Thanx Mike, for your response and the script. :)
> it worked with the latest cvs checkout.
>
> Another question:
>
> We are testing servlets, the servlets a querying a oracle db and the
> response is about 1.5 sec.
> I am in need to put some delay between the test.
>
> Eg test1:
> Query 100 urls
>
> Eg test 2:
> Start 2 seconds later than test1 and query the same 100 urls
>
> Eg test 3:
> Start 2 seconds later then test2 and so on .
>
> Is this possible ?

I don't think so.  Do you mean you want test1 to start and finish, then test 
2 to start and finish, and then 3, with a 2 second delay between each?  Or do 
you mean you want test 2 to start 2 seconds after test 1 starts (a sort of 
"ramping" up effect?).

JMeter does not currently do either, however, writing a looping controller 
would not be difficult, and it could include a delay before starting 
parameter to it.  This would allow you to do what I first described.  Ramping 
up and layering tests I would have to think about how to do

>
>
> Regards
> Lothar
>
> Thx again for your help
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Mike Stover
[EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: issues (2,3,4)

2001-06-13 Thread Bruce Barrett

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Hi All, What to do in the beginning

2001-06-13 Thread Bruce Barrett

Hi,


At 11:48 AM -0400 6/13/01, [EMAIL PROTECTED] wrote:
>Hey Mike,
>
>Thanks for responding. Send me if you have something for HTTP testing. Right
>now what I need is something that I can do with Jmeter so that I see it
>alive, in other words I wana see Jmeter doing something.
>
>After downloading, I have run the Jmeter batch from
>Jmeter\jakarta-jmeter\bin. It opens an Applet which shows Root with Test
>Plan and Work bench as explained in the Jmeter site. But what now? What do I
>have to do now to do HTTP testing. Can I do simple stuff by adding
>controllers to the threadgroup and hitting Start in Run

yep.


>or do I have to
>write code or what? That's the thing bothering me. In other words I need to
>see Apache Jmeter doing something, ie running some simple test cases and
>showing me some test results. Thats where I am stuck.

This is the minimal set of steps, I think... (Linux, if you care)
1. cd to   jakarta-jmeter\bin
2. ./jmeter &   {execute it from the current directory}
3. right-click test plan add ThreadGroup
4. toggle open the test plan
5. right-click ThreadGroup add Timer -> constant timer
6. toggle ThreadGroup; select constant timer
7. Set the time delay between: the completion of one series,
  and the start of the next series.
8. right-click ThreadGroup add controler -> Web testing
9. Select (*) HTTP; www.ibm.com and "/" for path (no quotes)
10. right-click ThreadGroup add Listner -> Graph Results
11. Select Graph results.
12. Menu -> Run -> Start

Should start outputting.

13. Menu -> Run -> Stop

All the rest are variations on the theme :-)
Especially you can add more URL hits ti the existing "web testing"
object.

Bruce
-- 
Bruce Barrett   [EMAIL PROTECTED]
SW QA Manager


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Threadgroup question

2001-06-13 Thread Stephen Grant

If a set a threadgroup number at 2 does that mean this simulates two users,
that are then disconnected, then two more and so on. Or is it cumulative -
it keeps going up by two?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: [issues ]

2001-06-13 Thread omenred

Hi there,

> 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?

My guess is you have all your errors because you try to create 500!!! threads.
I never tried to create more than a 100. Actually each thread is supposed to
be working as separate process, so count threads does not impact test
durration but only test load (count of simultaneous connections). Test
duration is by default unlimited, unless you limit it by one of controllers.

P.S. If you do need to test heavy load (more than 100 simultaneous connection)
I'd consider running Jmeter on a bunch of different boxes at the same time
(even if box allows you to create 500 java threads you might have problems
with system resources such as network sockets).

-om



[EMAIL PROTECTED] 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.

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Get free email and a permanent address at http://www.netaddress.com/?N=1

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Threadgroup question

2001-06-13 Thread Bruce Barrett

At 1:50 PM -0400 6/13/01, Stephen  Grant wrote:
>If a set a threadgroup number at 2 does that mean this simulates two users,
>that are then disconnected, then two more and so on. Or is it cumulative -
>it keeps going up by two?

2 users, no increase.
Bruce


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]