Unexpected shutdown

Hi there,

I have an app which is using Play framework, but it shuts it down occasionally for unknown reason. Here is the log I got. And there isn’t any warning or error before the shutdown. Can someone please help with any idea?? Thanks a lot!

[DEBUG] from akka.actor.CoordinatedShutdown in application-akka.actor.default-dispatcher-292 - Running CoordinatedShutdown with reason [ServerStoppedReason]
2020-06-23 23:31:42,499 [DEBUG] from akka.actor.CoordinatedShutdown in application-akka.actor.default-dispatcher-292 - Performing phase [before-service-unbind] with [1] tasks.
2020-06-23 23:31:43,693 [DEBUG] from akka.actor.CoordinatedShutdown in application-akka.actor.default-dispatcher-292 - Performing task [trace-server-stop-request] in CoordinatedShutdown phase [before-service-unbind]
2020-06-23 23:31:43,891 [INFO] from play.core.server.AkkaHttpServer in Thread-7 - Stopping server…
2020-06-23 23:31:45,181 [DEBUG] from akka.actor.CoordinatedShutdown in application-akka.actor.default-dispatcher-292 - Performing phase [service-unbind] with [1] tasks.
2020-06-23 23:31:45,185 [DEBUG] from akka.actor.CoordinatedShutdown in application-akka.actor.default-dispatcher-292 - Performing task [akka-http-server-unbind] in CoordinatedShutdown phase [service-unbind]

Akka verion 2.6.3
Scala veriosn 2.12.8

it looks like this is a controlled shutdown, so I guess that the play process got a outside signal, e.g. a SIGTERM … if you’re running your app in a docker container, make sure the memory settings are correct, e.g. that docker does not shutdown the app because it uses too much memory. the memory settings in docker need to be higher than what you pass to your JVM.

1 Like