4

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 ?

Novice User
  • 161
  • 1
  • 6

2 Answers2

8

It depends on what kill signal you are using:

That said, tomcat has its own mechanism to shutdown properly, namely an RMI call which you should be using, either directly or by using your operating system's interface: service, start, systemctl or any other.

If you can't do that for whatever reason, you could use some help from a wrapper like tanukiwrapper or supervisord, which also has a web frontend.

dawud
  • 14,918
  • 3
  • 41
  • 61
4

There is no difference in behaviour if you use Tomcat's shutdown script or use kill -15. The end result is exactly the same - a clean shutdown. The only difference is a slight difference in the code path that starts the shutdown process.

Mark Thomas
  • 867
  • 5
  • 8