The user can now override -Xms and -Xmx as well as other options that make launching the app fail. Keeping a known good set of JVM options around and to allow an automatic relaunch would keep the application running. It would be possible to provide an API so the developer could prompt the user in such a case to fix the problem(s).