title: How to prevent tomcat terminating itself if startup time is >300s
body: <p>I have a grails application running on tomcat that takes a ridiculously long time to start up. It runs in a VM, and the machine is shared by several other VMs. The application runs fast enough when it eventually starts, however it sometimes takes longer than 300 seconds to start up if there are lots of database migrations to run, for example.</p>
  
  <p>If tomcat kills itself after 300 seconds, in the middle of a database migration, then obviously this isn't great.</p>
  
  <p>Is it possible to extend the max startup time to >300 seconds?</p>