Running Pi tutorial with 400 workers hangs
ForkJoinPool threads are all parked like this:
"ForkJoinPool-1-worker-18" prio=5 tid=7fa2449fb800 nid=0x11f410000 waiting on condition [11f40f000]
java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <74a340e68> (a akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinPool)
at akka.jsr166y.ForkJoinPool.scan(ForkJoinPool.java:1566)
at akka.jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1303)
at akka.jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104)
Leave a comment
addendum: in these cases we never call .shutdown() on the pool, so I think it is a race between creating the workers and shutting down the system which leaves the system completely shutdown but workers still registered with the dispatcher.