Hi Pratik,

On 13.04.23 11:35, pratik.kulka...@shell.com.INVALID wrote:
Hello,

This email concerns an error I encountered while using Oracle Apex with ORDS 3.0.9 and 
Tomcat 9. Specifically, I receive a "Java heap space" error when accessing the 
application.

To troubleshoot the issue, I have tried to increase the maximum heap size of 
the JVM using the -Xmx option in the CATALINA_OPTS environment variable. I set 
this environment variable in the catalina.bat file and restarted the Tomcat 
service, but the error persisted.

I have also confirmed that the CATALINA_OPTS environment variable is set 
correctly by running echo %CATALINA_OPTS% in the command prompt.

I should note that I have two versions of Tomcat installed on the system - 8.5 and 9. 
Everything works fine on Tomcat 8.5, but the "Java heap space" errors are 
thrown on Tomcat 9.

I would appreciate any insights or guidance you can provide to help me resolve 
this issue. Below are the details of the software I am using,

1. Make sure you have enough memory available (my recommendation is to set -Xms to the same value as -Xmx, so that you see *immediately* (on startup) if you don't have enough memory available. It doesn't help if you need 3 hours or 3 days to run into this condition.

2. Check if your application has a memory leak (e.g. by monitoring the memory consumption over time)

Olaf


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to