Caused by: java.lang.OutOfMemoryError: Java heap

1.89K viewsJavaTomcat
0

Hi,while running tomacat application am getting below error ,please check and give me advice.

Error : Caused by: java.lang.OutOfMemoryError: Java heap

Changed status to publish
Add a Comment
3

Step 1 : Please create the file called setenv.bat(Tomcat home location Exp:%CATALINA_HOME%\bin\setenv.bat).

Step 2 : Add below line in setenv.bat file.

set JAVA_OPTS=-Xmx1024m

Step 3: Restart the Tomcat Server.

Step 4: Application will work without memory error.

Changed status to publish
Add a Comment
You are viewing 1 out of 1 answers, click here to view all answers.
Write your answer.