//Error java.lang.OutOfMemoryError: Java heap space
Answer:-
Some times there may be no space for running the java program.At that time
programmer should increase the size of Heap area of JVM or Web Server.
For Increase the heap Size:
For a Run a Java Program Run with:- java -Xms65m -Xmx512 yourJavaFile
For run with Tomcat set the Environment Variable :- set JAVA_OPTS="-Xms256m -Xmx1024m"
Here
-Xms
-Xmx
-Xss
No comments:
Post a Comment