title: Why is my Tomcat server restarting and what is org.apache.catalina.core.AprLifecycleListener?
body: <p>I'm trying to figure out why my web app (I didn't write it, but I'm supposed to debug it) is consistently causing the Tomcat web server to restart.  All I see in the logs before the server restarts is:</p>
  
  <pre><code>Jul 24, 2009 7:52:15 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
  INFO: The Apache Portable Runtime which allows optimal performance in production environments was not found on the java.library.path: /usr/local/jdk1.5.0_09/jre/lib/i386/server:/usr/local/jdk1.5.0_09/jre/lib/i386:/usr/local/jdk1.5.0_09/jre/../lib/i386
  Jul 24, 2009 7:52:15 AM org.apache.coyote.http11.Http11BaseProtocol init
  </code></pre>
  
  <p>I can actual do this same processing on other groups of files and it works fine, but doing this one particular group causes the server to restart.  Mostly I'm hoping somebody can tell me if that's just a timeout, or if there should be some other log file telling me why it's dying.  And if it's a timeout, if there's a way to increase it.</p>
  
  <p><strong>Update</strong>: I tried starting the server with <code>bin/catalina.sh run</code> which puts the output to stanadard out instead of catalina.out, and all I get instead of the above is the progress from my app and then "Killed".</p>
  
  <p>As an aside, I don't know what's restarting it, but when I try to restart the server with <code>bin/catalina.sh run</code>, I get a BindException, so <em>something</em> restarted it.</p>
  
  <p><strong>Update 2</strong>: It was using Tomcat 5.5 and Java 5.  I installed Tomcat 6 and set it up to use Java 6, and the same thing is happening.  Also, if I do an "echo $?" after the "Killed", it gives me "137", which probably indicates the hosting company is killing it off for some reason.</p>