Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How and where do I change the option for JVM heap memory in Tomcat?

heap JVM memory option Tomcat
0
0 Posted

How and where do I change the option for JVM heap memory in Tomcat?

0
0

Location: http://www.jguru.com/faq/view.jsp?EID=416239 Created: May 6, 2001 Modified: 2003-02-18 02:47:24.27 Author: Alessandro A. Garbagnati (http://www.jguru.com/guru/viewbio.jsp?EID=32727) Question originally posed by Nimmi Shamdasani (http://www.jguru.com/guru/viewbio.jsp?EID=396584 Nimmi, If you look into the tomcat.sh or tomcat.bat under the bin directory of tomcat, you can see an environment variable called TOMCAT_OPTS. You can use it for passing all the JVM specific parameters, like the -X or -D. You can set it directly in the file, or set it in the environment before calling it. For example in unix you can do: export TOMCAT_OPTS=” -Xms15M -Xmx15M” tomcat.sh start For Tomcat 4.x.x, the logic is the same, but the filenames and the variable name are different. The environment variable is CATALINA_OPTS, and you can find references in catalina.sh or catalina.bat.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123