How setup WildFly 10 to automatic restart JVM after crash?

1.3k Views Asked by At

Please help, how to setup WildFly 10 for automatic restart after a JVM crash.

We use the JNI interface for native applications and we has a periodicly crash JVM. Use full-ha and ha modes does't work. Аfter JVM-crash, we should manually start server.

1

There are 1 best solutions below

0
On

You might have found a solution but to help those who come later and don't mind using supervisor, then I just setup wildfly9 and think the same can be done for wildfly10 or any other service. Here is my conf file:

[program:wildfly]
command=/home/engine/wildfly9/bin/standalone.sh -Djboss.server.base.dir=/home/engine/wildfly9/standalone/ -Djboss.socket.binding.port-offset=20000 -Djboss.node.name=node1 --server-config=engine.xml
stdout_logfile=/var/log/wildfly/engine.log
stderr_logfile=/var/log/wildfly/engine_error.log
autorestart=true
autostart=true
user=engine
directory=/home/engine
stopasgroup=true

Hope it helps.