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
Set the memory available to the JVM
java -mx20m myApp // for max
java -ms20m myApp // for start