Sun GlassFish Enterprise Server 2.1 Troubleshooting Guide

Cannot Produce a JVM Thread Dump After Server Crash


If the Enterprise Server crashes, the server dumps a core file and, by default, restarts with the -Xrs flag, which prevents the dump of a JVM thread dump.


ProcedureTo enable a JVM thread dump

  1. Comment out the -Xrs flag in the server.xml file for the Enterprise Server.

  2. Kill the server process (kill -3 on UNIX; Ctrl+Break on Windows).