Skip to content

Commit

Permalink
Add auto kill JVM option for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
k-tamura committed Feb 26, 2017
1 parent 2e4da00 commit 0e7db29
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,10 @@
<argument>-XX:HeapDumpPath=logs/</argument>
<argument>-XX:ErrorFile=logs/hs_err_pid%p.log</argument>
<argument>-XX:NativeMemoryTracking=summary</argument>
<!-- OnOutOfMemoryError: For Linux -->
<!-- Auto kill JVM when OOME occurs: For Linux -->
<!-- <argument>-XX:OnOutOfMemoryError="kill -9 %p"</argument> -->
<!-- Auto kill JVM when OOME occurs: For Windows -->
<!-- -XX:OnOutOfMemoryError=taskkill /F /PID %p -->
<!-- UnlockCommercialFeatures/FlightRecorder: For Oracle Java commercial use -->
<!-- <argument>-XX:+UnlockCommercialFeatures</argument>
<argument>-XX:+FlightRecorder</argument> -->
Expand Down

0 comments on commit 0e7db29

Please sign in to comment.