How to restart java program if JVM crashes -


i working on low configuration machine , jvm crashes sometimes.

the java application name application.jar, plays hd video local streaming servers. application running on embeded win7 touch computer, hanged in lounge.

some time heap size exceeds , error out of memory the jvm shuts down.

i want restart application.jar whenever jvm crashes.

it possible. how?

thanks.

edit: wrapping try catch not work jvm crashed. have used -xms512m -xmx1024m while running jar file. crash frequency got lower still remains.

if need auto restart can wrap application demonization tool daemon. has --respawn parameter.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -