• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Could not reserve enough space for object heap while stopping and starting tomcat

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Experts,

i am using the tomcat 6.0.20.
when i am trying to stop the service by shutdown.sh, it is throwing error as -

sabad19151$ ./shutdown.sh
-d64 -server -Xms5000m -Xmx5000m -XX:PermSize=1024m -XX:MaxPermSize=1024m
:/export/home/tomcat/apache-tomcat-6.0.20/lib:/export/home/tomcat/apache-tomcat-6.0.20/:/export/home/tomcat/apr/lib:/export/home/tomcat/openssl/lib:
Using CATALINA_BASE: /export/home/tomcat/apache-tomcat-6.0.20
Using CATALINA_HOME: /export/home/tomcat/apache-tomcat-6.0.20
Using CATALINA_TMPDIR: /export/home/tomcat/apache-tomcat-6.0.20/temp
Using JRE_HOME: /usr/jdk1.6.0_16
Error occurred during initialization of VM
Could not reserve enough space for object heap
-d64 -server -Xms5000m -Xmx5000m -XX:PermSize=1024m -XX:MaxPermSize=1024m -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager


then i have chnaged the parameter in catalina.sh as
-Xms7000m -Xmx7000m -XX:PermSize=2048m -XX:MaxPermSize=2048m

but again i am getting the same error.
-d64 -server -Xms7000m -Xmx7000m -XX:PermSize=2048m -XX:MaxPermSize=2048m
:/export/home/tomcat/apache-tomcat-6.0.20/lib:/export/home/tomcat/apache-tomcat-6.0.20/:/export/home/tomcat/apr/lib:/export/home/tomcat/openssl/lib:
Using CATALINA_BASE: /export/home/tomcat/apache-tomcat-6.0.20
Using CATALINA_HOME: /export/home/tomcat/apache-tomcat-6.0.20
Using CATALINA_TMPDIR: /export/home/tomcat/apache-tomcat-6.0.20/temp
Using JRE_HOME: /usr/jdk1.6.0_16
Error occurred during initialization of VM
Could not reserve enough space for object heap
-d64 -server -Xms7000m -Xmx7000m -XX:PermSize=2048m -XX:MaxPermSize=2048m -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager


i also checked the JVM memory in tomcat manager -
Free memory: 5415.46 MB Total memory: 6712.00 MB Max memory: 6712.00 MB

kindly guide me how to fix this error.

server OS - SunOS sabad19151 5.10 Generic_148888-01 sun4v sparc sun4v

Thanks,
Tom
 
Tom Cook
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Experts,

Just to add on this issue, i have this setting in catalina.sh -

#CATALINA_OPTS="-server -Xms7000m -Xmx7000m"
JAVA_OPTS="$JAVA_OPTS -d64 -server -Xms7000m -Xmx7000m -XX:PermSize=2048m -XX:MaxPermSize=2048m"

so i am not able to stop the tomcat, but we i am changing it to

CATALINA_OPTS="-server -Xms7000m -Xmx7000m"
#JAVA_OPTS="$JAVA_OPTS -d64 -server -Xms7000m -Xmx7000m -XX:PermSize=2048m -XX:MaxPermSize=2048m"

i am able to stop the tomcat but i am not able to start it with the 2nd setting.
for start setting 1 is working, for stop setting 2 is working.

i checked the difference between CATALINA_OPTS and JAVA_OPTS, but not able to connect to my issue.
please help me understand this and how to fix the issue.

Thanks,
Tom
 
Tom Cook
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Experts,

please help for this issue.

Thanks,
Tom
 
reply
    Bookmark Topic Watch Topic
  • New Topic