uCosminexus Application Server, Maintenance and Migration Guide

[Contents][Glossary][Index][Back][Next]

5.10.2 When the -XX:+HitachiLocalsInStackTrace Option Is Specified

For each stack frame information of stack trace information in a thread dump, the local variable information in the method corresponding to that stack frame is inserted and output.

The output format and output contents are the same as the contents output to the standard output when you specify -XX:+HitachiLocalsInThrowable.

However, specifying this option with the -XX:+HitachiLocalsInStackTrace option is invalid.

The example of Java program and output of the corresponding local variable information within the stack trace are as follows:

Java program example 3

class Example3 {
 public static void main(String[] args) {
 Example3 e3 = new Example3();
 e3.method();
 }
 
 synchronized void method() {
 int l1 = 1;
 float l2 = 2.0f;
 String l3 = "local 3";
 Character l4 = new Character('X');
 Object l5 = new Thread();
 Object[] l6 = new Thread[10];
 
 The-thread-dump-is-output-here!
 }
}
 

The example of output is described below. This is an example of the following cases.