28.12.11

hs_err_pid.log and OutOfMemoryError


  • An OutOfMemoryError also triggers the hs_err_pid<pid>.log file to be generated
It's not true. I tried with a simple program and it just doesn't work.


  1 import java.util.*;
  2
  3 public class HS {
  4     public static void main(String [] args) {
  5         List list = new ArrayList();
  6         for(;;) {
  7             list.add(new byte[1024 * 1024]);
  8         }
  9     }
 10
 11 }

No comments: