title: Java Program crashed 6 hours in, Core Dump Error
body: <p>I have a multi-threaded pipeline program which has a single element of the pipeline that takes multiple hours to calculate for long data.</p>
  
  <p>It works fine for relatively small amounts of data, but for large data it crashed after 6 hours. I got this error:</p>
  
  <pre><code># A fatal error has been detected by the Java Runtime Environment:
  #
  #  Internal Error (safepoint.cpp:310), pid=47713, tid=11267
  #  guarantee(PageArmed == 0) failed: invariant
  #
  # JRE version: Java(TM) SE Runtime Environment (8.0_65-b17) (build 1.8.0_65-b17)
  # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.65-b01 mixed mode bsd-amd64 compressed oops)
  # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
  #
  # An error report file with more information is saved as:
  # DIR/hs_err_pid47713.log
  #
  # If you would like to submit a bug report, please visit:
  #   http://bugreport.java.com/bugreport/crash.jsp
  #
  Abort trap: 6
  DOMAIN$ unlimit -c unlimited
  -bash: unlimit: command not found
  </code></pre>
  
  <p>There doesn't seem to be any way to do this on mac. Any ideas why my program crashed, </p>