diff --git a/native/src/main/java/io/ballerina/stdlib/graphql/runtime/utils/Utils.java b/native/src/main/java/io/ballerina/stdlib/graphql/runtime/utils/Utils.java index d1fbab02c..d6af3ed11 100644 --- a/native/src/main/java/io/ballerina/stdlib/graphql/runtime/utils/Utils.java +++ b/native/src/main/java/io/ballerina/stdlib/graphql/runtime/utils/Utils.java @@ -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); }