Pratik,
On 4/13/23 22:55, pratik.kulka...@shell.com.INVALID wrote:
Chris - I see. So we already have installed a service and I tried to
set the environment variable after we got the error. Is there a way
for Tomcat to read the variables we set after installation?
If you are running the Windows Service to launch Tomcat, you need to
edit the service using tomcat9w.exe. There is a panel for Java options
and you can set the heap sizes there.
Also, what I meant by "when I access the application" is that it
worked for a few requests; but as soon as I started to launch the pages
which have SQL queries being executed to fetch user data, the
application was crashing with this error.
I wonder if Tomcat 9 requires just a little bit more memory in general
than Tomcat 8 (and I'm not suggesting that it DOES, only that it MIGHT)
and you had been riding the line between "runnable" and "runs out of
memory all the time".
Are you able to run under Tomcat 8 and observe the total-heap-space
versus used-heap-space over time to see how that compares to Tomcat 9? I
wonder if Tomcat 8 was configured to provide enough heap space but your
Tomcat 9 setup does not have that same configuration.
When I set both values for Xms and Xmx as Olaf suggested, the application
crashed right on Tomcat startup, so I couldn't access the URL at all. Also,
below is the output of tomcat_stderr,
How did you set those values? What did you set them both to? When you
say "crashed right on Tomcat startup", what was the error message you
got? The stack trace you posted was from a request processing error, and
not during startup.
-chris
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org