Java Out of Memory error...

Need help? Post your questions here.

Moderator: moderators

Java Out of Memory error...

Postby ponch_420 » Sat May 01, 2010 12:55 pm

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
ponch_420
 

Increasing the maximum memory for the heap

Postby jeremyh » Fri May 07, 2010 8:11 pm

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
jeremyh
 
Posts: 49
Joined: Thu Feb 05, 2009 12:01 am
Location: Westminster, Colorado, United States

Postby sindre_mehus » Sat May 08, 2010 6:36 am

On Windows, click the Subsonic tray icon, click Settings and adjust the memory limit. Try setting it to 150 MB.
Subsonic developer
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway


Return to Help

Who is online

Users browsing this forum: No registered users and 20 guests