Re: Difference between process kill and shutdown
kill -15 On Sun, Mar 2, 2014 at 4:42 AM, Mark Thomas ma...@apache.org wrote: On 01/03/2014 12:11, Akash Jain wrote: On our linux boxes, we have multiple users who run tomcat. Currently we are using process kill commands to kill the respective user's tomcat , instead of using shutdown.sh Which signal are you sending to shutdown the process? Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Difference between process kill and shutdown
On 09/03/2014 20:41, Akash Jain wrote: kill -15 On Sun, Mar 2, 2014 at 4:42 AM, Mark Thomas ma...@apache.org wrote: On 01/03/2014 12:11, Akash Jain wrote: On our linux boxes, we have multiple users who run tomcat. Currently we are using process kill commands to kill the respective user's tomcat , instead of using shutdown.sh Which signal are you sending to shutdown the process? In which case you should be fine. Using kill -15 has the same result as using the shutdown script. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Difference between process kill and shutdown
On 01/03/2014 12:11, Akash Jain wrote: On our linux boxes, we have multiple users who run tomcat. Currently we are using process kill commands to kill the respective user's tomcat , instead of using shutdown.sh Which signal are you sending to shutdown the process? Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Difference between process kill and shutdown
2014-03-01 16:11 GMT+04:00 Akash Jain akash.delh...@gmail.com: On our linux boxes, we have multiple users who run tomcat. Currently we are using process kill commands to kill the respective user's tomcat , instead of using shutdown.sh Are there any downsides of using this approach ? It depends on what process you are killing. If you are killing jsvc (Apache Commons Daemon), then it is OK, as it should call Tomcat' Server.stop() properly. If you are killing a java process, then Tomcat shutdowns thanks to a shutdown hook that it installs in the JVM. The downside to this approach is that all shutdown hooks are started at the same time and run in parallel. E.g. if you have some 3rd party library that installed a shutdown hook (e.g. an embedded database or a logging library), it may shut down earlier than request processing in Tomcat shuts down. It is also possible to kill java process immediately in such way that no shutdown hooks are run. In this case, of course, all bets are off. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Difference between process kill and shutdown
On our linux boxes, we have multiple users who run tomcat. Currently we are using process kill commands to kill the respective user's tomcat , instead of using shutdown.sh Are there any downsides of using this approach ? Thanks, Akash
RE: Difference between process kill and shutdown
Date: Sat, 1 Mar 2014 04:11:57 -0800 Subject: Difference between process kill and shutdown From: akash.delh...@gmail.com To: users@tomcat.apache.org On our linux boxes, we have multiple users who run tomcat. Currently we are using process kill commands to kill the respective user's tomcat , instead of using shutdown.sh MGBad Practice Are there any downsides of using this approach ? MGThere are horrible downsides MGA Kill will take the running process out of the execution environment..no matter what the side effect is MGHooks to any of the configured Server Listeners CATALINA has started can be ignored and usually are MGThe result of a kill on parent process is MG you will still have one or more Listeners running as child daemons since they were never shutdown properly MGWhoever told you to use the kill command instead of shutdown should be court-martialed! Thanks, Akash