Inspecting Java threads in Linux using top
问题 I am inspecting a Java process in Linux using top -H However, I cannot read the name of the thread in the "COMMAND" column (because it is too long). If I use 'c' to expand the full name of the process, then it is still to long to fit. How can I obtain the full name of the command? 回答1: You can inspect java threads with the tool jstack . It will list the names, stacktraces and other useful information of all threads belonging to the specified process pid. Edit : The parameter nid in the thread