Caused by: java.lang.OutOfMemoryError: Java heap

3.34K 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

Mounika Changed status to publish October 27, 2020
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.

Manohar Changed status to publish October 2, 2019
Add a Comment
Write your answer.