You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jim Coble <Ji...@duke.edu> on 2002/08/30 16:18:19 UTC

Tomcat shutdown does not kill java process

----- Forwarded by Jim Coble/Libraries/Provost/Academic/Univ/Duke on
08/30/2002 10:18 AM -----
                                                                                                                                       
                      Jim Coble                                                                                                        
                                               To:       tomcat-user@apache.org                                                        
                      08/30/2002 08:17         cc:                                                                                     
                      AM                       Subject:  Tomcat shutdown does not kill java process                                    
                                                                                                                                       
                                                                                                                                       



I'm running Tomcat 4.0.3 stand-alone on a Solaris 8 server.  When I execute
bin/shutdown.sh, the java process that has been running Tomcat does not
terminate.  I can restart Tomcat fine (via bin/startup.sh) but, if I then
do a ps -ef, I see both the old and new java processes there.  I have to
kill the old java process to get rid of it.  I do all shutdown.sh and
startup.sh commands as root.

Before I discovered that this was happening, I ended up with multiple
(Tomcat) java processes spanning several days.  I don't think the
now-unused java processes are consuming CPU time (at least not much) but I
worry that they are consuming memory.  (ps -leaf still shows them as having
memory allocated, if I'm understanding what I'm seeing properly.)

Any ideas why the java process doesn't terminate when I shutdown Tomcat?

Thanks in advance.

--Jim

==================================
Jim Coble
Senior Technology Specialist
Center for Instructional Technology
Email: jim.coble@duke.edu
Voice: 919-660-5974  Fax: 919-660-5923
Box 90198, Duke University
Durham, NC 27708-0198
==================================




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Tomcat shutdown does not kill java process

Posted by Michael Nicholson <ma...@email.unc.edu>.
How quickly are you restarting Tomcat?  I've noticed the same behaviour if I
rush and restart tomcat too quickly.  Just waiting for solved the issue for
me.

Mike
----- Original Message -----
From: "Jim Coble" <Ji...@duke.edu>
To: <to...@jakarta.apache.org>
Sent: Friday, August 30, 2002 10:18 AM
Subject: Tomcat shutdown does not kill java process


>
> ----- Forwarded by Jim Coble/Libraries/Provost/Academic/Univ/Duke on
> 08/30/2002 10:18 AM -----
>
>                       Jim Coble
>                                                To:
tomcat-user@apache.org
>                       08/30/2002 08:17         cc:
>                       AM                       Subject:  Tomcat shutdown
does not kill java process
>
>
>
>
>
> I'm running Tomcat 4.0.3 stand-alone on a Solaris 8 server.  When I
execute
> bin/shutdown.sh, the java process that has been running Tomcat does not
> terminate.  I can restart Tomcat fine (via bin/startup.sh) but, if I then
> do a ps -ef, I see both the old and new java processes there.  I have to
> kill the old java process to get rid of it.  I do all shutdown.sh and
> startup.sh commands as root.
>
> Before I discovered that this was happening, I ended up with multiple
> (Tomcat) java processes spanning several days.  I don't think the
> now-unused java processes are consuming CPU time (at least not much) but I
> worry that they are consuming memory.  (ps -leaf still shows them as
having
> memory allocated, if I'm understanding what I'm seeing properly.)
>
> Any ideas why the java process doesn't terminate when I shutdown Tomcat?
>
> Thanks in advance.
>
> --Jim
>
> ==================================
> Jim Coble
> Senior Technology Specialist
> Center for Instructional Technology
> Email: jim.coble@duke.edu
> Voice: 919-660-5974  Fax: 919-660-5923
> Box 90198, Duke University
> Durham, NC 27708-0198
> ==================================
>
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Tomcat shutdown does not kill java process

Posted by Srinadh Karumuri <sk...@bbn.com>.
I saw similar problem when my DB process is locked due to lock on 
resources. This is not a fancy way but we gave work around to make sure we 
don't end up with two servers. This can be done easily by checking for 
'java....<options>' process running for this user in the start/stop scripts 
(and show error message).
-Sri

At 10:35 AM 8/30/2002, Tim Funk wrote:
>Make sure you do not have any servlets or beans creating non-daemon 
>threads. A java process will run while there exists at least 1 non-daemon 
>thread.
>
>Perform a thread dump on your java process and see if this is the case. 
>See previous threads (or google) on how to perform a thread dump.
>
>Jim Coble wrote:
>>----- Forwarded by Jim Coble/Libraries/Provost/Academic/Univ/Duke on
>>08/30/2002 10:18 AM -----
>> 
>>
>>                       Jim 
>> Coble 
>>
>>                                                To: 
>> tomcat-user@apache.org
>>                       08/30/2002 
>> 08:17         cc: 
>>
>>                       AM                       Subject:  Tomcat shutdown 
>> does not kill java process
>> 
>>
>> 
>>
>>
>>I'm running Tomcat 4.0.3 stand-alone on a Solaris 8 server.  When I execute
>>bin/shutdown.sh, the java process that has been running Tomcat does not
>>terminate.  I can restart Tomcat fine (via bin/startup.sh) but, if I then
>>do a ps -ef, I see both the old and new java processes there.  I have to
>>kill the old java process to get rid of it.  I do all shutdown.sh and
>>startup.sh commands as root.
>>Before I discovered that this was happening, I ended up with multiple
>>(Tomcat) java processes spanning several days.  I don't think the
>>now-unused java processes are consuming CPU time (at least not much) but I
>>worry that they are consuming memory.  (ps -leaf still shows them as having
>>memory allocated, if I'm understanding what I'm seeing properly.)
>>Any ideas why the java process doesn't terminate when I shutdown Tomcat?
>>Thanks in advance.
>>--Jim
>>==================================
>>Jim Coble
>>Senior Technology Specialist
>>Center for Instructional Technology
>>Email: jim.coble@duke.edu
>>Voice: 919-660-5974  Fax: 919-660-5923
>>Box 90198, Duke University
>>Durham, NC 27708-0198
>>==================================
>>
>>
>>--
>>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>>For additional commands, e-mail: <ma...@jakarta.apache.org>
>>
>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Tomcat shutdown does not kill java process

Posted by Tim Funk <fu...@joedog.org>.
Make sure you do not have any servlets or beans creating non-daemon 
threads. A java process will run while there exists at least 1 
non-daemon thread.

Perform a thread dump on your java process and see if this is the case. 
See previous threads (or google) on how to perform a thread dump.

Jim Coble wrote:
> ----- Forwarded by Jim Coble/Libraries/Provost/Academic/Univ/Duke on
> 08/30/2002 10:18 AM -----
>                                                                                                                                        
>                       Jim Coble                                                                                                        
>                                                To:       tomcat-user@apache.org                                                        
>                       08/30/2002 08:17         cc:                                                                                     
>                       AM                       Subject:  Tomcat shutdown does not kill java process                                    
>                                                                                                                                        
>                                                                                                                                        
> 
> 
> 
> I'm running Tomcat 4.0.3 stand-alone on a Solaris 8 server.  When I execute
> bin/shutdown.sh, the java process that has been running Tomcat does not
> terminate.  I can restart Tomcat fine (via bin/startup.sh) but, if I then
> do a ps -ef, I see both the old and new java processes there.  I have to
> kill the old java process to get rid of it.  I do all shutdown.sh and
> startup.sh commands as root.
> 
> Before I discovered that this was happening, I ended up with multiple
> (Tomcat) java processes spanning several days.  I don't think the
> now-unused java processes are consuming CPU time (at least not much) but I
> worry that they are consuming memory.  (ps -leaf still shows them as having
> memory allocated, if I'm understanding what I'm seeing properly.)
> 
> Any ideas why the java process doesn't terminate when I shutdown Tomcat?
> 
> Thanks in advance.
> 
> --Jim
> 
> ==================================
> Jim Coble
> Senior Technology Specialist
> Center for Instructional Technology
> Email: jim.coble@duke.edu
> Voice: 919-660-5974  Fax: 919-660-5923
> Box 90198, Duke University
> Durham, NC 27708-0198
> ==================================
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 
> 
> 


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


AW: Tomcat shutdown does not kill java process

Posted by "Power-Netz (Schwarz)" <sc...@power-netz.de>.

> -----Ursprungliche Nachricht-----
> Von: Jim Coble [mailto:Jim.Coble@duke.edu]
> Gesendet: Freitag, 30. August 2002 16:18
> An: tomcat-user@jakarta.apache.org
> Betreff: Tomcat shutdown does not kill java process
> 
> 

> I'm running Tomcat 4.0.3 stand-alone on a Solaris 8 server.  When 
> I execute
> bin/shutdown.sh, the java process that has been running Tomcat does not
> terminate.  I can restart Tomcat fine (via bin/startup.sh) but, if I then
> do a ps -ef, I see both the old and new java processes there.  I have to
> kill the old java process to get rid of it.  I do all shutdown.sh and
> startup.sh commands as root.


tomcat.sh stop -force 

will(should) kill all java processes while shutdown.



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>