-2
public class Crash {
      public static void main(String[] args) {
        System.exit(0);
    }
} 

How to crash the JVM so it will generate the hs_err_pidxxxx.log

1 Answers1

0

The log file is located in the "current directory" of the process by default. This can changed - see It is posible to write hs_err_pid*.log in a specific directory (different than the class directory) when java virtual machine crash?.

Community
  • 1
  • 1
Jiri Tousek
  • 12,211
  • 5
  • 29
  • 43