You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2014/06/09 14:06:24 UTC

[Bug 56607] New: shutdown.bat exits before shutdown

https://issues.apache.org/bugzilla/show_bug.cgi?id=56607

            Bug ID: 56607
           Summary: shutdown.bat exits before shutdown
           Product: Tomcat 6
           Version: 6.0.41
          Hardware: PC
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Native:Integration
          Assignee: dev@tomcat.apache.org
          Reporter: Elias.Wulcan@apptus.com

Created attachment 31699
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=31699&action=edit
output of step 4

Tomcat is not completely shut down yet when shutdown.bat exits.

This makes it difficult for our system to quickly stop and uninstall a
temporary Tomcat.

Steps to Reproduce:
1. Unzip apache-tomcat-6.0.41-windows-x86
2. startup.bat
3. Find Tomcat PID with JPS.
4. shutdown.bat & jstack <PID> & jstack <PID> & jstack <PID>

The actual results are attached as console output of step 4.

The expected result is a single "no such process" output from the first run of
Jstack after shutdown.bat exits.

I reproduce this with JDK 1.7.0_60

-- 
You are receiving this mail because:
You are the assignee for the bug.

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


[Bug 56607] shutdown.bat exits before shutdown

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56607

Christopher Schultz <ch...@christopherschultz.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All
           Severity|minor                       |enhancement

--- Comment #1 from Christopher Schultz <ch...@christopherschultz.net> ---
"shutdown.bat|catalina.bat stop" does not actually stop Tomcat, but instead
sends a signal to the running JVM process to shut down gracefully.

Note that catalina.sh does allow for a "stop N" where N is the maximum number
of seconds you'd like the script to wait for the Tomcat process to actually
stop. That has not been implemented in the DOS .bat version due to lack of
interest.

Sleeping in the DOS world is possible through a variety of means, but there is
no "sleep" command for that purpose so the *NIX fix won't work on
DOS/win32/etc. without modification. It's also awkward to check for a process's
status, but honestly its a bit awkward on *NIX, too.

Short-term fix is to use Cygwin and a UNIX-like shell. I'm making this an
enhancement request rather than a bug because the behavior described is
expected.

I'll see if I can make up a patch for catalina.bat that can replicate the
catalina.sh feature of "stop N". Would you be willing to test a candidate patch
for me?

-- 
You are receiving this mail because:
You are the assignee for the bug.

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


[Bug 56607] shutdown.bat exits before shutdown

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56607

--- Comment #2 from Elias.Wulcan@apptus.com ---
I would be happy to test a patch for you but I do not want you to toil with DOS
scripts if there is a better solution.

All I need is an official interface for doing this, not necessarily a DOS
script and not one depending on a Cygwin installation.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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