I have been researching how nodes can automatically recover from fatal errors like being out of heap space.
On a standalone node, giving Java the -XX:+ExitOnOutOfMemoryError option takes care of stopping the server. It can be combined with Restart=on-failure in the systemd unit to take care of starting it again.
However, on a domain node, systemd wouldn't notice the server is down unless the host controller died. So, I could still add -XX:+ExitOnOutOfMemoryError to the JVM options of the server process, but if it actually did stop, it seems like it would just stay that way until manually started.
The documentation says of the "auto-start" server attribute that it determines whether that server is started when the host controller starts. It doesn't say that that server will be RE-started automatically if it fails. Will it? Is there another way to achieve automatic restarts in domain mode?