-
1. Re: java.lang.OutOfMemoryError with CMR Collection
hris Apr 18, 2003 2:22 AM (in response to afsilva)What are your JVM memory settings?
in the JBOSS_HOME/bin/run.bat, try to set the java settings to:
%JAVA% %JAVA_OPTS% -Xms256m -Xmx256m -classpath "%JBOSS_CLASSPATH%" org.jboss.Main %ARGS%
As a rule of thumb, you can set the -Xms and -Xmx to 1/2 the available (physical) memory on your server. The default java settings are definitely not enough to run large apps. Plus, what's the point in gearing a sexy multi-Giga RAM server if you run java on 128MB?
Hope this helps -
2. Re: java.lang.OutOfMemoryError with CMR Collection
hris Apr 18, 2003 4:22 AM (in response to afsilva)Looks like my last post doesn't show (???)
Let's try again:
set JVM memory settings in this file:
JBOSS_HOME/bin/run.bat
%JAVA% %JAVA_OPTS% -Xms128m -Xmx128m -classpath "%JBOSS_CLASSPATH%" org.jboss.Main %ARGS%
128m = 128MB allocated to this java virtual machine.
128MB is not enough for large or mem-hungry apps. should be at least 256MB or approx 1/2 the physical memory available on the machine.
Laurent