We have trouble with Tomcat 5.5 which stops at night on our production servers (Linux CentOS 4.8) and we have no idea why it stops... There is no Tomcat's log in catalina.out or any application's log.
We tried different things to find why the server stops:
System.exit()
method with javassist to find if the method was calledRuntime.getRuntime().addShutdownHook()
)None of them worked, we have no core dump, the Exit method and the shutdown hook are not called. My conclusions are:
Any idea or log to read to find why Tomcat stops?
By default, the Tomcat HTTP Access Logs are stored in the dotserver/tomcat-X.x/logs/ folder within the dotCMS distribution, and the files are named dotcms_access. YYYY-MM-DD. log, where the YYYY-MM-DD in the file name is replaced by the date of the log file.
Tomcat stack is widely used application server crafted to use Java-based web application. Apache Tomcat is Java Servlet Container and web server designed for production application which is simple, easy-to-use and drives greater results. A most popular open-source framework is also ranked for its world-wide usage.
1) Make sure you know where stderr is redirected and check if anything got printed there.
2) Check the memory limits on Tomcat and how much free memory does the system have. Review the Linux system logs under /var/log to see if anything suspicious happened during the time. For example, kernel can randomly kill a process (almost) without a trace if the system is running low on memory.
We've ran 5.5 in production for years and never had any unexplained shutdowns, FWIW.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With