I'm trying to figure out which Java thread is hogging my CPU. From my top's perspective I've found that this LWP is the bottleneck, with 17.8%:
10634 user1+ 20 0 6911624 939456 28016 S 0.3 17.8 0:00.65 java
As I understand the processid of the thread, should map the nid attribute of the Java Thread dump:
"RMI Scheduler(0)" #209 daemon prio=9 os_prio=0 tid=0x00007fe71c18a800 nid=0x2c78 waiting on condition [0x00007fe6d35a5000]
"RMI TCP Accept-0" #207 daemon prio=9 os_prio=0 tid=0x00007fe714106000 nid=0x2c74 runnable [0x00007fe6d1f84000]
"Attach Listener" #206 daemon prio=9 os_prio=0 tid=0x00007fe7301ab800 nid=0x2a98 waiting on condition [0x0000000000000000]
"ServerService Thread Pool -- 67" #205 prio=5 os_prio=0 tid=0x00007fe74c126000 nid=0x2a49 waiting on condition [0x00007fe6d38a8000]
"Thread-94" #202 daemon prio=5 os_prio=0 tid=0x00007fe70c0c7800 nid=0x2a43 runnable [0x00007fe6ce995000]
"Weld Thread Pool -- 5" #192 prio=5 os_prio=0 tid=0x00007fe6f8116000 nid=0x2a32 waiting on condition [0x00007fe6ced97000]
. . . . . . . .
However, converting 10640 to Hex does not produce a valid match:
printf -v result1 "%x" "10640"
$ echo $result1
2990
Can you help to convert the pid (10634) to a valid Hex value, as displayed by the nid attribute? Thanks