Skip to content

Commit

Permalink
Merge pull request #2127 from warunalakshitha/fix_hang
Browse files Browse the repository at this point in the history
Check server up
  • Loading branch information
warunalakshitha authored Dec 11, 2024
2 parents 13e7ca4 + 32b965a commit 8b08fee
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,16 @@ private Utils() {
static {
Thread.startVirtualThread(() -> {
try {
Thread.sleep(5 * 60 * 1000);
getStrandDump();
int count = 0;
while (true) {
Thread.sleep(count);
count += 500;
PrintStream out = System.out;
out.println("COUNT =" + count);
if (count == 300000) {
getStrandDump();
}
}
} catch (InterruptedException | IOException e) {
throw new RuntimeException(e);
}
Expand Down

0 comments on commit 8b08fee

Please sign in to comment.