You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Richard Hubbell <ri...@yahoo.com> on 2007/10/16 20:50:19 UTC

jvm tuning for jmeter

Might as well just say thanks to sebb to start since
all the answers/direction come from them.

I wanted to utilize more memory resources for the jvm
since I'm seeing some errors that I think are due to
memory constraints imposed by the jmeter script.
I'm an no java expert, hell I'm barely a java
beginner.
But hopefully tuning the jvm is just a matter of
tuning a couple of the main settings.

I'm going to start by increasing heap size min and
max.

>From the jmeter script I found this broken link is
there something more current to describe the jvm
settings?
http://www.atg.com/portal/myatg/developer?paf_dm=full&paf_gear_id=1100010&detailArticle=true&id=9606

Errors I'm seeing:
jmeter.threads.JMeterThread: Test failed!
java.lang.StackOverflowError

jmeter.threads.JMeterThread: Test failed!
java.lang.OutOfMemoryError: Java heap space


What's the format for adding env vars to the
jakarta/bin/jmeter script?

For example if I wanted to add more logging for gc?
For doing so on command-line this is the option
-Xloggc:file

How to translate to use in the jmeter script?



       
____________________________________________________________________________________
Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
http://farechase.yahoo.com/

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


Re: jvm tuning for jmeter

Posted by Richard Hubbell <ri...@yahoo.com>.
--- sebb <se...@gmail.com> wrote:
> 
> Perhaps it gave a better explanation of the JVM
> settings?

Well that what I'd expect but no matter.

> 
> > The jmeter script is outdated. I was looking at
> some
> > of the entries.  JVMs seem to have changed a bit.
> > I would say that most people would be better off
> with
> > using jvm defaults and adjust as needed.
> 
> Perhaps; they were probably relevant for Java 1.3.

Yep.

> 
> > > >
> > > >
> > > > > > Errors I'm seeing:
> > > > > > jmeter.threads.JMeterThread: Test failed!
> > > > > > java.lang.StackOverflowError
> > > > > >
> > > > > > jmeter.threads.JMeterThread: Test failed!
> > > > > > java.lang.OutOfMemoryError: Java heap
> space
> > > > > >
> > > > >
> > > > > If this happens almost immediately, it could
> be
> > > due
> > > > > to a bug - e.g the
> > > > > While Controller can cause this, see
> > > > >
> > > >
> > >
> >
>
http://issues.apache.org/bugzilla/show_bug.cgi?id=33954
> > > > >
> > > >
> > > > I am using LAST as the condition of the while
> > > loop, I
> > > > may need to change so I use some other
> condition.
> > > > That bug report is kind of vague though so I'm
> not
> > > > even certain if I'm triggering that problem.
> > > >
> > > > I am in a
> > > > Loop
> > > > |_http req sampler
> > > > |_while(LAST)
> > > >  |_http req sampler
> > > >  |_link parser
> > > >
> > >
> > > But does the Overflow happen as soon as the
> while
> > > controller runs, or
> > > only later?
> >
> > It appears to be related to the while controller
> > having a null value as a condition.  I would guess
> > that would equate to false.  No?
> 
> No, see:
> 
>
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#While_Controller

Yes, I've read that. No mention of null values.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Re: jvm tuning for jmeter

Posted by sebb <se...@gmail.com>.
On 18/10/2007, Richard Hubbell <ri...@yahoo.com> wrote:
>
> --- sebb <se...@gmail.com> wrote:
>
> > I don't know what was in the document, and it is no
> > longer available,
> > so it is difficult to know how much was
> > JMeter-specific.
>
> Ok, if it wasn't jmeter specific wonder why it was in
> there?  (no need to answer)

Perhaps it gave a better explanation of the JVM settings?

> The jmeter script is outdated. I was looking at some
> of the entries.  JVMs seem to have changed a bit.
> I would say that most people would be better off with
> using jvm defaults and adjust as needed.

Perhaps; they were probably relevant for Java 1.3.

> > >
> > >
> > > > > Errors I'm seeing:
> > > > > jmeter.threads.JMeterThread: Test failed!
> > > > > java.lang.StackOverflowError
> > > > >
> > > > > jmeter.threads.JMeterThread: Test failed!
> > > > > java.lang.OutOfMemoryError: Java heap space
> > > > >
> > > >
> > > > If this happens almost immediately, it could be
> > due
> > > > to a bug - e.g the
> > > > While Controller can cause this, see
> > > >
> > >
> >
> http://issues.apache.org/bugzilla/show_bug.cgi?id=33954
> > > >
> > >
> > > I am using LAST as the condition of the while
> > loop, I
> > > may need to change so I use some other condition.
> > > That bug report is kind of vague though so I'm not
> > > even certain if I'm triggering that problem.
> > >
> > > I am in a
> > > Loop
> > > |_http req sampler
> > > |_while(LAST)
> > >  |_http req sampler
> > >  |_link parser
> > >
> >
> > But does the Overflow happen as soon as the while
> > controller runs, or
> > only later?
>
> It appears to be related to the while controller
> having a null value as a condition.  I would guess
> that would equate to false.  No?

No, see:

http://jakarta.apache.org/jmeter/usermanual/component_reference.html#While_Controller

>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.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: jvm tuning for jmeter

Posted by Richard Hubbell <ri...@yahoo.com>.
--- sebb <se...@gmail.com> wrote:

> I don't know what was in the document, and it is no
> longer available,
> so it is difficult to know how much was
> JMeter-specific.

Ok, if it wasn't jmeter specific wonder why it was in
there?  (no need to answer)

The jmeter script is outdated. I was looking at some
of the entries.  JVMs seem to have changed a bit.
I would say that most people would be better off with
using jvm defaults and adjust as needed.

> >
> >
> > > > Errors I'm seeing:
> > > > jmeter.threads.JMeterThread: Test failed!
> > > > java.lang.StackOverflowError
> > > >
> > > > jmeter.threads.JMeterThread: Test failed!
> > > > java.lang.OutOfMemoryError: Java heap space
> > > >
> > >
> > > If this happens almost immediately, it could be
> due
> > > to a bug - e.g the
> > > While Controller can cause this, see
> > >
> >
>
http://issues.apache.org/bugzilla/show_bug.cgi?id=33954
> > >
> >
> > I am using LAST as the condition of the while
> loop, I
> > may need to change so I use some other condition.
> > That bug report is kind of vague though so I'm not
> > even certain if I'm triggering that problem.
> >
> > I am in a
> > Loop
> > |_http req sampler
> > |_while(LAST)
> >  |_http req sampler
> >  |_link parser
> >
> 
> But does the Overflow happen as soon as the while
> controller runs, or
> only later?

It appears to be related to the while controller
having a null value as a condition.  I would guess
that would equate to false.  No?



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Re: jvm tuning for jmeter

Posted by sebb <se...@gmail.com>.
On 17/10/2007, Richard Hubbell <ri...@yahoo.com> wrote:
>
> --- sebb <se...@gmail.com> wrote:
>
> > On 16/10/2007, Richard Hubbell
> > <ri...@yahoo.com> wrote:
> >
> > The settings are documented by the Java provider.
> >
> > For example, if you are running Sun Java 1.5 on
> > Windows:
> >
> >
> http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/java.html
> >
>
> Yes, that much I knew, but after reading this from the
> jmeter script (on linux BTW), I was hoping maybe some
> Jmeter specific tunings were available:

I don't know what was in the document, and it is no longer available,
so it is difficult to know how much was JMeter-specific.

> # The following should be reasonably good values for
> most tests running
> # on Sun JVMs. Following is the analysis on which it
> is based. If it's total
> # gibberish to you, please study my article at
> #
> http://www.atg.com/portal/myatg/developer?paf_dm=full&paf_gear_id=1100010&detailArticle=true&id=9606
> #
> # JMeter objects can generally be grouped into three
> life-length groups:
> #
> # - Per-sample objects (results, DOMs,...). An awful
> lot of those.
> #   Life length of milliseconds to a few seconds.
> #
> # - Per-run objects (threads, listener data
> structures,...). Not that many
> #   of those unless we use the table or tree listeners
> on heavy runs.
> #   Life length of minutes to several hours, from
> creation to start of next run.
> #
> # - Per-work-session objects (test plans, GUIs,...).
> #   Life length: for the life of the JVM.
>
>
> > > Errors I'm seeing:
> > > jmeter.threads.JMeterThread: Test failed!
> > > java.lang.StackOverflowError
> > >
> > > jmeter.threads.JMeterThread: Test failed!
> > > java.lang.OutOfMemoryError: Java heap space
> > >
> >
> > If this happens almost immediately, it could be due
> > to a bug - e.g the
> > While Controller can cause this, see
> >
> http://issues.apache.org/bugzilla/show_bug.cgi?id=33954
> >
>
> I am using LAST as the condition of the while loop, I
> may need to change so I use some other condition.
> That bug report is kind of vague though so I'm not
> even certain if I'm triggering that problem.
>
> I am in a
> Loop
> |_http req sampler
> |_while(LAST)
>  |_http req sampler
>  |_link parser
>

But does the Overflow happen as soon as the while controller runs, or
only later?

>
> > > How to translate to use in the jmeter script?
> > >
> >
> > This is a DOS question.
> >
> > You can just add it to the command line.
> >
> > If you don't want to edit the file, then try:
> >
> > > set JVM_ARGS=-Xloggc:file
> > > jmeter [args]
>
> Yes, thanks.  It's actually a sh script on linux, I
> just missed how it was working. Thought it was
> magically getting values from the ENV and passing
> them.
> I got it figured out.

OK, good.

[dunno why I thought you were on DOS]


>
>
>      ____________________________________________________________________________________
> Don't let your dream ride pass you by. Make it a reality with Yahoo! Autos.
> http://autos.yahoo.com/index.html
>
>
>
>
> ---------------------------------------------------------------------
> 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: jvm tuning for jmeter

Posted by Richard Hubbell <ri...@yahoo.com>.
--- sebb <se...@gmail.com> wrote:

> On 16/10/2007, Richard Hubbell
> <ri...@yahoo.com> wrote:
> 
> The settings are documented by the Java provider.
> 
> For example, if you are running Sun Java 1.5 on
> Windows:
> 
>
http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/java.html
> 

Yes, that much I knew, but after reading this from the
jmeter script (on linux BTW), I was hoping maybe some
Jmeter specific tunings were available:

# The following should be reasonably good values for
most tests running
# on Sun JVMs. Following is the analysis on which it
is based. If it's total
# gibberish to you, please study my article at
#
http://www.atg.com/portal/myatg/developer?paf_dm=full&paf_gear_id=1100010&detailArticle=true&id=9606
#
# JMeter objects can generally be grouped into three
life-length groups:
#
# - Per-sample objects (results, DOMs,...). An awful
lot of those.
#   Life length of milliseconds to a few seconds.
#
# - Per-run objects (threads, listener data
structures,...). Not that many
#   of those unless we use the table or tree listeners
on heavy runs.
#   Life length of minutes to several hours, from
creation to start of next run.
#
# - Per-work-session objects (test plans, GUIs,...).
#   Life length: for the life of the JVM.


> > Errors I'm seeing:
> > jmeter.threads.JMeterThread: Test failed!
> > java.lang.StackOverflowError
> >
> > jmeter.threads.JMeterThread: Test failed!
> > java.lang.OutOfMemoryError: Java heap space
> >
> 
> If this happens almost immediately, it could be due
> to a bug - e.g the
> While Controller can cause this, see
>
http://issues.apache.org/bugzilla/show_bug.cgi?id=33954
> 

I am using LAST as the condition of the while loop, I
may need to change so I use some other condition.
That bug report is kind of vague though so I'm not
even certain if I'm triggering that problem.

I am in a 
Loop
|_http req sampler
|_while(LAST)
  |_http req sampler
  |_link parser



> > How to translate to use in the jmeter script?
> >
> 
> This is a DOS question.
> 
> You can just add it to the command line.
> 
> If you don't want to edit the file, then try:
> 
> > set JVM_ARGS=-Xloggc:file
> > jmeter [args]

Yes, thanks.  It's actually a sh script on linux, I
just missed how it was working. Thought it was
magically getting values from the ENV and passing
them.
I got it figured out.




      ____________________________________________________________________________________
Don't let your dream ride pass you by. Make it a reality with Yahoo! Autos.
http://autos.yahoo.com/index.html
 



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


Re: jvm tuning for jmeter

Posted by sebb <se...@gmail.com>.
On 16/10/2007, Richard Hubbell <ri...@yahoo.com> wrote:
> Might as well just say thanks to sebb to start since
> all the answers/direction come from them.
>
> I wanted to utilize more memory resources for the jvm
> since I'm seeing some errors that I think are due to
> memory constraints imposed by the jmeter script.
> I'm an no java expert, hell I'm barely a java
> beginner.
> But hopefully tuning the jvm is just a matter of
> tuning a couple of the main settings.
>
> I'm going to start by increasing heap size min and
> max.
>
> From the jmeter script I found this broken link is
> there something more current to describe the jvm
> settings?
> http://www.atg.com/portal/myatg/developer?paf_dm=full&paf_gear_id=1100010&detailArticle=true&id=9606

The settings are documented by the Java provider.

For example, if you are running Sun Java 1.5 on Windows:

http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/java.html

> Errors I'm seeing:
> jmeter.threads.JMeterThread: Test failed!
> java.lang.StackOverflowError
>
> jmeter.threads.JMeterThread: Test failed!
> java.lang.OutOfMemoryError: Java heap space
>

If this happens almost immediately, it could be due to a bug - e.g the
While Controller can cause this, see
http://issues.apache.org/bugzilla/show_bug.cgi?id=33954

> What's the format for adding env vars to the
> jakarta/bin/jmeter script?
>
> For example if I wanted to add more logging for gc?
> For doing so on command-line this is the option
> -Xloggc:file
>
> How to translate to use in the jmeter script?
>

This is a DOS question.

You can just add it to the command line.

If you don't want to edit the file, then try:

> set JVM_ARGS=-Xloggc:file
> jmeter [args]


>
>
> ____________________________________________________________________________________
> Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
> http://farechase.yahoo.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