Disabling dump agents with -Xrs

When using a debugger such as GDB or WinDbg to diagnose problems in JNI code, you might want to disable the signal handler of the Java™ runtime so that any signals received are handled by the operating system.

Using the -Xrs command-line option prevents the Java runtime handling exception signals such SIGSEGV and SIGABRT. When the Java runtime signal handler is disabled, a SIGSEGV or GPF crash does not call the JVM dump agents. Instead, dumps are produced depending on the operating system.

Disabling dump agents in AIX

AIX produces a core file called core in the working directory when a process crashes. The file can be processed with jextract and analyzed with tools such as jdmpview and DTFJ. For the dump to be useful, configure your AIX® environment to produce full core dumps. See Setting up and checking your AIX environment for more details.


© Copyright IBM Corporation 2005, 2010. All Rights Reserved.
© Copyright Sun Microsystems, Inc. 1997, 2007, 901 San Antonio Rd., Palo Alto, CA 94303 USA. All rights reserved.
US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
This information center is powered by Eclipse technology. (http://www.eclipse.org/)