I need to strace a multithreaded Java process that seems to have frozen. Following this advice, I ran ps -efL|grep <Process Name> to get all the threads. However, when I then ran strace -fp <thread_pid> -s 2000 I again got a bunch of lines like this:
[pid 2521] futex(0x7f91c4003c94, FUTEX_WAIT_PRIVATE, 1, NULL <unfinished ...>
[pid 2520] futex(0x7f91ac003c94, FUTEX_WAIT_PRIVATE, 1, NULL <unfinished ...>
...
where 2521, 2520, etc are PIDs of all the threads, not just the one I tried to strace. Ultimately, I am trying to determine what's wrong with the job, and it seems that to find that out, I need detailed info on what the threads are doing. How do I get that?