5 pts.
 how to increase jvm heap size of tomcat 6 in linux
my linux server is having 8gb ram. But, When I set the max jvm heap size of tomcat 6 to 3gb or more, it gives an error saying .. Error occurred during initialization of VM Could not reserve enough space for object heap .. note : it works fine with 2gb max jvm heap size of tomcat 6

Software/Hardware used:
linux, tomcat6 , java 1.6
ASKED: March 11, 2010  7:29 AM
UPDATED: March 29, 2010  1:27 PM

Answer Wiki:
What "Linux" are you using? Especially, are you using a 32bit or 64bit Linux OS? If you are using a 64bit OS, is Tomcat 6 also a 64 bit application? I am asking this, as the JVM 32bit maximum heap size could be in theory 4GB (2^32). Now, the 32bit OS has some built in limits per process, which is around 3GB. And again, the JVM requires some additional memory for its management. So, 2GB is realistic for a 32 bit environment. http://monkieblankie.blogspot.com/2009/10/maximum-32-bit-jvm-heap-size-2gb.html Greetings Maik
Last Wiki Answer Submitted:  March 29, 2010  1:26 pm  by  Spasshaben   15 pts.
All Answer Wiki Contributors:  Spasshaben   15 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Hi,

 I am getting this exception when doing shutdown of tomcat server
 Error occurred during initialization of VM

Could not reserve enough space for
object heap

I am using 64bit linux and 3.7gb and tomcat7.0.26
Please let me know the what is the solution for this and here am sending my confuration details please find it
if [ -z "$LOGGING_MANAGER" ]; then
  JAVA_OPTS=”$JAVA_OPTS -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -XX:PermSize=256m -XX:MaxPermSize=512m -Xms512m -Xmx1024m -XX:+CMSClassUnloadingEnabled”
 
i addded this place only other nothing i changed in this file please provide solution for this issue
 10 pts.