Sagar,

On 8/8/24 05:47, Mark Thomas wrote:
On 08/08/2024 10:40, Sagar Palle wrote:
Hi,

I have installed the tomcat version *tomcat-9.0.84 *in the window system, it is consuming 29GB memory, and we configure the memory in the catalina.bat(C:\tomcat-9.0.84\bin) 24GB, it is still consuming the 29GB memory.

That is entirely expected.

"Maximum Java Heap Space" < "Maximum Memory used by Java Process"

The Java Runtime Environment uses more memory than what's in the Java heap. For example, there is a compiler which compiles your Java code into machine code, and that code has to go into memory somewhere. Also, the Garbage Collector has some overhead of managing the heap itself, and that information cannot go into the heap. (Okay, some of it can, but some cannot.) Native libraries do not use the Java heap. The JVM itself uses the Java heap for some things, but off-heap memory for other things.

I've seen JVM processes that use ~50% non-heap memory. Those are extreme cases, but it does happen.

*OS Details:*

This mailing lists drops images. Use plain text.

Can you please suggest where we need to configure the  memory for the Apache tomcat service.

You should not edit catalina.bat. Use setenv.bat.

+1

-chris

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

Reply via email to