You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by sebb <se...@gmail.com> on 2009/05/01 16:00:34 UTC

Re: test fails from ant

On 28/04/2009, Maya Hague <mh...@yahoo.com> wrote:
> Hi,
>
>  My test runs from the Jmeter UI but fails from Ant. I get the following errors. I use CSV_read to get values in the script. I have increased the jvm XMX value to 1.4gb. If I set the <jvmargs =-xmx512> the test completes but is there another way to fix this problem -

What's wrong with setting <jvmargs =-xmx512> ? Why do you need another
way to fix the problem?

Thanks in advance Maya
>
>  java.lang.OutOfMemoryError: Java heap space
>   at java.lang.String.<init>(Unknown Source)
>   at java.lang.StringBuffer.toString(Unknown Source)
>   at org.apache.soap.util.net.HTTPUtils.post(HTTPUtils.java:295)
>   at org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:309)
>   at org.apache.soap.messaging.Message.send(Message.java:123)
>   at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.sample(WebServiceSampler.java:493)
>   at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1007)
>   at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:290)
>   at java.lang.Thread.run(Unknown Source)
>
>  Test failed! java.lang.OutOfMemoryError: Java heap space
>   at java.util.ArrayList.<init>(Unknown Source)
>   at java.util.ArrayList.<init>(Unknown Source)
>   at org.apache.jmeter.functions.FileRowColContainer.splitLine(FileRowColContainer.java:149)
>   at org.apache.jmeter.functions.FileRowColContainer.load(FileRowColContainer.java:88)
>   at org.apache.jmeter.functions.FileRowColContainer.<init>(FileRowColContainer.java:72)
>   at org.apache.jmeter.functions.FileWrapper.getFile(FileWrapper.java:113)
>   at org.apache.jmeter.functions.FileWrapper.open(FileWrapper.java:99)
>   at org.apache.jmeter.functions.FileWrapper.getColumn(FileWrapper.java:156)
>   at org.apache.jmeter.functions.CSVRead.execute(CSVRead.java:117)
>   at org.apache.jmeter.engine.util.CompoundVariable.execute(CompoundVariable.java:138)
>   at org.apache.jmeter.engine.util.CompoundVariable.execute(CompoundVariable.java:107)
>   at org.apache.jmeter.testelement.property.FunctionProperty.getStringValue(FunctionProperty.java:87)
>   at org.apache.jmeter.testelement.AbstractTestElement.getPropertyAsString(AbstractTestElement.java:207)
>   at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.getXmlData(WebServiceSampler.java:178)
>   at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.openDocument(WebServiceSampler.java:396)
>   at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.createDocument(WebServiceSampler.java:361)
>   at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.sample(WebServiceSampler.java:429)
>   at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1007)
>   at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:290)
>   at java.lang.Thread.run(Unknown Source)
>
>
>
>

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


Re: test fails from ant

Posted by sebb <se...@gmail.com>.
On 05/05/2009, Maya Hague <mh...@yahoo.com> wrote:
> We have other tomcat servers running on the same server and didn't want to allocate memory to another process if we could avoid it. Could you atleast tell me what was causing that problem because the same test from a different server doesn't throw the error.

Impossible to say from the information you have provided.

If you wish to reduce the memory requirements, consider using JMeter
non-GUI mode without involving Ant as well, also see:

http://jakarta.apache.org/jmeter/usermanual/best-practices.html#lean_mean

>  Thanks
>  Maya
>
>
>
>  ________________________________
>  From: sebb <se...@gmail.com>
>  To: JMeter Users List <jm...@jakarta.apache.org>
>  Sent: Friday, May 1, 2009 7:00:34 AM
>  Subject: Re: test fails from ant
>
>
>  On 28/04/2009, Maya Hague <mh...@yahoo.com> wrote:
>  > Hi,
>  >
>  >  My test runs from the Jmeter UI but fails from Ant. I get the following errors. I use CSV_read to get values in the script. I have increased the jvm XMX value to 1.4gb. If I set the <jvmargs =-xmx512> the test completes but is there another way to fix this problem -
>
>  What's wrong with setting <jvmargs =-xmx512> ? Why do you need another
>  way to fix the problem?
>
>  Thanks in advance Maya
>  >
>  >  java.lang.OutOfMemoryError: Java heap space
>  >  at java.lang.String..<init>(Unknown Source)
>  >  at java.lang.StringBuffer.toString(Unknown Source)
>  >  at org.apache.soap.util.net.HTTPUtils.post(HTTPUtils.java:295)
>  >  at org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:309)
>  >  at org.apache.soap.messaging.Message.send(Message.java:123)
>  >  at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.sample(WebServiceSampler.java:493)
>  >  at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1007)
>  >  at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:290)
>  >  at java.lang.Thread.run(Unknown Source)
>  >
>  >  Test failed! java.lang.OutOfMemoryError: Java heap space
>  >  at java.util.ArrayList.<init>(Unknown Source)
>  >  at java.util.ArrayList.<init>(Unknown Source)
>  >  at org.apache.jmeter.functions.FileRowColContainer.splitLine(FileRowColContainer..java:149)
>  >  at org.apache.jmeter.functions.FileRowColContainer.load(FileRowColContainer.java:88)
>  >  at org.apache.jmeter.functions.FileRowColContainer.<init>(FileRowColContainer.java:72)
>  >  at org.apache.jmeter.functions.FileWrapper.getFile(FileWrapper.java:113)
>  >  at org.apache.jmeter.functions.FileWrapper.open(FileWrapper.java:99)
>  >  at org.apache.jmeter.functions.FileWrapper.getColumn(FileWrapper.java:156)
>  >  at org.apache.jmeter.functions.CSVRead.execute(CSVRead.java:117)
>  >  at org.apache.jmeter.engine.util.CompoundVariable.execute(CompoundVariable.java:138)
>  >  at org.apache.jmeter.engine.util.CompoundVariable.execute(CompoundVariable.java:107)
>  >  at org.apache.jmeter.testelement.property.FunctionProperty.getStringValue(FunctionProperty.java:87)
>  >  at org.apache.jmeter.testelement.AbstractTestElement.getPropertyAsString(AbstractTestElement.java:207)
>  >  at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.getXmlData(WebServiceSampler.java:178)
>  >  at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.openDocument(WebServiceSampler.java:396)
>  >  at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.createDocument(WebServiceSampler.java:361)
>  >  at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.sample(WebServiceSampler.java:429)
>  >  at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1007)
>  >  at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:290)
>  >  at java.lang.Thread.run(Unknown Source)
>  >
>  >
>  >
>  >
>
>
> ---------------------------------------------------------------------
>  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: test fails from ant

Posted by Maya Hague <mh...@yahoo.com>.
We have other tomcat servers running on the same server and didn't want to allocate memory to another process if we could avoid it. Could you atleast tell me what was causing that problem because the same test from a different server doesn't throw the error.

Thanks
Maya



________________________________
From: sebb <se...@gmail.com>
To: JMeter Users List <jm...@jakarta.apache.org>
Sent: Friday, May 1, 2009 7:00:34 AM
Subject: Re: test fails from ant

On 28/04/2009, Maya Hague <mh...@yahoo.com> wrote:
> Hi,
>
>  My test runs from the Jmeter UI but fails from Ant. I get the following errors. I use CSV_read to get values in the script. I have increased the jvm XMX value to 1.4gb. If I set the <jvmargs =-xmx512> the test completes but is there another way to fix this problem -

What's wrong with setting <jvmargs =-xmx512> ? Why do you need another
way to fix the problem?

Thanks in advance Maya
>
>  java.lang.OutOfMemoryError: Java heap space
>  at java.lang.String..<init>(Unknown Source)
>  at java.lang.StringBuffer.toString(Unknown Source)
>  at org.apache.soap.util.net.HTTPUtils.post(HTTPUtils.java:295)
>  at org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:309)
>  at org.apache.soap.messaging.Message.send(Message.java:123)
>  at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.sample(WebServiceSampler.java:493)
>  at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1007)
>  at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:290)
>  at java.lang.Thread.run(Unknown Source)
>
>  Test failed! java.lang.OutOfMemoryError: Java heap space
>  at java.util.ArrayList.<init>(Unknown Source)
>  at java.util.ArrayList.<init>(Unknown Source)
>  at org.apache.jmeter.functions.FileRowColContainer.splitLine(FileRowColContainer..java:149)
>  at org.apache.jmeter.functions.FileRowColContainer.load(FileRowColContainer.java:88)
>  at org.apache.jmeter.functions.FileRowColContainer.<init>(FileRowColContainer.java:72)
>  at org.apache.jmeter.functions.FileWrapper.getFile(FileWrapper.java:113)
>  at org.apache.jmeter.functions.FileWrapper.open(FileWrapper.java:99)
>  at org.apache.jmeter.functions.FileWrapper.getColumn(FileWrapper.java:156)
>  at org.apache.jmeter.functions.CSVRead.execute(CSVRead.java:117)
>  at org.apache.jmeter.engine.util.CompoundVariable.execute(CompoundVariable.java:138)
>  at org.apache.jmeter.engine.util.CompoundVariable.execute(CompoundVariable.java:107)
>  at org.apache.jmeter.testelement.property.FunctionProperty.getStringValue(FunctionProperty.java:87)
>  at org.apache.jmeter.testelement.AbstractTestElement.getPropertyAsString(AbstractTestElement.java:207)
>  at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.getXmlData(WebServiceSampler.java:178)
>  at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.openDocument(WebServiceSampler.java:396)
>  at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.createDocument(WebServiceSampler.java:361)
>  at org.apache.jmeter.protocol.http.sampler.WebServiceSampler.sample(WebServiceSampler.java:429)
>  at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1007)
>  at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:290)
>  at java.lang.Thread.run(Unknown Source)
>
>
>
>

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