static void restartWith1GBHeap() { S preferredVMArguments = "-Xmx1g " + smallHeapArgs(); if (empty(programArgs()) && !vmArguments().contains("-Xmx1g")) { print("Restarting with more memory"); nohupJavax(programID() + " bla", preferredVMArguments); cleanKill(); } }