Linked Questions
29 questions linked to/from How to shutdown a Spring Boot Application in a correct way?
1 vote
0 answers
41 views
Shutdown Spring MVC App that was run on CMD [duplicate]
I have a simple Spring MVC project I created and I package it as a war file. I tried running it on CMD using command "javaw -jar filename.war" it run successfully and i can access the URL ...
460 votes
9 answers
573k views
How do I use the nohup command without getting nohup.out?
I have a problem with the nohup command. When I run my job, I have a lot of data. The output nohup.out becomes too large and my process slows down. How can I run this command without getting nohup....
170 votes
5 answers
180k views
Programmatically shut down Spring Boot application
How can I programmatically shutdown a Spring Boot application without terminating the VM? In other works, what is the opposite of new SpringApplication(Main.class).run(args);
55 votes
22 answers
106k views
Terminating mvn spring-boot:run doesn't stop tomcat
I can successfully start spring-boot with mvn spring-boot, the documentation mentions to gracefully exit the application hit ctrl-c. Terminate batch job (Y/N)? Y The maven process does terminate but ...
26 votes
5 answers
9k views
Spring boot embedded container or war file in an external container for production
I'm complete able to configure spring boot in both cases, the question here is which of them are more robust and is the more recommended, because I didn't find in the spring boot documentation the ...
8 votes
1 answer
12k views
Spring Boot Maven plugin - spring-boot:run and graceful shutdown
I can run a Spring Boot application with a following Maven command: mvn spring-boot:run but I don't know how to do a graceful shutdown of application which was started in a such way. Please advise.
4 votes
1 answer
4k views
Using the Spring Boot actuator to shutdown a rest server safely?
This is a followup question to How to shutdown a Spring Boot Application in a correct way? Suppose we have a server that has 3 clients currently connected and each client is running a long job. We ...
3 votes
4 answers
4k views
Spring graceful shutdown - REQUEST METHOD POST NOT SUPPORTED
I'm trying to use the Spring endpoints to gracefully shut down my application but I'm getting an error: 2016-08-09 13:46:54.606 WARN 13315 --- [nio-8090-exec-6] .w.s.m.s....
3 votes
1 answer
10k views
How to gracefully shutdown the spring boot application
I need to gracefully start and shutdown the spring boot application using a script . Is there any other way to do it except using an actuator module in the application. Currently i have to stop the ...
3 votes
1 answer
6k views
How to make the Springboot's ShutdownHook wait, till all of its processing requests are completed?
I am running my Spring boot web application inside the docker container and every time we safely stop the container, it abruptly shut down the running spring-boot service(Default behavior). My ...
2 votes
3 answers
6k views
Gracefully Shutdown Spring Boot Application from Shell Script
I have a spring boot application which I run using an executable jar file. Currently to stop the service we are just killing the process. I saw that we can use the following methods to shutdown the ...
5 votes
1 answer
3k views
Spring Boot closes hibernate session on shutdown - before @Async methods are finished
I have a problem with a spring boot application that closes the EntityManager/session on shutdown before @Async tasks (that use the EntityManager) are finished. There are 2 classes relevant for this ...
2 votes
1 answer
2k views
With Spring JPA and H2 database the ID isn't consequent after app restart
I'm working on a simple webapplication with Spring Boot. I use JPA with embedded (local) H2 database. When I start the project, Hibernate makes all the tables and connection automatically. It works ...
4 votes
1 answer
2k views
How to configure Tomcat shutdown port in Spring Boot?
Looking for way how to configure shutdown port in Spring boot app.
2 votes
1 answer
2k views
Gracefull shutdown for Spring boot Application
I am running a spring-boot application and everything is good except when i try to close it. I got error on the below code while (true) { try { if(level2List == null) ...