...........................Shutdown hook!
Process Thread Dump: Threads during shutdown
8 active threads
Thread 11 (shutdownHook1):
State: RUNNABLE
Blocked count: 0
Waited count: 0
Stack:
sun.management.ThreadImpl.getThreadInfo1(Native Method)
sun.management.ThreadImpl.getThreadInfo(ThreadImpl.java:178)
sun.management.ThreadImpl.getThreadInfo(ThreadImpl.java:139)
ThreadUtils$.$anonfun$printThreadInfo$1(TryOutShutdownHook.scala:56)
ThreadUtils$$$Lambda$7/1354382162.apply$mcVJ$sp(Unknown Source)
scala.runtime.java8.JFunction1$mcVJ$sp.apply(JFunction1$mcVJ$sp.java:23)
scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
scala.collection.mutable.ArrayOps$ofLong.foreach(ArrayOps.scala:258)
ThreadUtils$.printThreadInfo(TryOutShutdownHook.scala:55)
TryOutShutdownHook$.$anonfun$main$1(TryOutShutdownHook.scala:18)
TryOutShutdownHook$$$Lambda$1/728890494.apply$mcV$sp(Unknown Source)
scala.sys.ShutdownHookThread$$anon$1.run(ShutdownHookThread.scala:37)
Thread 13 (SIGTERM handler):
State: WAITING
Blocked count: 0
Waited count: 1
Waiting on scala.sys.ShutdownHookThread$$anon$1@506c589e
Stack:
java.lang.Object.wait(Native Method)
java.lang.Thread.join(Thread.java:1252)
java.lang.Thread.join(Thread.java:1326)
java.lang.ApplicationShutdownHooks.runHooks(ApplicationShutdownHooks.java:107)
java.lang.ApplicationShutdownHooks$1.run(ApplicationShutdownHooks.java:46)
java.lang.Shutdown.runHooks(Shutdown.java:123)
java.lang.Shutdown.sequence(Shutdown.java:167)
java.lang.Shutdown.exit(Shutdown.java:212)
java.lang.Terminator$1.handle(Terminator.java:52)
sun.misc.Signal$1.run(Signal.java:212)
java.lang.Thread.run(Thread.java:748)
Thread 12 (Attach Listener):
State: RUNNABLE
Blocked count: 0
Waited count: 0
Stack:
Thread 5 (Monitor Ctrl-Break):
State: RUNNABLE
Blocked count: 0
Waited count: 0
Stack:
java.net.SocketInputStream.socketRead0(Native Method)
java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
java.net.SocketInputStream.read(SocketInputStream.java:171)
java.net.SocketInputStream.read(SocketInputStream.java:141)
sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)
sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)
sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
java.io.InputStreamReader.read(InputStreamReader.java:184)
java.io.BufferedReader.fill(BufferedReader.java:161)
java.io.BufferedReader.readLine(BufferedReader.java:324)
java.io.BufferedReader.readLine(BufferedReader.java:389)
com.intellij.rt.execution.application.AppMainV2$1.run(AppMainV2.java:64)
Thread 4 (Signal Dispatcher):
State: RUNNABLE
Blocked count: 0
Waited count: 0
Stack:
Thread 3 (Finalizer):
State: WAITING
Blocked count: 1
Waited count: 2
Waiting on java.lang.ref.ReferenceQueue$Lock@79c01878
Stack:
java.lang.Object.wait(Native Method)
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:144)
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:165)
java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:216)
Thread 2 (Reference Handler):
State: WAITING
Blocked count: 1
Waited count: 1
Waiting on java.lang.ref.Reference$Lock@2b1227e6
Stack:
java.lang.Object.wait(Native Method)
java.lang.Object.wait(Object.java:502)
java.lang.ref.Reference.tryHandlePending(Reference.java:191)
java.lang.ref.Reference$ReferenceHandler.run(Reference.java:153)
Thread 1 (main):
State: TIMED_WAITING
Blocked count: 0
Waited count: 27
Stack:
java.lang.Thread.sleep(Native Method)
TryOutShutdownHook$.$anonfun$doStuff$1(TryOutShutdownHook.scala:10)
TryOutShutdownHook$$$Lambda$6/2047526627.apply$mcVI$sp(Unknown Source)
scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:158)
TryOutShutdownHook$.doStuff(TryOutShutdownHook.scala:8)
TryOutShutdownHook$.main(TryOutShutdownHook.scala:21)
TryOutShutdownHook.main(TryOutShutdownHook.scala)
Process finished with exit code 143 (interrupted by signal 15: SIGTERM)