title: Tomcat shutting down by itself
body: <p>I'm running Tomcat 7.0.53 on CentOS 6.5 64 bit and OpenJDK 1.7 64. </p>
  
  <p>I have several servers where occasionally - like randomly once per week - Tomcat will just gracefully shut itself down. I've been looking at this for months and cannot find the reason. The only pattern seems to be a long period of nothing going on then the shutdown.</p>
  
  <ul>
  <li>I have upgraded to latest versions of the underlying tools (Tomcat, Java, etc)</li>
  <li>I am running with the default memory settings</li>
  <li>I have disabled the SHUTDOWN in the server.xml</li>
  <li>I have moved MySQL to another box to ensure Tomcat is the only substantial application (server also runs nginx)</li>
  <li>I have verified that I have no System.exit() in any of my code. I have not scanned the libs as I can't figure out how to do that. And I don't expect I will find anything there either. Why would a library exit anyway?</li>
  <li>I have enabled logging of garbage collection. But they seem pretty quick - like full GC in 0.15s</li>
  </ul>
  
  <p>Here is the memory usage of one of the servers. Lots of RAM free.</p>
  
  <pre><code>                 total       used       free     shared    buffers     cached
      Mem:          2006        771       1234          0        176        281
      -/+ buffers/cache:        313       1692
      Swap:         2047          0       2047
  </code></pre>
  
  <p>Below is one of the events in the Catalina.out. You can see it starts then does nothing exciting for several hours. Then gracefully shuts itself down as if it was told to.</p>
  
  <p>I've researched this to death and have not bee able to get a handle on this. </p>
  
  <p>Can someone please propose a plan of action for me?</p>
  
  <p>Thanks</p>
  
  <p>From the Server.xml:</p>
  
  <pre><code>    &lt;Server port="-1" shutdown="__SHUTDOWN__"&gt;
  </code></pre>
  
  <p>From Catalina.out:</p>
  
  <pre><code>Apr 28, 2014 5:34:50 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
  WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Valve} Setting property 'remoteIpProxiesHeader' to 'x-forwarded-by' did not find a matching property.
  Apr 28, 2014 5:34:50 PM org.apache.coyote.AbstractProtocol init
  INFO: Initializing ProtocolHandler ["http-apr-8080"]
  Apr 28, 2014 5:34:50 PM org.apache.coyote.AbstractProtocol init
  INFO: Initializing ProtocolHandler ["ajp-apr-8009"]
  Apr 28, 2014 5:34:50 PM org.apache.catalina.startup.Catalina load
  INFO: Initialization processed in 3247 ms
  Apr 28, 2014 5:34:50 PM org.apache.catalina.core.StandardService startInternal
  INFO: Starting service Catalina
  Apr 28, 2014 5:34:50 PM org.apache.catalina.core.StandardEngine startInternal
  INFO: Starting Servlet Engine: Apache Tomcat/7.0.53
  Apr 28, 2014 5:34:59 PM org.apache.coyote.AbstractProtocol start
  INFO: Starting ProtocolHandler ["http-apr-8080"]
  Apr 28, 2014 5:34:59 PM org.apache.coyote.AbstractProtocol start
  INFO: Starting ProtocolHandler ["ajp-apr-8009"]
  Apr 28, 2014 5:34:59 PM org.apache.catalina.startup.Catalina start
  INFO: Server startup in 8278 ms
  Apr 28, 2014 5:41:53 PM org.apache.jasper.compiler.TldLocationsCache tldScanJar
  INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
  Apr 28, 2014 10:32:32 PM org.apache.coyote.AbstractProtocol pause
  INFO: Pausing ProtocolHandler ["http-apr-8080"]
  Apr 28, 2014 10:32:32 PM org.apache.coyote.AbstractProtocol pause
  INFO: Pausing ProtocolHandler ["ajp-apr-8009"]
  Apr 28, 2014 10:32:32 PM org.apache.catalina.core.StandardService stopInternal
  INFO: Stopping service Catalina
  Apr 28, 2014 10:32:32 PM org.apache.coyote.AbstractProtocol stop
  INFO: Stopping ProtocolHandler ["http-apr-8080"]
  Apr 28, 2014 10:32:32 PM org.apache.coyote.AbstractProtocol stop
  INFO: Stopping ProtocolHandler ["ajp-apr-8009"]
  Apr 28, 2014 10:32:32 PM org.apache.coyote.AbstractProtocol destroy
  INFO: Destroying ProtocolHandler ["http-apr-8080"]
  Apr 28, 2014 10:32:32 PM org.apache.coyote.AbstractProtocol destroy
  INFO: Destroying ProtocolHandler ["ajp-apr-8009"]
  May 05, 2014 8:10:32 PM org.apache.catalina.core.AprLifecycleListener init
  INFO: Loaded APR based Apache Tomcat Native library 1.1.29 using APR version 1.3.9.
  May 05, 2014 8:10:32 PM org.apache.catalina.core.AprLifecycleListener init
  INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
  May 05, 2014 8:10:32 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
  </code></pre>