You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by bu...@apache.org on 2008/02/04 12:20:55 UTC

DO NOT REPLY [Bug 44348] New: - OutOfMemory exception

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44348>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=44348

           Summary: OutOfMemory exception
           Product: JMeter
           Version: 2.3.1
          Platform: Sun
        OS/Version: Windows XP
            Status: NEW
          Severity: major
          Priority: P2
         Component: Main
        AssignedTo: jmeter-dev@jakarta.apache.org
        ReportedBy: colin.green@focus-solutions.co.uk


We started a JMeter test using 4 threads at about 1pm on Friday to run over 
the weekend. On checking the logs it seems the test stopped about 9 hours in, 
the target server had not reported any problems and was still running as 
exepcted. jmeter.log however shos that each of the 4 threads terminated with 
an OutOfMemory exception within a few minutes of each other....

--------------------------------------------------
2008/02/01 12:54:13 INFO  - jmeter.threads.JMeterThread: Thread Thread Group 1-
1 started 
2008/02/01 12:54:13 INFO  - jmeter.threads.JMeterThread: Thread Thread Group 1-
2 started 
2008/02/01 12:54:13 INFO  - jmeter.threads.JMeterThread: Thread Thread Group 1-
3 started 
2008/02/01 12:54:14 INFO  - jmeter.threads.JMeterThread: Thread Thread Group 1-
4 started 
2008/02/01 20:40:25 ERROR - jmeter.threads.JMeterThread: Test failed! 
java.lang.OutOfMemoryError: Java heap space
	at java.io.BufferedInputStream.<init>(Unknown Source)
	at java.io.BufferedInputStream.<init>(Unknown Source)
	at org.apache.jmeter.protocol.http.sampler.HTTPSampler.readResponse
(HTTPSampler.java:219)
	at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample
(HTTPSampler.java:470)
	at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample
(HTTPSamplerBase.java:863)
	at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample
(HTTPSamplerBase.java:849)
	at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:300)
	at java.lang.Thread.run(Unknown Source)

2008/02/01 20:40:26 INFO  - jmeter.threads.JMeterThread: Thread Thread Group 1-
4 is done 
2008/02/01 20:40:26 INFO  - jmeter.engine.StandardJMeterEngine: Ending thread 
Thread Group 1-4 
2008/02/01 20:41:24 ERROR - jmeter.threads.JMeterThread: Test failed! 
java.lang.OutOfMemoryError: Java heap space
	at sun.net.www.http.ChunkedInputStream.ensureRawAvailable(Unknown 
Source)
	at sun.net.www.http.ChunkedInputStream.readAheadNonBlocking(Unknown 
Source)
	at sun.net.www.http.ChunkedInputStream.readAhead(Unknown Source)
	at sun.net.www.http.ChunkedInputStream.available(Unknown Source)
	at java.io.FilterInputStream.available(Unknown Source)
	at java.io.BufferedInputStream.read(Unknown Source)
	at java.io.FilterInputStream.read(Unknown Source)
	at org.apache.jmeter.protocol.http.sampler.HTTPSampler.readResponse
(HTTPSampler.java:256)
	at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample
(HTTPSampler.java:470)
	at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample
(HTTPSamplerBase.java:863)
	at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample
(HTTPSamplerBase.java:849)
	at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:300)
	at java.lang.Thread.run(Unknown Source)

2008/02/01 20:41:25 INFO  - jmeter.threads.JMeterThread: Thread Thread Group 1-
2 is done 
2008/02/01 20:41:25 INFO  - jmeter.engine.StandardJMeterEngine: Ending thread 
Thread Group 1-2 
2008/02/01 20:47:57 ERROR - jmeter.threads.JMeterThread: Test failed! 
java.lang.OutOfMemoryError: Java heap space
	at java.util.Arrays.copyOf(Unknown Source)
	at java.lang.StringCoding.safeTrim(Unknown Source)
	at java.lang.StringCoding.access$100(Unknown Source)
	at java.lang.StringCoding$StringDecoder.decode(Unknown Source)
	at java.lang.StringCoding.decode(Unknown Source)
	at java.lang.String.<init>(Unknown Source)
	at java.lang.String.<init>(Unknown Source)
	at org.apache.jmeter.samplers.SampleResult.getResponseDataAsString
(SampleResult.java:515)
	at org.apache.jmeter.assertions.ResponseAssertion.evaluateResponse
(ResponseAssertion.java:273)
	at org.apache.jmeter.assertions.ResponseAssertion.getResult
(ResponseAssertion.java:175)
	at org.apache.jmeter.threads.JMeterThread.checkAssertions
(JMeterThread.java:517)
	at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:310)
	at java.lang.Thread.run(Unknown Source)

2008/02/01 20:47:58 INFO  - jmeter.threads.JMeterThread: Thread Thread Group 1-
3 is done 
2008/02/01 20:47:58 INFO  - jmeter.engine.StandardJMeterEngine: Ending thread 
Thread Group 1-3 
2008/02/01 20:56:50 ERROR - jmeter.threads.JMeterThread: Test failed! 
java.lang.OutOfMemoryError: Java heap space

2008/02/01 20:56:50 INFO  - jmeter.threads.JMeterThread: Thread Thread Group 1-
1 is done 
2008/02/01 20:56:50 INFO  - jmeter.engine.StandardJMeterEngine: Ending thread 
Thread Group 1-1 
2008/02/01 20:56:50 INFO  - jmeter.engine.StandardJMeterEngine: Stopping test 
2008/02/01 20:56:50 INFO  - jmeter.engine.StandardJMeterEngine: Notifying test 
listeners of end of test 
2008/02/01 20:56:50 INFO  - jmeter.gui.util.JMeterMenuBar: setRunning
(false,*local*) 
2008/02/01 20:56:50 INFO  - jmeter.engine.StandardJMeterEngine: Test has ended 
--------------------------------------------------


I'm using hte standard jmeter.bat file that comes with the JMeter 2.3.1 and 
that seems to allocate a max heap size of 256MB. The JMeter script itself 
contains a 'Response Assertion',' Assertion Results', 'View Results Tree' and 
an 'Aggregate Report'. All of the result pages are empty as none of the 
assertions failed. The Aggregate report is showing a total of 883,310 samples.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


DO NOT REPLY [Bug 44348] - OutOfMemory exception

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44348>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=44348


sebb@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX




------- Additional Comments From sebb@apache.org  2008-02-04 04:07 -------
From
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Aggregate_Report

"Calculation of the Median and 90% Line values requires a lot of memory as
details of every Sample have to be saved. See the Summary Report  for a similar
Listener that does not need so much memory."

There's nothing that can be done about this; whatever memory allocation is used
the memory will eventually run out.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


DO NOT REPLY [Bug 44348] - OutOfMemory exception

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44348>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=44348





------- Additional Comments From colin.green@focus-solutions.co.uk  2008-02-04 03:24 -------
Created an attachment (id=21464)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=21464&action=view)
The JMeter script in use when the excpetions were thrown.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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