title: Spring Boot server stops responding to requests
body: <p>I'm running a web app using Spring Boot (1.5.8.RELEASE, embedded tomcat) on Ubuntu 16.04 (OpenJDK 1.8.0_151). Server is started with this command:</p>
  
  <p><code>java -jar -Dspring.profiles.active=local -Dserver.port=8090 target/abc.jar &gt; /dev/null 2&gt;&amp;1 &amp;</code></p>
  
  <p>Here, "target" is the directory which has the latest jar to run. During deployments, while the server is running, the content of "target" is moved to a directory "old_target" (<code>mv target old_target</code>), and the new jar is copied in "target" directory. At this point, the server completely stops responding to any request. Output of curl:</p>
  
  <p><code>curl --max-time 60 --connect-timeout 2 localhost:8090/health</code> : curl: (28) Operation timed out after 60001 milliseconds with 0 bytes received</p>
  
  <p>So it's definitely listening on the port (can verify this from netstat as well) but does not respond at all. What could be wrong? My understanding was that once the JVM loads the jar content in memory, we can delete/modify the jar file on disk without it affecting the currently running application. But that doesn't seem to be the case here.</p>
  
  <p>The server is in this hung state right now and I can execute any commands which may help in identifying the issue.</p>