You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Eric Gandt <er...@gmail.com> on 2011/07/25 17:17:14 UTC

Jmeter Performance using, jmeter-server VS running in the local instance

I have a set of scripts that I want to run, I configured and testing 
them using the local instance of jmeter, no as I expand the size of the 
test I need to start using jmeter-server instances to split the load as 
no single server can handle the load I want to generate.  I have gotten 
Jmeter to work with the server instances, but performance of the scripts 
run on jmeter-server is far poorer than that when run in the local 
instance (jmeter.sh) in my case the difference is:

Note: I am using the latest Jmeter: 2.4 r96153

using a local instance of jmeter-server (connected to from the jmeter 
console): 40 hits-per-second generated
     Load is about 2x that of just using the Console
using a remote instance of jmeter-server (connected to from the jmeter 
console): 45 hits-per-second generated
     Load on each server is about the same as using the Console
using both local and remote instances of jmeter-server (connected to 
from the jmeter consoole): 49hits-per-second generated
         Local load is about 1.6x using the consoel and remote load is 
about .8x
using the local jmeter.sh console instance: 136hits-per-second generated

Based on what I'm seeing it does not appear that Jmeter works when 
running using jmeter-server,  as the performance of the load generated 
by it is far less (1/3 of that generated using the console).  I've 
already made changes to how it reports the data back to the console to 
reduce load, but even this has not helped with actual load being 
generated by the product.  I coudl run 2 instances of Jmeter.sh, which 
then generates the load I'd expect, but as I can not combine the data 
this is not an acceptable solution.  Have other people encountered 
similar issues using the client-server setup of Jmeter?


Thanks,
ERIC


Re: Jmeter Performance using, jmeter-server VS running in the local instance

Posted by kootsoop <ko...@gmail.com>.
Oliver Lloyd wrote:
> 
> Ah, that's different. It's true (or at least I have experienced the same
> thing) that if you have JMeter running in Distributed (master_slave) mode
> then you can potentially hit an IO bottleneck where JMeter cannot write
> multiple results streams to one file quick enough. The workaround - as you
> have already seen - is to run multiple instances in isolation and then
> append all the results together (and then sort them). Personally, I do
> this all the time - I have it as a habit.
> 

Thanks, that definitely makes sense of what I am seeing and gives me the way
forward.  I've been running three clients on separate machines from the
command line now, just dumping to a JTL file.  Then loading it up in a GUI
client to collate the results afterwards.  That gives me what I need.



> PS. That is all independent of using the CTT. That's just useful for
> creating repeatability / reaching a defined load. etc.
> 

Understood. I'll see what I can do to use the CTT as a baseline "selectable"
load that other tests can run on top of.

Thanks again for the feedback!

--
View this message in context: http://jmeter.512774.n5.nabble.com/Jmeter-Performance-using-jmeter-server-VS-running-in-the-local-instance-tp4631144p4828222.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Re: Jmeter Performance using, jmeter-server VS running in the local instance

Posted by Oliver Lloyd <ol...@hotmail.com>.
Ah, that's different. It's true (or at least I have experienced the same
thing) that if you have JMeter running in Distributed (master_slave) mode
then you can potentially hit an IO bottleneck where JMeter cannot write
multiple results streams to one file quick enough. The workaround - as you
have already seen - is to run multiple instances in isolation and then
append all the results together (and then sort them). Personally, I do this
all the time - I have it as a habit.

I assume this is an IO issue, might not be, but it is a problem where
multiple processes are trying to write to one file. It's not slow by any
means, but at some point there is a limit.

You can play around with the config options to get around this
(HOLD||BATCH||STATISTICAL) should all help but each has it's price.

As an aside, all load testing tools have the same problem. LoadRunner solves
this by only sending back aggregated summary data as the test is running and
then at the end you have to wait while it compiles the raw data - for large
tests this can take an age - This is effectively the same as selecting a
hybrid of BATCH & HOLD mode in JMeter (kind of).

PS. That is all independent of using the CTT. That's just useful for
creating repeatability / reaching a defined load. etc.

-----
http://www.http503.com/
--
View this message in context: http://jmeter.512774.n5.nabble.com/Jmeter-Performance-using-jmeter-server-VS-running-in-the-local-instance-tp4631144p4827319.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Re: Jmeter Performance using, jmeter-server VS running in the local instance

Posted by kootsoop <ko...@gmail.com>.
Oliver Lloyd wrote:
> 
> JMeter doesn't have a 'problem' as such, it just takes longer to write to
> a file that is on a different machine as compared to doing the same thing
> for a local file. Any computer program will experience the same issue. And
> ot's logical that if this takes longer then the processing of a request
> (and I mean the logical time including Server response, JMeter processing
> and network response) will take longer. If it takes longer then you will
> get less throughput. It's simple math.
> 

Yes, that makes sense.  

OK. The trouble I have is that, to get the same level of loading via JMeter
running as a server, I need to run about 2 to 3 times as many machines
versus running several instances of the client on separate machines.

The downside is that the timestamps and data are in separate files, though
it seems I can use the JMeter GUI to aggregate all the separate files into a
single result file.

I will try the constant timer approach you suggest, but I suspect it's going
to run up against the same problem: needing 2 to 3 times the number of test
machines for the same load level.

Thanks for the response!



--
View this message in context: http://jmeter.512774.n5.nabble.com/Jmeter-Performance-using-jmeter-server-VS-running-in-the-local-instance-tp4631144p4826314.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Re: Jmeter Performance using, jmeter-server VS running in the local instance

Posted by Oliver Lloyd <ol...@hotmail.com>.
JMeter doesn't have a 'problem' as such, it just takes longer to write to a
file that is on a different machine as compared to doing the same thing for
a local file. Any computer program will experience the same issue. And ot's
logical that if this takes longer then the processing of a request (and I
mean the logical time including Server response, JMeter processing and
network response) will take longer. If it takes longer then you will get
less throughput. It's simple math.

The way to get around this is to configure pacing, with something like a
Constant Throughput Timer you will be able to define a buffer such that even
if JMeter has to wait longer to write the results this will not impact the
rate it makes requests at. If you are looking for a repeatable test to use
as a baseline then this is pretty much essential. You need to create a
defined load of X requests per second and run controlled tests. Simply
spinning up a test where the threads try to run as fast as possible causes
inaccurate results as things like faster machines/networks/responses all act
together to change the load profile (as per your experience) which means the
test is not repeatable.

-----
http://www.http503.com/
--
View this message in context: http://jmeter.512774.n5.nabble.com/Jmeter-Performance-using-jmeter-server-VS-running-in-the-local-instance-tp4631144p4826253.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Re: Jmeter Performance using, jmeter-server VS running in the local instance

Posted by kootsoop <ko...@gmail.com>.
What's not clear from the discussion?

We eventually just ran JMeter from the command-line on several different
machines, dumping the results to files.

We then appended all the log files together (I seem to recall we could just
keep opening them all in JMeter and things were pulled together correctly).

The only gotcha is to make sure all the machines have their time
synchronized, otherwise the logs are out-of-synch.



On Fri, Jun 14, 2013 at 11:35 AM, ntrvic [via JMeter] <
ml-node+s512774n5717102h42@n5.nabble.com> wrote:

> Can you provide any more details on what your team did?
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://jmeter.512774.n5.nabble.com/Jmeter-Performance-using-jmeter-server-VS-running-in-the-local-instance-tp4631144p5717102.html
>  To unsubscribe from Jmeter Performance using, jmeter-server VS running in
> the local instance, click here<http://jmeter.512774.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4631144&code=a29vdHNvb3BAZ21haWwuY29tfDQ2MzExNDR8MjA3NDUzMjY0NQ==>
> .
> NAML<http://jmeter.512774.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>



-- 
Peter J. Kootsookos
West Hartford, CT 06117, USA
Skype: +1-860-269-0080
Home: +1-860-206-7488
Cell:    +1-860-543-5917




--
View this message in context: http://jmeter.512774.n5.nabble.com/Jmeter-Performance-using-jmeter-server-VS-running-in-the-local-instance-tp4631144p5717103.html
Sent from the JMeter - User mailing list archive at Nabble.com.

Re: Jmeter Performance using, jmeter-server VS running in the local instance

Posted by Philippe Mouawad <ph...@gmail.com>.
Hello,
You must know that SamplerSender is pluggable :

   - mode can also be the class name of an implementation of
   org.apache.jmeter.samplers.SampleSender

We for example developped an inhouse  SampleSender that makes it as and even
more efficient than GUI.

Regards
Philippe Mouawad

On Wed, Sep 21, 2011 at 2:55 PM, kootsoop <ko...@gmail.com> wrote:

> I will update, but after I have gone through many different settings, I
> still believe JMeter has a problem in server mode.  It's better with
> batching (or holding), but still not as good as running the applicaiton
> standalone (in either GUI or non-GUI form).
>
> Thanks for the feedback!
>
> Ciao,
>
> Peter K.
>
> On Wed, Sep 21, 2011 at 8:52 AM, Philippe Mouawad [via JMeter] <
> ml-node+s512774n4826209h59@n5.nabble.com> wrote:
>
> > Hello,
> > For the reputation of JMeter it would be nice from you
> > kootsoop<
> >
> http://jmeter.512774.n5.nabble.com/template/NamlServlet.jtp?macro=user_nodes&user=256137
> >to
> >
> > update this with last news :
> >
> >
> http://jmeter.512774.n5.nabble.com/JMeter-GUI-vs-JMeter-Server-td4822852.html
> >
> > As you updated this one:
> >
> >
> http://jmeter.512774.n5.nabble.com/Jmeter-Performance-using-jmeter-server-VS-running-in-the-local-instance-td4631144.html
> >
> > To avoid people thinking that JMeter has problems  in remote mode.
> >
> > Regards
> > Philippe
> >
> > On Tue, Sep 20, 2011 at 10:12 PM, kootsoop <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=4826209&i=0>>
> > wrote:
> >
> > >
> > >
> > > >>> The JMeter docs explain how to configure the server sample sending
> > > >>> mode; you might find that statistical mode works for you.
> > > >
> > > >>Thanks! I'll check that out and see if it makes a difference, but I
> > > really
> > > think this is a JMeter server mode
> > > >> issue.
> > > >
> > >
> > > Well, I tried setting
> > >
> > > mode=Hold
> > >
> > > in the "Remote Batching Configuration" section of the jmeter.properties
> > > file... and it did the trick!
> > >
> > > I've only tried this on one instance of the server (and one client),
> but
> > > without this setting I was getting only 400 requests per second.
> > >
> > > The downside of the "Hold" option is that it takes forever to send all
> > the
> > > data after the test has finished (a 1 minute 18 second test takes 9
> > minutes
> > > to go from
> > >
> > > *Starting the test on...*
> > >
> > > to
> > >
> > > *Finished the test on...*
> > >
> > > But it performs the same was as running the test in the Client GUI
> does.
> > >
> > > Thanks for the tip!
> > >
> > > It's still not clear to me why this didn't show up in any of the
> > networking
> > > / performance metrics...
> > >
> > > I'll try one of the other mode setting to see if that makes things
> > easier.
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://jmeter.512774.n5.nabble.com/Jmeter-Performance-using-jmeter-server-VS-running-in-the-local-instance-tp4631144p4823875.html
> > > Sent from the JMeter - User mailing list archive at Nabble.com.
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [hidden email]<
> http://user/SendEmail.jtp?type=node&node=4826209&i=1>
> > > For additional commands, e-mail: [hidden email]<
> http://user/SendEmail.jtp?type=node&node=4826209&i=2>
> > >
> > >
> >
> >
> > --
> > Cordialement.
> > Philippe Mouawad.
> > Ubik-Ingénierie
> >
> >
> > ------------------------------
> >  If you reply to this email, your message will be added to the discussion
> > below:
> >
> >
> http://jmeter.512774.n5.nabble.com/Jmeter-Performance-using-jmeter-server-VS-running-in-the-local-instance-tp4631144p4826209.html
> >  To unsubscribe from Jmeter Performance using, jmeter-server VS running
> in
> > the local instance, click here<
> http://jmeter.512774.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4631144&code=a29vdHNvb3BAZ21haWwuY29tfDQ2MzExNDR8MjA3NDUzMjY0NQ==
> >.
> >
> >
>
>
>
> --
> Peter J. Kootsookos
> West Hartford, CT 06117, USA
> Skype: +1-860-269-0080
> Home: +1-860-206-7488
> Cell:    +1-860-597-9829
>
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/Jmeter-Performance-using-jmeter-server-VS-running-in-the-local-instance-tp4631144p4826212.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>



-- 
Cordialement.
Philippe Mouawad.
Ubik-Ingénierie

Re: Jmeter Performance using, jmeter-server VS running in the local instance

Posted by kootsoop <ko...@gmail.com>.
I will update, but after I have gone through many different settings, I
still believe JMeter has a problem in server mode.  It's better with
batching (or holding), but still not as good as running the applicaiton
standalone (in either GUI or non-GUI form).

Thanks for the feedback!

Ciao,

Peter K.

On Wed, Sep 21, 2011 at 8:52 AM, Philippe Mouawad [via JMeter] <
ml-node+s512774n4826209h59@n5.nabble.com> wrote:

> Hello,
> For the reputation of JMeter it would be nice from you
> kootsoop<
> http://jmeter.512774.n5.nabble.com/template/NamlServlet.jtp?macro=user_nodes&user=256137>to
>
> update this with last news :
>
> http://jmeter.512774.n5.nabble.com/JMeter-GUI-vs-JMeter-Server-td4822852.html
>
> As you updated this one:
>
> http://jmeter.512774.n5.nabble.com/Jmeter-Performance-using-jmeter-server-VS-running-in-the-local-instance-td4631144.html
>
> To avoid people thinking that JMeter has problems  in remote mode.
>
> Regards
> Philippe
>
> On Tue, Sep 20, 2011 at 10:12 PM, kootsoop <[hidden email]<http://user/SendEmail.jtp?type=node&node=4826209&i=0>>
> wrote:
>
> >
> >
> > >>> The JMeter docs explain how to configure the server sample sending
> > >>> mode; you might find that statistical mode works for you.
> > >
> > >>Thanks! I'll check that out and see if it makes a difference, but I
> > really
> > think this is a JMeter server mode
> > >> issue.
> > >
> >
> > Well, I tried setting
> >
> > mode=Hold
> >
> > in the "Remote Batching Configuration" section of the jmeter.properties
> > file... and it did the trick!
> >
> > I've only tried this on one instance of the server (and one client), but
> > without this setting I was getting only 400 requests per second.
> >
> > The downside of the "Hold" option is that it takes forever to send all
> the
> > data after the test has finished (a 1 minute 18 second test takes 9
> minutes
> > to go from
> >
> > *Starting the test on...*
> >
> > to
> >
> > *Finished the test on...*
> >
> > But it performs the same was as running the test in the Client GUI does.
> >
> > Thanks for the tip!
> >
> > It's still not clear to me why this didn't show up in any of the
> networking
> > / performance metrics...
> >
> > I'll try one of the other mode setting to see if that makes things
> easier.
> >
> >
> >
> > --
> > View this message in context:
> >
> http://jmeter.512774.n5.nabble.com/Jmeter-Performance-using-jmeter-server-VS-running-in-the-local-instance-tp4631144p4823875.html
> > Sent from the JMeter - User mailing list archive at Nabble.com.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=4826209&i=1>
> > For additional commands, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=4826209&i=2>
> >
> >
>
>
> --
> Cordialement.
> Philippe Mouawad.
> Ubik-Ingénierie
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://jmeter.512774.n5.nabble.com/Jmeter-Performance-using-jmeter-server-VS-running-in-the-local-instance-tp4631144p4826209.html
>  To unsubscribe from Jmeter Performance using, jmeter-server VS running in
> the local instance, click here<http://jmeter.512774.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4631144&code=a29vdHNvb3BAZ21haWwuY29tfDQ2MzExNDR8MjA3NDUzMjY0NQ==>.
>
>



-- 
Peter J. Kootsookos
West Hartford, CT 06117, USA
Skype: +1-860-269-0080
Home: +1-860-206-7488
Cell:    +1-860-597-9829


--
View this message in context: http://jmeter.512774.n5.nabble.com/Jmeter-Performance-using-jmeter-server-VS-running-in-the-local-instance-tp4631144p4826212.html
Sent from the JMeter - User mailing list archive at Nabble.com.

Re: Jmeter Performance using, jmeter-server VS running in the local instance

Posted by Philippe Mouawad <ph...@gmail.com>.
Hello,
For the reputation of JMeter it would be nice from you
kootsoop<http://jmeter.512774.n5.nabble.com/template/NamlServlet.jtp?macro=user_nodes&user=256137>to
update this with last news :
http://jmeter.512774.n5.nabble.com/JMeter-GUI-vs-JMeter-Server-td4822852.html

As you updated this one:
http://jmeter.512774.n5.nabble.com/Jmeter-Performance-using-jmeter-server-VS-running-in-the-local-instance-td4631144.html

To avoid people thinking that JMeter has problems  in remote mode.

Regards
Philippe

On Tue, Sep 20, 2011 at 10:12 PM, kootsoop <ko...@gmail.com> wrote:

>
>
> >>> The JMeter docs explain how to configure the server sample sending
> >>> mode; you might find that statistical mode works for you.
> >
> >>Thanks! I'll check that out and see if it makes a difference, but I
> really
> think this is a JMeter server mode
> >> issue.
> >
>
> Well, I tried setting
>
> mode=Hold
>
> in the "Remote Batching Configuration" section of the jmeter.properties
> file... and it did the trick!
>
> I've only tried this on one instance of the server (and one client), but
> without this setting I was getting only 400 requests per second.
>
> The downside of the "Hold" option is that it takes forever to send all the
> data after the test has finished (a 1 minute 18 second test takes 9 minutes
> to go from
>
> *Starting the test on...*
>
> to
>
> *Finished the test on...*
>
> But it performs the same was as running the test in the Client GUI does.
>
> Thanks for the tip!
>
> It's still not clear to me why this didn't show up in any of the networking
> / performance metrics...
>
> I'll try one of the other mode setting to see if that makes things easier.
>
>
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/Jmeter-Performance-using-jmeter-server-VS-running-in-the-local-instance-tp4631144p4823875.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>


-- 
Cordialement.
Philippe Mouawad.
Ubik-Ingénierie

Re: Jmeter Performance using, jmeter-server VS running in the local instance

Posted by kootsoop <ko...@gmail.com>.

>>> The JMeter docs explain how to configure the server sample sending
>>> mode; you might find that statistical mode works for you.
> 
>>Thanks! I'll check that out and see if it makes a difference, but I really
think this is a JMeter server mode 
>> issue.
> 

Well, I tried setting 

mode=Hold

in the "Remote Batching Configuration" section of the jmeter.properties
file... and it did the trick!

I've only tried this on one instance of the server (and one client), but
without this setting I was getting only 400 requests per second.

The downside of the "Hold" option is that it takes forever to send all the
data after the test has finished (a 1 minute 18 second test takes 9 minutes
to go from

*Starting the test on...*

to

*Finished the test on...*

But it performs the same was as running the test in the Client GUI does.

Thanks for the tip!  

It's still not clear to me why this didn't show up in any of the networking
/ performance metrics...

I'll try one of the other mode setting to see if that makes things easier.



--
View this message in context: http://jmeter.512774.n5.nabble.com/Jmeter-Performance-using-jmeter-server-VS-running-in-the-local-instance-tp4631144p4823875.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Re: Jmeter Performance using, jmeter-server VS running in the local instance

Posted by kootsoop <ko...@gmail.com>.
> Remember that the server is controlled from the client, also all
> responses are sent back to the client. 

Yes, I understand that.

> So if the client system is slow, or the network connection to the
> server is slow, then this can affect the server system throughput.

The network is not slow; it's all in the EC2 cloud, and the network stats
say it maxes out at 2.5%.

> Having said that, a better comparison would be to run the same test
> non-GUI on the server, and then run it client-server with non-GUI
> client.
> That will show you if the client-server connection overhead is too much.

Yes, I did that... and it had precisely the same results: the same with the
non-GUI client running itself (> 1000 requests per second) and the non-GUI
client running a server (~ 400 requests per second).

> The JMeter docs explain how to configure the server sample sending
> mode; you might find that statistical mode works for you.

Thanks! I'll check that out and see if it makes a difference, but I really
think this is a JMeter server mode issue.



--
View this message in context: http://jmeter.512774.n5.nabble.com/Jmeter-Performance-using-jmeter-server-VS-running-in-the-local-instance-tp4631144p4823652.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Re: Jmeter Performance using, jmeter-server VS running in the local instance

Posted by sebb <se...@gmail.com>.
On 20 September 2011 17:19, kootsoop <ko...@gmail.com> wrote:
> For the record:
> http://jmeter.512774.n5.nabble.com/JMeter-GUI-vs-JMeter-Server-td4822852.html
> I am seeing similar problems  with JMeter as Eric came across.
>
> Running in the GUI, I get ~1400 requests per second; running the same test
> plan in the server mode, I only get about 400 requests per second.
>
> The system under test is the same; the server machine is the same instance
> size as the GUI machine; I get the same results whether I control the remote
> server machines from the GUI or from the command line.
>

Remember that the server is controlled from the client, also all
responses are sent back to the client.

So if the client system is slow, or the network connection to the
server is slow, then this can affect the server system throughput.

Having said that, a better comparison would be to run the same test
non-GUI on the server, and then run it client-server with non-GUI
client.
That will show you if the client-server connection overhead is too much.

The JMeter docs explain how to configure the server sample sending
mode; you might find that statistical mode works for you.

>
>
> --
> View this message in context: http://jmeter.512774.n5.nabble.com/Jmeter-Performance-using-jmeter-server-VS-running-in-the-local-instance-tp4631144p4823146.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

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


Re: Jmeter Performance using, jmeter-server VS running in the local instance

Posted by kootsoop <ko...@gmail.com>.
For the record: 
http://jmeter.512774.n5.nabble.com/JMeter-GUI-vs-JMeter-Server-td4822852.html
I am seeing similar problems  with JMeter as Eric came across.

Running in the GUI, I get ~1400 requests per second; running the same test
plan in the server mode, I only get about 400 requests per second.

The system under test is the same; the server machine is the same instance
size as the GUI machine; I get the same results whether I control the remote
server machines from the GUI or from the command line.




--
View this message in context: http://jmeter.512774.n5.nabble.com/Jmeter-Performance-using-jmeter-server-VS-running-in-the-local-instance-tp4631144p4823146.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Re: Jmeter Performance using, jmeter-server VS running in the local instance

Posted by Eric Gandt <er...@gmail.com>.
On 07/25/2011 02:36 PM, Oliver Lloyd wrote:
> Hi Eric, what you are talking about is running a capacity test - what level
> of load can my system sustain before degradation occurs, right?
No the test is much more simple, its simply what is the maximum number 
of HTTP transaction that can be processed when the application is 80% 
cached and there are edit events occurring at a rate consistent to what 
is seen in the field (about 4 a second).

This number is reasonable simple to gather for a single server as I only 
need to use the jmeter.sh locally in which case I can get just over 135 
transactions a second.   However I need to test it in a cluster.  The 
problem occurs in that as soon as I try to use client-server the 
performance (on the same single server) that is measured drops to only 
about 40 hits per second. This appears to be because jmeter is not 
actually driving load properly, the actual response times from the 
server are identical to that of using the local setup at about the same 
load level (done by reducing the number of threads run), and the load is 
about the same, the problem is jmeter does not appear to be sending as 
many requests as it should as quickly as it should, AKA client-server is 
behaving very different that the local version.
> In this case you still need to define a specific load and control the rate
> of requests you are sending. Sure, once you have a defind request rate there
> is nothing to stop you gradually ramping it up to find the break point -
> this is a standard test. But if you don't set pacing and simply let the test
> run as fast it can then you tend to get into problems. I'm not saying
> there's no benefit and it won't work, just that it is *better* to run
> controlled tests.
>
> One example why: Without pacing each request will begin as soon as the last
> one finished, once things start to slow down then automatically the rate of
> requests will reduce - the thread will not be able to make as many requests
> and the load will reduce - this causes odd/confusing behavior. With pacing
> you keep a constant load even when response times increase.
I have pacing setup via "uniform random Timer", for edits its 
1200ms+-200ms and for reads its 150ms+-100ms
> Another: without control you will find that faster machines will run your
> test faster - it will mean that is it not a repeatable test. Any tester
> worth his salt has the concept of repeatability deeply ingrained in his
> psyche - you must have repeatability. Imagine if you run a test on your
> boxes and get limit Y and then your client runs it on, some other different
> boxes, and gets result X. How is this useful? If you control the rate this
> will not happen.
All load generators and tested servers in this case are identical so 
this should not be an issue.
> Another: when you hit a limit, how do you know this is a problem or not?
> Every system (every single one) has limits and as long as you keep ramping
> up you will always keep hitting limits - so how do you know when to stop?
As I said above this is a very simple test of maximum HTTP requests that 
can be handled, so in this case I do not care about what is the 
bottleneck as much as what is the HTTP requests a second processed.  Now 
obviously I run other tests to remove potential bottlenecks and tune the 
systems, but for the report I must produce all I need are HTTP Requests 
a second, my problem is in determining why client-server jmeter behaves 
very differently that local jmeter.
> You have to set yourself targets/objectives, this is golden rule numero uno.
> Even with stress testing you need to control the rate/distribution of the
> load.
>
> But hey, this is just my opinion, but it's based on experience, that's why
> you come to forums like this, no?
>
> --
> View this message in context: http://jmeter.512774.n5.nabble.com/Jmeter-Performance-using-jmeter-server-VS-running-in-the-local-instance-tp4631144p4631900.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>


Thanks,
ERIC

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


Re: Jmeter Performance using, jmeter-server VS running in the local instance

Posted by Oliver Lloyd <ol...@hotmail.com>.
Hi Eric, what you are talking about is running a capacity test - what level
of load can my system sustain before degradation occurs, right?

In this case you still need to define a specific load and control the rate
of requests you are sending. Sure, once you have a defind request rate there
is nothing to stop you gradually ramping it up to find the break point -
this is a standard test. But if you don't set pacing and simply let the test
run as fast it can then you tend to get into problems. I'm not saying
there's no benefit and it won't work, just that it is *better* to run
controlled tests. 

One example why: Without pacing each request will begin as soon as the last
one finished, once things start to slow down then automatically the rate of
requests will reduce - the thread will not be able to make as many requests
and the load will reduce - this causes odd/confusing behavior. With pacing
you keep a constant load even when response times increase.

Another: without control you will find that faster machines will run your
test faster - it will mean that is it not a repeatable test. Any tester
worth his salt has the concept of repeatability deeply ingrained in his
psyche - you must have repeatability. Imagine if you run a test on your
boxes and get limit Y and then your client runs it on, some other different
boxes, and gets result X. How is this useful? If you control the rate this
will not happen.

Another: when you hit a limit, how do you know this is a problem or not?
Every system (every single one) has limits and as long as you keep ramping
up you will always keep hitting limits - so how do you know when to stop? 

You have to set yourself targets/objectives, this is golden rule numero uno.
Even with stress testing you need to control the rate/distribution of the
load.

But hey, this is just my opinion, but it's based on experience, that's why
you come to forums like this, no?

--
View this message in context: http://jmeter.512774.n5.nabble.com/Jmeter-Performance-using-jmeter-server-VS-running-in-the-local-instance-tp4631144p4631900.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Re: Jmeter Performance using, jmeter-server VS running in the local instance

Posted by Eric Gandt <er...@gmail.com>.
CPU is lower when running using the jmeter-server instead of jmeter.sh 
(only about 50% vs 75%), about 1/4 and as I previously stated memory is 
much higher then running locally (but not a problem), IO seems like it 
is not a problem as I have lots of bandwidth available and the disks are 
only 0.2% used during the test.  The problem is that with no likely 
cause for the reduced performance I'm at a loss to understand why it is 
so much worse.  I did a quick check with YJP, but given the overhead 
there was not much to see.

Can I take it that this is not normal behavior for client/server Jmeter?

Thanks,
ERIC

On 07/25/2011 02:19 PM, apc wrote:
> So maybe there's another resource used by JMeter like CPU/Memory/IO, which
> indicates different capacity?
>
> -----
> --
> Andrey Pohilko
> JP@GC Maintainer
> --
> View this message in context: http://jmeter.512774.n5.nabble.com/Jmeter-Performance-using-jmeter-server-VS-running-in-the-local-instance-tp4631144p4631819.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>


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


Re: Jmeter Performance using, jmeter-server VS running in the local instance

Posted by apc <ap...@apc.kg>.
So maybe there's another resource used by JMeter like CPU/Memory/IO, which
indicates different capacity? 

-----
--
Andrey Pohilko
JP@GC Maintainer
--
View this message in context: http://jmeter.512774.n5.nabble.com/Jmeter-Performance-using-jmeter-server-VS-running-in-the-local-instance-tp4631144p4631819.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Re: Jmeter Performance using, jmeter-server VS running in the local instance

Posted by Eric Gandt <er...@gmail.com>.
First off to answer another question: There are no network issues, I 
have 3 NICs per machine, I have 1 dedicated to the Jmeter and 2 
dedicated per server to hitting the target boxes (these run about 75% 
utilization), the backend used by Jmeter has very low utilization.


On 07/25/2011 12:14 PM, Oliver Lloyd wrote:
> Thing is, you seem to have the test set to run as fast as it can, without any
> kind of pacing. In this situation it is entirely possible that some machines
> are faster than others or that running locally vs. running in client/server
> mode is also different.
The servers I'm using are identical servers (cut from teh exact same 
images) and same hardware.   It appears that client/server is about 1/3 
as fast as running locally, based on this test case.  Also the memory 
utilization is (about 4x greater when running client server setups, 
which maybe a bug, have not gone into excessive detailing of whats using 
it yet as it is still reasonable and GC's are only taking about 0.2% of 
the time).
> But this doesn't actually matter. If you configure your test plan to
> generate a defined, consistent load profile then all you have to do is make
> sure that each machine that you use is capable of generating this load
> profile. Sure, some might be able to do more, but that is irrelevant, all
> that matters is that each server can deliver what is needed.

The purpose of the tests are to demonstrate the maximum throughput for 
different servers and software configurations, and then to make the test 
cases (and scripts) available to clients to run on their own 
environments so they can compare to our results.  As maximum stress is 
the name of the game for these tests, and they have to be used by 
persons without knowledge of Jmeter, the type of test you are 
recommending becomes impractical.
> I do this: For each engagement, I establish a target profile that I need to
> prove is possible. I then design a test using Constant Throughput Timers
> that delivers this load - usually I split the load over multiple machines so
> I might design the test to hit 10% of the target and then run it over 10
> boxes. This way I am happy that the test I run is realistic and useful and I
> can worry about other things, like tuning the system I'm testing.
>
>
>
> --
> View this message in context: http://jmeter.512774.n5.nabble.com/Jmeter-Performance-using-jmeter-server-VS-running-in-the-local-instance-tp4631144p4631368.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>


Thanks,
ERIC

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


Re: Jmeter Performance using, jmeter-server VS running in the local instance

Posted by Oliver Lloyd <ol...@hotmail.com>.
Thing is, you seem to have the test set to run as fast as it can, without any
kind of pacing. In this situation it is entirely possible that some machines
are faster than others or that running locally vs. running in client/server
mode is also different.

But this doesn't actually matter. If you configure your test plan to
generate a defined, consistent load profile then all you have to do is make
sure that each machine that you use is capable of generating this load
profile. Sure, some might be able to do more, but that is irrelevant, all
that matters is that each server can deliver what is needed.

I do this: For each engagement, I establish a target profile that I need to
prove is possible. I then design a test using Constant Throughput Timers
that delivers this load - usually I split the load over multiple machines so
I might design the test to hit 10% of the target and then run it over 10
boxes. This way I am happy that the test I run is realistic and useful and I
can worry about other things, like tuning the system I'm testing.



--
View this message in context: http://jmeter.512774.n5.nabble.com/Jmeter-Performance-using-jmeter-server-VS-running-in-the-local-instance-tp4631144p4631368.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Re: Jmeter Performance using, jmeter-server VS running in the local instance

Posted by apc <ap...@apc.kg>.
Hi, Eric!

Very interesting and important investigations! Could you tell what happening
with network load on your remote tests? Could it be that bottleneck is in
network?

-----
--
Andrey Pohilko
JP@GC Maintainer
--
View this message in context: http://jmeter.512774.n5.nabble.com/Jmeter-Performance-using-jmeter-server-VS-running-in-the-local-instance-tp4631144p4631210.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Re: Jmeter Performance using, jmeter-server VS running in the local instance

Posted by Deepak Shetty <sh...@gmail.com>.
>but as I can not combine the data this is not an acceptable solution.
Why not? Should be fairly simple (the easiest being to load it into a
database. Combining the XML result files is also trivial if they are small
enough.

I usually avoid using master-slave mode , preferring to run jmeter instances
separately.(the latter will always work better than the former)

regards
deepak

On Mon, Jul 25, 2011 at 8:17 AM, Eric Gandt <
eric.gandt.mailinglists@gmail.com> wrote:

> I have a set of scripts that I want to run, I configured and testing them
> using the local instance of jmeter, no as I expand the size of the test I
> need to start using jmeter-server instances to split the load as no single
> server can handle the load I want to generate.  I have gotten Jmeter to work
> with the server instances, but performance of the scripts run on
> jmeter-server is far poorer than that when run in the local instance
> (jmeter.sh) in my case the difference is:
>
> Note: I am using the latest Jmeter: 2.4 r96153
>
> using a local instance of jmeter-server (connected to from the jmeter
> console): 40 hits-per-second generated
>    Load is about 2x that of just using the Console
> using a remote instance of jmeter-server (connected to from the jmeter
> console): 45 hits-per-second generated
>    Load on each server is about the same as using the Console
> using both local and remote instances of jmeter-server (connected to from
> the jmeter consoole): 49hits-per-second generated
>        Local load is about 1.6x using the consoel and remote load is about
> .8x
> using the local jmeter.sh console instance: 136hits-per-second generated
>
> Based on what I'm seeing it does not appear that Jmeter works when running
> using jmeter-server,  as the performance of the load generated by it is far
> less (1/3 of that generated using the console).  I've already made changes
> to how it reports the data back to the console to reduce load, but even this
> has not helped with actual load being generated by the product.  I coudl run
> 2 instances of Jmeter.sh, which then generates the load I'd expect, but as I
> can not combine the data this is not an acceptable solution.  Have other
> people encountered similar issues using the client-server setup of Jmeter?
>
>
> Thanks,
> ERIC
>
>