$ jcmd Thread.dump_to_file -format=json threads.json (28-beta+21-ea) : Created /threads.json # the scope "orders" and its child scope in threads.json (stack frames, timestamps and ids trimmed or masked) "container": "orders\/jdk.internal.misc.ThreadFlock$ThreadContainerImpl@", "parent": "", "owner": , "tid": , "virtual": true, "state": "TIMED_WAITING", "ThreadDump.lambda$main$1(ThreadDump.java:12)", "tid": , "virtual": true, "state": "WAITING", "ThreadDump.lambda$main$2(ThreadDump.java:16)", "container": "inventory\/jdk.internal.misc.ThreadFlock$ThreadContainerImpl@", "parent": "orders\/jdk.internal.misc.ThreadFlock$ThreadContainerImpl@", "owner": , "tid": , "virtual": true, "state": "TIMED_WAITING", "ThreadDump.lambda$main$4(ThreadDump.java:15)",