Does anybody know of a way of mapping the light weight process id reported by a tool such as prstat on Solaris on to something more meaningful e.g. is it a session bean thread, tomcat thread, jboss system thread etc.
e.g. prstat output:
PID .... CPU PROCESS/LWPID
24187 12% java/10
24187 0.1% java/21351
i.e. Is there any way of knowing what the 10 and 21351 refer to?
to find out which LWPID corresponds to which Java thread you can run "kill -QUIT " (in your case is the PID 24187) which will trigger a jvm dump with all thread stacktraces. look for the "nid" (10=0xA) which corresponds to your LWPID to find out which this guy is doing...