We have a java program that requires a large amount of heap space - we start it with (among other command line arguments) the argument -Xmx1500m, which specifies a maximum h
Maybe you should consider to start the program and reserving the memory and not
end the VM after each run. Look for different GC options and release your objects.