Jmeter file is not running.Failing with outof memory expection

104 views
Skip to first unread message

Prabhu

unread,
Jan 25, 2008, 1:04:35 PM1/25/08
to jchav
Hi,

The jmeter file runs on jmeter Client successfully and also when i use
ant from jmeter\extra\build.xml file.
In jmeter.bat file the jchav build file is using i have incresed the
heap size to
set HEAP=-Xms1024m -Xmx1024m

The build is successful but the jmeter report is not generated.


I am getting following error when i run buil-example.xml file for my
jmeter xml file,

C:\Jmeter\jchav-1.1.1\docs\javelina>ant -f build-example.xml run-
jmeter
Buildfile: build-example.xml

init:
[echo] Loading properties from build.properties
[echo]
[echo] This example assumes JChav libraries exist in C:/Jmeter/
jchav-1.1.1
[echo] If they don't first run "ant build-jar" from the etc/
folder to create the lib
s.
[echo]
[echo] Additionally it assumes that you have JMeter installed at
C:/Jmeter/jakarta-jm
eter-2.3RC4, if this is not the correct location create a file
kprabhu.properties in this
directory overriding the location with the line
jmeter.install.dir=your path to JMeter.
[echo]
[echo]

run-jmeter:
[echo]
[echo]
[echo] C:/Jmeter/jakarta-jmeter-2.3RC4/extras/ant-jmeter.jar
[jmeter] Executing test plan: C:\Jmeter\jchav-1.1.1\docs\javelina
\Javelina-EmployeeMain
tenanceV4.jmx
[jmeter] java.lang.reflect.InvocationTargetException
[jmeter] JMeter home directory was detected as: C:\Jmeter\jakarta-
jmeter-2.3RC4
[jmeter] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[jmeter] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
va:39)
[jmeter] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
rImpl.java:25)
[jmeter] at java.lang.reflect.Method.invoke(Method.java:585)
[jmeter] at org.apache.jmeter.NewDriver.main(NewDriver.java:
183)
[jmeter] Caused by: java.lang.OutOfMemoryError: Java heap space

BUILD SUCCESSFUL
Total time: 9 seconds
C:\Jmeter\jchav-1.1.1\docs\javelina>

Kindly, help.

Paul Goulbourn

unread,
Jan 26, 2008, 3:56:22 AM1/26/08
to jc...@googlegroups.com, jchav
It sounds like the ant task is running out of memory.

From memory the environmetal variable to set is ANT_OPTS.
ie try
set ANT_OPTS=-Xmx1024M

Let us know how you get on.

Cheers
Paul

Prabhu

unread,
Jan 29, 2008, 1:12:53 PM1/29/08
to jchav
Its already set to -Xmx1024m in my env variable.

Paul Goulbourn

unread,
Jan 29, 2008, 2:06:08 PM1/29/08
to jc...@googlegroups.com, jchav
You said you have set HEAP in your batch file. Have you set ANT_OPTS
on command line before running the ant command? JChav does not use
your jmeter.bat file so any environment you set in that will not be
used.

Cheers
Paul

Reply all
Reply to author
Forward
0 new messages