how to increase jvm heap size of tomcat 6 in linux

5 pts.
Tags:
Apache Tomcat
Heap Size
JVM
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

Answer Wiki

Thanks. We'll let you know when a new response is added.

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

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • hemanthreddy
    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 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following