Hoax
Hoax

Reputation: 128

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!

Upvotes: 8

Views: 7139

Answers (2)

Abdullah Gürsu
Abdullah Gürsu

Reputation: 3186

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..

Upvotes: 8

luboskrnac
luboskrnac

Reputation: 24561

This happens often when system kills your Java process because it started to consume a lot of memory.

Try to inspect your deployment target limitations and adjust heap size below that limit.

Upvotes: 5

Related Questions