SyntaxFix
Write A Post
Hire A Developer
Questions
Runtime.getRuntime().exec allocates the process with the same amount of memory as the main. If you had you heap set to 1GB and try to exec then it will allocate another 1GB for that process to run.
Runtime.getRuntime().exec