Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
mcculls committed Jan 16, 2025
1 parent 1f481f3 commit 609d960
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
import java.io.PrintStream;
import java.lang.management.ManagementFactory;
import java.lang.management.RuntimeMXBean;
import java.lang.management.ThreadInfo;
import java.lang.management.ThreadMXBean;
import java.lang.reflect.Field;
import java.net.URL;
import java.util.ArrayList;
Expand Down Expand Up @@ -233,6 +235,11 @@ public static int runOnSeparateJvm(

if (!waitFor(process, 30, TimeUnit.SECONDS)) {
System.out.println("======== APP TIMED OUT");
ThreadMXBean threadMXBean = ManagementFactory.getThreadMXBean();
for (ThreadInfo info : threadMXBean.dumpAllThreads(true, true)) {
System.out.println(info);
}
System.out.println("======== -------------");
waitFor(process, 30, TimeUnit.SECONDS);
throw new TimeoutException();
}
Expand Down

0 comments on commit 609d960

Please sign in to comment.