Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tomcat stopped without any log or any stack

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:

  • configure Tomcat to be able to generate a core dump
  • instrument System.exit() method with javassist to find if the method was called
  • add a shutdown hook to the JVM (with Runtime.getRuntime().addShutdownHook())

None of them worked, we have no core dump, the Exit method and the shutdown hook are not called. My conclusions are:

  • The VM is not terminated properly but crash without any log.

Any idea or log to read to find why Tomcat stops?

like image 386
Remi Avatar asked Apr 24 '12 15:04

Remi


People also ask

Where are my Tomcat logs?

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.

What is Tomcat stack?

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 Answers

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.

like image 112
MK. Avatar answered Nov 10 '22 16:11

MK.