tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arseny <setev...@gmail.com>
Subject Re: Unable to shutdown tomcat
Date Sun, 16 Feb 2014 12:50:06 GMT
Hi.

Use `kill 34933` - this will stop all Tomcat's treads correctly (exactly 
- this will send `kill -TERM 34933 instead of `kill -KILL 34933` which 
is `kill -9` and really kill process imediatelly).

Unfortunatelly I'm not Java coder so I can't give you advice - why 
exactly Tomcat doesn't stop via shutdown.sh. I just know that some 
classes doesn't want to die (unload from memory) correcly. But - you can 
use kill PID without anxiety.

16.02.2014 9:51, Tim Leung пишет:
> I am running Tomcat 7.0.50 btw.
>
>
> On Sat, Feb 15, 2014 at 11:47 PM, Tim Leung <timleung1422@gmail.com> wrote:
>
>> I am unable to shutdown tomcat. When I do ./shutdown.sh, I don't see any
>> error, but the process still seems to be running. I don't want to do a kill
>> -9. How do I gracefully shut it down? Why is this happening in the first
>> place? Please help asap.
>>
>>
>> devServer:bin dev$ ps -ef|grep tomcat
>>    501 34933     1   0 11:24PM test    0:02.02
>> /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java
>> -Djava.util.logging.config.file=/Users/dev/admin/runtime/conf/logging.properties
>> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
>> -Djava.endorsed.dirs=/Users/dev/admin/runtime/endorsed -classpath
>> /Users/dev/admin/runtime/bin/bootstrap.jar:/Users/dev/admin/runtime/bin/tomcat-juli.jar
>> -Dcatalina.base=/Users/dev/admin/runtime
>> -Dcatalina.home=/Users/dev/admin/runtime
>> -Djava.io.tmpdir=/Users/dev/admin/runtime/temp
>> org.apache.catalina.startup.Bootstrap start
>>    501 34982 33786   0 11:45PM test    0:00.00 grep tomcat
>> devServer:bin dev$ ./shutdown.sh
>> Using CATALINA_BASE:   /Users/dev/admin/runtime
>> Using CATALINA_HOME:   /Users/dev/admin/runtime
>> Using CATALINA_TMPDIR: /Users/dev/admin/runtime/temp
>> Using JRE_HOME:
>>   /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
>> Using CLASSPATH:
>> /Users/dev/admin/runtime/bin/bootstrap.jar:/Users/dev/admin/runtime/bin/tomcat-juli.jar
>> devServer:bin dev$ ps -ef|grep tomcat
>>    501 34933     1   0 11:24PM test    0:02.03
>> /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java
>> -Djava.util.logging.config.file=/Users/dev/admin/runtime/conf/logging.properties
>> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
>> -Djava.endorsed.dirs=/Users/dev/admin/runtime/endorsed -classpath
>> /Users/dev/admin/runtime/bin/bootstrap.jar:/Users/dev/admin/runtime/bin/tomcat-juli.jar
>> -Dcatalina.base=/Users/dev/admin/runtime
>> -Dcatalina.home=/Users/dev/admin/runtime
>> -Djava.io.tmpdir=/Users/dev/admin/runtime/temp
>> org.apache.catalina.startup.Bootstrap start
>>    501 34992 33786   0 11:45PM test    0:00.00 grep tomcat
>> devServer:bin dev$
>>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message