You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the embedded Tomcat container (in JAR and CLI modes) stays alive even if the application does not. To reproduce this do the following steps:
git clone https://github.com/cloudfoundry/java-test-applications
cd java-test-applications/spring-boot-application
FAIL_INIT=true spring run web.groovy
You should see an exception generated on the console, the application will not respond on an HTTP port, but the process still lives. This is a problem in a Cloud Foundry environment (but fundamentally any environment where process liveness is monitored) as it appears that the application is fine, but it clearly is not.
A change needs to be made so that the embedded Tomcat container dies when the application dies (which it is designed never to do). In the Java Buildpack we implement this with a giant (horrible) listener. As you're embedding the container, you might be able to do something a bit simpler.
The text was updated successfully, but these errors were encountered:
Currently, the embedded Tomcat container (in JAR and CLI modes) stays alive even if the application does not. To reproduce this do the following steps:
git clone https://github.com/cloudfoundry/java-test-applications cd java-test-applications/spring-boot-application FAIL_INIT=true spring run web.groovy
You should see an exception generated on the console, the application will not respond on an HTTP port, but the process still lives. This is a problem in a Cloud Foundry environment (but fundamentally any environment where process liveness is monitored) as it appears that the application is fine, but it clearly is not.
A change needs to be made so that the embedded Tomcat container dies when the application dies (which it is designed never to do). In the Java Buildpack we implement this with a giant (horrible) listener. As you're embedding the container, you might be able to do something a bit simpler.
The text was updated successfully, but these errors were encountered: