by
0
5
2,780
0
Top 1% !
Popular
Famous
Specified
OpenSource
Popularity: 5686th place
Created
Modified Sep 23, 2013

Published on:

No tags for this snippet yet.
LanguageJava
LicenseMIT_X11
OSLinux
OSWindows

Autorestart JVM on OutOfMemoryError

Applying this VM arg enable the capability to launch a script when OutOfMemory error occurs.
Hey, remeber to fix the issue, anyway!! :)
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/11228/Autorestart-JVM-on-OutOfMemoryError?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
-XX:OnOutOfMemoryError="/path/to/your/script/script-to-restart"
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus