Page 1 of 1

Java Out of Memory error...

PostPosted: Sat May 01, 2010 12:55 pm
by ponch_420
Hello all I a N00b here and have installed the latest release 3.9 and got the following error i then installed the latest beta release on Windows 2008 R2 Standard with the most up to date Java application. This is the error I am receiving, any ideas on what is happening here?

Subsonic encountered an internal error. You can report this error in the Subsonic Forum. Please include the information below.
Exception java.lang.OutOfMemoryError
Message Java heap space
Java version Sun Microsystems Inc. 1.6.0_20
Operating system Windows Server 2008 R2 6.1
Server jetty-6.1.x
Memory Used 96 of 96 MB
Stack trace java.lang.OutOfMemoryError: Java heap space

Increasing the maximum memory for the heap

PostPosted: Fri May 07, 2010 8:11 pm
by jeremyh
You just need to increase the maximum memory allowed for the heap in the startup script. On linux it is the tomcat startup script (/etc/init.d/tomcat6), but you will likely have something else on Windows (whatever hosts the subsonic instance).

I adjusted the line:
"JAVA_OPTS="-Djava.awt.headless=true -Xmx1024M"

the -Xmx switch specifies the maximum heap to allow for the process.
(you can also put in -Xms to adjust the initial heap size).

see http://forums.sun.com/thread.jspa?threadID=326216

PostPosted: Sat May 08, 2010 6:36 am
by sindre_mehus
On Windows, click the Subsonic tray icon, click Settings and adjust the memory limit. Try setting it to 150 MB.