vivo Internet Technology
Jan 15, 2020 · Backend Development
Understanding Tomcat Startup and Shutdown Mechanisms
Tomcat starts by Bootstrap.main reading server.xml, initializing components, then blocking in Server.await based on the shutdown port, while shutdown can be performed via the shutdown.sh script (sending a SHUTDOWN command), kill signals (preferably SIGTERM for graceful hooks), or custom JVM shutdown hooks, with the script posing security risks and often being replaced by kill‑15 combined with proper hooks in production.
Backend DevelopmentJavaLinux
0 likes · 10 min read