Automatically detecting a hung jvm process on Linux
is there an automated way of detecting a hung java process on Linux (Red-Hat, Suse). Perhaps writing a shell or perl script looking at process status???
Let's say there are n number of java processes belonging to WebSphere (App-Servers, node agents, deployment managers etc.), just using ps or top is not enough to tell that a specific java process is hung. Do any of the monitoring tools (Tivoli, SiteScope etc.) notify when a process is hung? How to tell if the hung process is a node agent, deployment manager, or application server? I understand that forcing a thread dump might tell u but how do you know which pid to invoke a thread dump on? Thanks...-Sam