1
votes

My understanding is that even if you Ctrl-C, Akka can have some processes and actors still running. How can I, using the command line only, shutdown all remaining Akka processes and actors? I'd like to do this at the shell, not by writing Scala code.

2
You have tried what?Daryl Gill

2 Answers

2
votes

If you SIGINT (ctrl + c) a process, you'll kill the JVM. If you kill the JVM, you've killed Akka – it doesn't spawn any processes outside of the VM. If you want to programmatically you should call shutdown and awaitTermination on your ActorSystem. Here's more docs about ActorSystem

1
votes

If by hitting Ctrl-C for some reason doesn't stop akka, try again. As long as you exit the JVM, it should be good.

But, if you have this problem (akka no stopping), there might something in your code that's preventing it to stop