You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Daniel Bruce Lynes <dl...@shaw.ca> on 2002/09/12 02:50:18 UTC

java.lang.OutOfMemoryError

I've noticed the Jmeter 1.7 series has a pretty bad memory leak.  It's 
noticable in both the release (1.7) and the nightly builds up to and 
including August 1.  I haven't checked any other builds, but I would suspect 
the same.

The memory leaks are apparent in JMeter running on Linux using Sun's 1.4.0 
JDK.

Also, I run into a java.lang.OutOfMemoryError throwable when attempting to 
load a 29MB jmx file.  Is there a particular reason why Jmeter needs to load 
the entire file into memory?  At least...that's what I'm assuming is causing 
this problem.

I've got a jmx script that will create 1000 users on my system.  I want to 
load test my server under this environment.  I suppose if I can't use Jmeter 
to do it, I'll have to write my own code.  I just thought it'd be easier to 
use a package that was already written.

Thanks for any help.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: java.lang.OutOfMemoryError

Posted by Mike Stover <ms...@apache.org>.
On 11 Sep 2002 at 19:43, Bruce Barrett wrote:

> Hi All,
>   I noticed a leak as well that disappeared (or at least was greatly reduced)
> when I removed the "tree" listener.

This is not a memory leak - it is simply very great memory usage.  The tree listener is not 
intended to be used is such large tests because it saves all results for viewing.

--
Michael Stover
mstover1@apache.org
Yahoo IM: mstover_ya
ICQ: 152975688

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: java.lang.OutOfMemoryError

Posted by Bruce Barrett <br...@ebrary.com>.
Hi All,
  I noticed a leak as well that disappeared (or at least was greatly reduced)
when I removed the "tree" listener.

I was asking for the same, rather large "page" over and over.
Reliably ran out of memory after 870-900 requests.

Mac OS X.1.5 and CVS top of tree from about 9/5/02
Sorry, I don't have the Java runtime version handy.

Bruce
-- 
Bruce Barrett		bruce@ebrary.com
SW QA Manager

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: java.lang.OutOfMemoryError

Posted by Mike Stover <ms...@apache.org>.
I'd suggest changing your bash script to generate a users.xml file for the User Parameter 
Modifier to use instead.  Then, use a loop controller to loop through the add sample, and let 
the User Parameter Modifier plug in the unique data.

Or, you could use your bash script to run JMeter in non-gui mode, and run it 1000 times, 
changing the test script slightly between each run.

-Mike

On 12 Sep 2002 at 2:07, Daniel Bruce Lynes wrote:

> On Wednesday 11 September 2002 19:32, Mike Stover wrote:
> 
> > Have you tried increasing the memory available to the JVM?  And why would
> > you need a jmx file that's 29MB?
> 
> My script grabs all the images, javascript and stylesheets for the pages used.
> The middle section performs a web page operation to add some data to the 
> database.  It processes 1000 add operations.  It cannot be accomplished with 
> loop controller, as it needs to be unique data.  So, I generated the jmx file 
> using a bash script, and then tried to load it up in jmeter.
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 



--
Michael Stover
mstover1@apache.org
Yahoo IM: mstover_ya
ICQ: 152975688

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: java.lang.OutOfMemoryError

Posted by Daniel Bruce Lynes <dl...@shaw.ca>.
On Wednesday 11 September 2002 19:32, Mike Stover wrote:

> Have you tried increasing the memory available to the JVM?  And why would
> you need a jmx file that's 29MB?

My script grabs all the images, javascript and stylesheets for the pages used.
The middle section performs a web page operation to add some data to the 
database.  It processes 1000 add operations.  It cannot be accomplished with 
loop controller, as it needs to be unique data.  So, I generated the jmx file 
using a bash script, and then tried to load it up in jmeter.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: java.lang.OutOfMemoryError

Posted by Daniel Bruce Lynes <dl...@shaw.ca>.
On Wednesday 11 September 2002 19:32, Mike Stover wrote:
> Have you tried increasing the memory available to the JVM?  And why would

Forgot to answer this...sorry.

Yes, I have tried increasing the size of the java heap.  Both the initial and 
the maximum sizes.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: java.lang.OutOfMemoryError

Posted by Mike Stover <ms...@apache.org>.
Have you tried increasing the memory available to the JVM?  And why would you 
need a jmx file that's 29MB?

-Mike

On 11 Sep 2002 at 17:50, Daniel Bruce Lynes wrote:

> I've noticed the Jmeter 1.7 series has a pretty bad memory leak.  It's 
> noticable in both the release (1.7) and the nightly builds up to and 
> including August 1.  I haven't checked any other builds, but I would suspect 
> the same.
> 
> The memory leaks are apparent in JMeter running on Linux using Sun's 1.4.0 
> JDK.
> 
> Also, I run into a java.lang.OutOfMemoryError throwable when attempting to 
> load a 29MB jmx file.  Is there a particular reason why Jmeter needs to load 
> the entire file into memory?  At least...that's what I'm assuming is causing 
> this problem.
> 
> I've got a jmx script that will create 1000 users on my system.  I want to 
> load test my server under this environment.  I suppose if I can't use Jmeter 
> to do it, I'll have to write my own code.  I just thought it'd be easier to 
> use a package that was already written.
> 
> Thanks for any help.
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 



--
Michael Stover
mstover1@apache.org
Yahoo IM: mstover_ya
ICQ: 152975688

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>