On a Linux platform:=============
1). Run "top".
2). Press Shift-H to enable Threads View.
3). Get the PID (i.e., PID column) of the thread with the highest CPU usage.
4). Convert the PID (in Decimal format) to HEX (e.g., using an online Decimal-to-HEX convertor).
5). Obtain a thread dump of the Java process that contains thread native IDs nid (e.g., using "jstack" etc.).
6). In the thread dump, look for a thread with the matching HEX PID (i.e., the 'nid=0x..' field).
On a Windows platform:
===============
1). Download and open ProcessExplorer.
2). Open the BWengine in ProcessExplorer. In the thread tab, find out the high-cpu TID.
3). Convert the TID (in Decimal format) to HEX (e.g., using an online Decimal-to-HEX convertor).
4). Obtain a thread dump of the Java process that contains the thread native IDs nid (e.g., using "jstack" etc.).
5). In the thread dump, look for a thread with the matching HEX TID (i.e., the 'nid=0x..' field).