Quantcast
Channel: Akka Libraries - Discussion Forum for Akka technologies
Viewing all articles
Browse latest Browse all 1367

What happens after system.terminate() and main completes?

$
0
0

I have a stand-alone integration written mostly in java+akka that uses akka.testkit.ExplicitlyTriggeredScheduler.

The following stops quickly as I expect:

public class Simulator {
  public static void main(String[] args) {
    // ...
    system.terminate();
    System.exit(0); // quickly exits
  }
}

But if I remove the System.exit(0) the system takes about 1 minute after the last INFO message that the scheduler is stopped. What is happening in this 1 minute? How can I trace any hooks akka might have after main is done?

6 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 1367

Trending Articles