I'm trying to debug a hung java process. It is unresponsive to most of the JDK tools like jstats, jmap etc.
Here is the output of strace:
$ sudo strace -p <pid>
futex(0x7f14bb42a9d0, FUTEX_WAIT, 6090, NULL <unfinished ...>
Output of wchan:
$ sudo cat /proc/<pid>/wchan
futex_wait_queue_me%
$sudo strace -f -p <pid>
Process <pid> attached with 15 threads - interrupt to quit
[pid 6105] futex(0x7f14b40cb954, FUTEX_WAIT_PRIVATE, 1, NULL <unfinished ...>
[pid 6102] futex(0x7f14ba81e860, FUTEX_WAIT_PRIVATE, 0, NULL <unfinished ...>
[pid 6101] futex(0x7f14b408aa54, FUTEX_WAIT_PRIVATE, 43, NULL <unfinished ...>
[pid 6100] futex(0x7f14b4085f54, FUTEX_WAIT_PRIVATE, 43, NULL <unfinished ...>
[pid 6074] futex(0x7f14bb42a9d0, FUTEX_WAIT, 6090, NULL
Other important information about the process:
- It runs under cgexec.
Need pointers on how to find the root cause of this process hang issue.