Howdy,

>However, I have come to realise that on occaison, the 'stop' command
>does not work, and when I restart, I thereafter create two copies of
the
>original tomcat. this should not be possible because the first tomcat
>should be using the same port, and thus blocking the restart, but
>somehow, the restart does happen??
>
>When I stop the second process, then tomcat officially stops working,
>even though the original process is still runnning.
>
>Has this happened to anyone else?

You likely have non-daemon threads that prevent the JVM from existing.
Tomcat shuts its own threads down, including the listeners, so the ports
are available for other processes, and you can start another tomcat.
But the first JVM instance can't exit.

You are responsible for shutting down threads started by your
application or 3rd party libraries it uses.  Alternatively, make all
your threads daemons, or add shutdown code in a context listener or a
JVM shutdown hook.

Yoav Shapira




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to