title: -XX:OnOutOfMemoryError="kill -9 %p" Problem
body: <p>I have an issue with trying to pass the <code>-XX:OnOutOfMemoryError="kill -9 %p"</code> command into my jvm args.</p>
  
  <p>I am using Jetty7, and have this within the start.ini file.  On start up it give me the error below. This is with jre /jre1.6.0_03l64</p>
  
  <blockquote>
    <p>Starting Jetty: STARTED Jetty Tue Apr 26 09:54:26 EDT 2011<br>
    Unrecognized option: -9<br>
    Could not create the Java virtual machine.</p>
  </blockquote>
  
  <p>The start.ini file is as below.</p>
  
  <pre><code>#===========================================================
  # If the arguements in this file include JVM arguments
  # (eg -Xmx512m) or JVM System properties (eg com.sun.???),
  # then these will not take affect unless the --exec
  # parameter is included or if the output from --dry-run
  # is executed like:
  #   eval $(java -jar start.jar --dry-run)
  #
  # Below are some recommended options for Sun's JRE
  #-----------------------------------------------------------
    --exec
  # -Dcom.sun.management.jmxremote
    -Xmx4096m
    -Xmn512m
    -DLABEL=PROD_APP
    -verbose:gc
    -Xloggc:/export/opt/prod_app/logs/gc.log
    -XX:OnOutOfMemoryError="kill -9 %p"
  # -XX:+PrintGCDateStamps
    -XX:+PrintGCTimeStamps
    -XX:+PrintGCDetails
    -XX:+PrintTenuringDistribution
  # -XX:+PrintCommandLineFlags
  # -XX:+DisableExplicitGC
  # -XX:+UseConcMarkSweepGC
  # -XX:ParallelCMSThreads=2
  # -XX:+CMSClassUnloadingEnabled
  # -XX:+UseCMSCompactAtFullCollection
  # -XX:CMSInitiatingOccupancyFraction=80
  </code></pre>
  
  <p>Commenting the line out jetty will start fine with no issue. However we really need to add this arg due to memory leak with the system to prevent further damage if our process falls over.</p>
  
  <p>Would anyone have any idea what I am doing wrong here or how I can fix this?</p>