Hi I am not able to find the setenv.bat in this location C:\tomcat-9.0.84\bin).
Regards, Sagar Palle. ________________________________ From: Christopher Schultz <ch...@christopherschultz.net> Sent: Thursday, August 8, 2024 7:20 PM To: users@tomcat.apache.org <users@tomcat.apache.org> Subject: Re: Apache Tomcat Memory Allocation CAUTION: External email. Please verify the veracity of the sender/content before opening a link or an attachment. 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 [Aspire Systems] This e-mail message and any attachments are for the sole use of the intended recipient(s) and may contain proprietary, confidential, trade secret or privileged information. Any unauthorized review, use, disclosure or distribution is prohibited and may be a violation of law. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.