Stopping Tomcat server while it's starting

I hit ShiftF10 and Tomcat server is starting but then I want to stop it (CtrlF2) right away before the start process has completed.
In this case the "java" process of Tomcat is left running in the memory (after pressing "Disconnect" in "Process 'XYZ' is running" dialog and IDEA displaying "Waiting for VM detach" - which, btw not always ends and is left stuck sometimes)

Same problem was with running Ant build files - stopping it rigth after start was causing a similar behavior.

2 comments
Comment actions Permalink

It's known problem (http://www.jetbrains.net/jira/browse/IDEADEV-25707).

I hit ShiftF10 and Tomcat server is starting but then I want to stop it (CtrlF2) right away before the start process has completed.
In this case the "java" process of Tomcat is left running in the memory (after pressing "Disconnect" in "Process 'XYZ' is running" dialog and IDEA displaying "Waiting for VM detach" - which, btw not always ends and is left stuck sometimes)

Same problem was with running Ant build files - stopping it rigth after start was causing a similar behavior.



--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

Tomcat server is stopped by sending a stop command to a dedicated port.
If you try to send this stop command before Tomcat has started listening
on this port, then you're out of luck. The only thing which IDEA could
try to do is to block the stop button until this dedicated port is open.

Evgeny Goldin wrote:

I hit ShiftF10 and Tomcat server is starting but then I want to stop it (CtrlF2) right away before the start process has completed.
In this case the "java" process of Tomcat is left running in the memory (after pressing "Disconnect" in "Process 'XYZ' is running" dialog and IDEA displaying "Waiting for VM detach" - which, btw not always ends and is left stuck sometimes)

Same problem was with running Ant build files - stopping it rigth after start was causing a similar behavior.

0

Please sign in to leave a comment.