Skip to content

Commit

Permalink
Check server up
Browse files Browse the repository at this point in the history
  • Loading branch information
warunalakshitha committed Dec 11, 2024
1 parent 720dd3a commit 32b965a
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 32b965a

Please sign in to comment.