#239 java.lang.OutOfMemoryError in headless mode with default options

3.12
open
None
5
2013-05-24
2013-05-24
Ravi Joshi
No

Hi,

I am running console (The Grinder 3.11) in headless mode with default options. Each time I am starting it, it is showing out of memory error.

root@dell:~# /opt/jdk1.7.0_01/jre/bin/java -classpath /opt/grinder_console/lib/grinder.jar net.grinder.Console -headless
2013-05-19 22:14:26,013 INFO  console: The Grinder 3.11
2013-05-19 22:14:26,115 INFO  org.eclipse.jetty.server.Server: jetty-7.6.1.v20120215
2013-05-19 22:14:26,221 INFO  org.eclipse.jetty.server.AbstractConnector: Started SelectChannelConnector@:6373
Exception in thread "Timer-0" java.lang.OutOfMemoryError: Java heap space
    at java.util.Arrays.copyOfRange(Arrays.java:2694)
    at java.lang.String.<init>(String.java:234)
    at java.lang.StringBuilder.toString(StringBuilder.java:405)
    at java.io.UnixFileSystem.resolve(UnixFileSystem.java:108)
    at java.io.File.<init>(File.java:341)
    at net.grinder.util.Directory.listContents(Directory.java:214)
    at net.grinder.console.distribution.FileDistributionImplementation.scanDistributionFiles(FileDistributionImplementation.java:206)
    at net.grinder.console.distribution.WireFileDistribution$1.run(WireFileDistribution.java:39)
    at java.util.TimerThread.mainLoop(Timer.java:555)
    at java.util.TimerThread.run(Timer.java:505)

As suggested by Phil, changing the grinder.console.scriptDistributionDirectory in .grinder_console file to different directory helped and it worked (Although the parameter grinder.console.scriptDistributionDirectory was absent in the .grinder_console file).

-Ravi Joshi

Discussion


Log in to post a comment.