ProAnswers.org

How we can externally allocates the memory to the java program?

Set the memory available to the JVM

java -mx20m myApp // for max

java -ms20m myApp // for start