Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring Boot Application quits unexpectedly with "Killed"

I am running a small webservice application with Spring Boot, Maven, Spring Data, Hibernate which is usually working fine. It has just a single webservice request mapping. The application is a standalone JAR and started in a shell with "screen".

Nearly once per day it just quits itself. There is nobody that forces the app to stop or so. It just says "Killed" in the shell. There is no exception, error or any other message. I already tried to activate logging in application.properties with:

logging.level.org.springframework.web=ERROR
logging.level.org.hibernate=ERROR

but that does not help. Also added exception handling to the webservice mapping trying to catch any exception thrown. But also nothing.

Does anyone know why the app could have been stopped or how I can display the problem?

Thanks in advance!

like image 827
Hoax Avatar asked May 06 '16 11:05

Hoax


Video Answer


1 Answers

I encountered with the same problem and I had resolved it by creating swap area. I think it is a typical memory problem. I recommend you to create swap area if you are deploying the application in a linux environment. Check memory usage before..

like image 70
Abdullah Gürsu Avatar answered Oct 28 '22 04:10

Abdullah Gürsu