Posts

Showing posts from January, 2017

How to troubleshoot hung/stuck jboss container process??

How to troubleshoot hung/stuck java process?? There are several tools available on linux to troubleshoot. 1) Enable the thread dump in jboss configuration file (generally run.conf). Make sure that it is enabled earlier so that you can take the thread dump as and when required. Here to take dump, one simply need to issue the following command: # kill -3 <pid> You should be able to see the dump on your console. How to capture the same in a file, try it on your own. Have some fun with that.;-) 2) jmap     Using this tool you can monitor the proces memory footprint. Using the below command keep monitoring the heap related parameters which might give some insight about the stuck pids # jmap -F -heap <PID> Attaching to process ID 3423, please wait... Debugger attached successfully. Server compiler detected. JVM version is 24.65-b04 using thread-local object allocation. Parallel GC with 8 thread(s) Heap Configuration:    MinHeapFreeRatio = 0