I have deployed an application in Tomcat which results in the below error when server starts.
java.land.OutOfMemoryError: GC Overhead limit exceeded
I create a setenv.bat file in bin directory of Tomcat with the following
set JAVA_OPTS=-Xms1024m -Xmx2048m -XX:MaxPermSize=512m
exit /b 0
but this does not help.
Is there a way to find out if the file is getting called and JAVA_OPTS getting set? The documentation of the war file says that this much memory should be sufficient, so I feel it may not even be getting set.