Pratik,

On 4/13/23 05:35, pratik.kulka...@shell.com.INVALID wrote:
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.

Definitely see the other replies as well, but I have a few comments.

Setting CATALINA_OPTS on the command-line may not affect your running process, depending upon how to launch Tomcat. If you are using the Windows Service, for example, that environment variable does nothing after the service has been installed.

You say the error happens "when you access the application". Can you be more specific? For example, doe sit fail on "first access" after a restart, or does it fail after some number of requests?

Please look in any of these files for a full stack trace of the OOME:

%CATALINA_HOME%/logs/catalina.out
%CATALINA_HOME%/logs/*stdout*
%CATALINA_HOME%/logs/*stderr*

%CATALINA_BASE%/logs/catalina.out
%CATALINA_BASE%/logs/*stdout*
%CATALINA_BASE%/logs/*stderr*

and post the complete stack trace.

-chris

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

Reply via email to