[Solved] While tomcat shutting down getting error


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting [Solved] While tomcat shutting down getting error
# 1  
Old 01-17-2012
[Solved] While tomcat shutting down getting error

While tomcat shutting down getting the below error.
Code:
Error occurred during initialization of VM
Could not reserve enough space for code cache

CATALINA_OPTS="-verbose:gc -Xloggc:gc.log -XX:+PrintGCDetails  -XX:MaxPermSize=24M -Xms256M -Xmx512M -Djava.awt.headless=true -XX:-UseCompressedOops -XX:+UseParallelOldGC -XX:+UseParallelGC


free -m
             total       used       free     shared    buffers     cached
Mem:           784        778          5          0          0          0
-/+ buffers/cache:        778          5
Swap:            0          0          0

Moderator's Comments:
Mod Comment Please use [CODE][/CODE] tags where appropriate, thank you

Last edited by vbe; 01-17-2012 at 04:09 AM..
# 2  
Old 01-17-2012
The Tomcat heap is larger than the available memory, isolate the instance so as to terminate all connections and "allow to cool" (by which I mean give time for all transactions complete) then a hard kill -9 will bring it down.
# 3  
Old 01-17-2012
Thanks for the reply,

I tried my decreasing the JVM initial and maximum heap size and start the server.

Now the free space is:

Code:
free -m
             total       used       free     shared    buffers     cached
Mem:           784        482        301          0          0          0
-/+ buffers/cache:        482        301
Swap:            0          0          0

When we trying to stop the tomcat then below error displaying and the process is not stopping.
Code:
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

I tried to shutdown by using service file & shutdown.sh

Hope killing process is not the real solution.

---------- Post updated at 07:04 AM ---------- Previous update was at 04:26 AM ----------

Thanks for reply,


I got the solution by decreasing the JVM initial size & JVM Maximum size.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Tomcat..Unable to deploy application remotely in tomcat

Hi, We have upgrade tomcat from 5.0.20 to 7.0.33 and made changes to server.xml file according to newer version.. how ever the upgrade went fine and now i am unable to deploy application remotely.. it is giving 403 access denied error.. we have seperate appbase directory mentioned in server.xml..... (0 Replies)
Discussion started by: phani4u
0 Replies

2. Web Development

Tomcat - Error Logs

Hi Gurus, Our tomcat server was found hanging and responding to requests although ports 8080 & 8009(AJP) were found in listening state. The catalina.out had the below output: We have JavaMelody(Monitoring tool) packaged along with our application and it seems that monitoring through... (3 Replies)
Discussion started by: Hari_Ganesh
3 Replies

3. AIX

Getting error while shutting down

Hi, I am getting the error "/etc/rc.shutdown failed. Shutdown aborting" while shutting down the os. Please suggest. (1 Reply)
Discussion started by: manoj.solaris
1 Replies

4. Web Development

Tomcat shutdown error

not sure if this is the right forum but im having problem with tomcat restart. i have a regular user that when he login it will go directly to a menu options (a. stop tomcat, start tomcat,). if he selects start it would should show that tomcat has been restarted. if the user press X, he will... (2 Replies)
Discussion started by: lhareigh890
2 Replies

5. Solaris

Tomcat Error-HTTP Status code 500

when I typed path http://localhost:8080/MyFirst/HelloWorld in web-browser ,it came up with error HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception ... (0 Replies)
Discussion started by: srinivas2828
0 Replies

6. UNIX and Linux Applications

Custom error page when tomcat authentication fails

Hi people, i have this problem trying to get a custom error page when client authentication fails: I had configured successfully my tomcat with client authentication using certificates, and now I would like to redirect the user to a custom error page when authentication fails, but I always get a... (0 Replies)
Discussion started by: sebagra
0 Replies

7. UNIX for Advanced & Expert Users

Error Tomcat + Apache

Hi, I have a machine with Unixware 7.1.3 and Apache 2 and Tomcat 4.0.3 it's works, but in the archive log from mod_jk.log ajp13_process_callback - write failed : Error ajp13_process_callback - write failed : Error ajp13_process_callback - write failed : Error... (1 Reply)
Discussion started by: By_Jam
1 Replies

8. UNIX for Dummies Questions & Answers

Shutting down the Server

Hi Is there anyway i can find out from which terminal a shutdown command has been run from ? :( (3 Replies)
Discussion started by: ktech
3 Replies

9. UNIX for Advanced & Expert Users

Shutting down Solaris

Hi I have a mix of solaris 8,9 & 10. I need to have our 6 Solaris servers shutdown buy a script that will be executed by APC network Shutdown software Im really not sure how I would write a script to shut them down and the following processes? the processes are portmapper seq seq_api... (1 Reply)
Discussion started by: tonysequoia
1 Replies

10. UNIX for Dummies Questions & Answers

error shutting down open bsd

The method I use to shut down my box is as follows : shutdown +3 -h logout the box indicates shutdown complete, so I switch off the power. When I reboot next time I get a Warning message in the bootup screen stating the that it was not shutdown correctly. being a newbie I'm kind of... (1 Reply)
Discussion started by: ferret
1 Replies
Login or Register to Ask a Question