So I've set up some shell scripts to auto-deploy a fresh
war file to a tomcat server. I call the shellscript to stop tomcat (
shutdown.sh), and then I kill the
catalina PID, however I've noticed that this takes about a minute to kill the process and the process is still running when my start up script is called. In my start up script I have a condition that will only start tomcat when tomcat isn't running. Since the old process is still active, tomcat won't be restarted if I keep this logic in there. I could always remove that condition, but I'm not sure what would happen with two tomcats running at once, even if its just for a few seconds.
My question is would
kill -9 make the process terminate faster? Right now I'm just using
kill without any signals. I've read that it basically tells the process to terminate immediately, is there anything I'd have to worry about if I terminate tomcat immediately? (maybe heap space not being properly released or something)
Thanks a ton!