aspose file tools*
The moose likes Tomcat and the fly likes Unexpected error when shutting down tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Unexpected error when shutting down tomcat" Watch "Unexpected error when shutting down tomcat" New topic
Author

Unexpected error when shutting down tomcat

joe black
Ranch Hand

Joined: Dec 03, 2003
Posts: 103
When I run shutdown.sh I get the following error below:

[bin]# ./shutdown.sh
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr/local/java
Error occurred during initialization of VM
Could not reserve enough space for object heap
#
# An unexpected error has been detected by Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0xb7ed041a, pid=17825, tid=3085151120
#
# Java VM: Java HotSpot(TM) Server VM (10.0-b22 mixed mode linux-x86)
# Problematic frame:
# C [libc.so.6+0x6b41a] cfree+0x7a
#
# An error report file with more information is saved as:
# /usr/local/apache-tomcat-6.0.16/bin/hs_err_pid17825.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#

Below is my system info:


--------------- S Y S T E M ---------------

OS:Fedora release 7 (Moonshine)

uname:Linux 2.6.9-023stab044.4-smp #1 SMP Thu May 24 17:20:37 MSD 2007 i686
libc:glibc 2.6 NPTL 2.6
rlimit: STACK 10240k, CORE 0k, NPROC 71680, NOFILE 1024, AS infinity
load average:0.01 0.02 0.00

CPU:total 4 (2 cores per cpu, 1 threads per core) family 6 model 15 stepping 11, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3

Memory: 4k page, physical 8140592k(110360k free), swap 12578884k(9455180k free)

vm_info: Java HotSpot(TM) Server VM (10.0-b22) for linux-x86 JRE (1.6.0_06-b02), built on Mar 25 2008 00:26:44 by "java_re" with gcc 3.2.1-7a (J2SE release)

time: Sat May 10 12:00:37 2008
elapsed time: 0 seconds
[ May 11, 2008: Message edited by: joe black ]
joe black
Ranch Hand

Joined: Dec 03, 2003
Posts: 103
I got rid of it by adding the following to shutdown.sh:

export JAVA_OPTS="-server -Xms4m -Xmx4m"

Why would I need to set the min/max heap size when shutting down tomcat?
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

It may be that the JVM was close to capacity and hit the ceiling in the process of shutting down.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
jQuery in Action, 2nd edition
 
subject: Unexpected error when shutting down tomcat