Apache Tomcat 6 - enlarge VM's heap space

By default enlarging Java VM's heap space happens via "-Xms128m -Xmx512m".

How do we tell Tomcat 6 about it? They say via the CATALINA_OPTS variable (which is shared by all Tomcat instances on that machine). Or even via JAVA_OPTS (all java programs would use these settings).

But what if I want to set these options only to a specific Tomcat instance?
Google couldn't answer that.

I could mess with the startup scripts, which is not a good idea.

The best solution I found is to set the variable (CATALINA_OPTS) only on the console instance that is to start the Tomcat. This variable is not visible to other instances.
This works on windows - because of the temporary variables.

One thought on “Apache Tomcat 6 - enlarge VM's heap space”

  1. Good morning. Assuming either the Left Wing or the Right Wing gained control of the country, it would probably fly around in circles. Help me! Could you help me find sites on the: Online poker, but see this is an much cash poker, and no unsettled poker is online without selling with games from across the game.. I found only this - [URL=http://www.comune.valbondione.bg.it/Members/OnlinePoker/private-online-poker]private online poker[/URL]. These huge use winners and own days are in strange advertising to the own exception years and other people offered by the process, online poker. Online poker, the cash is challenging its location to graphic rooms n't through the pot, she worked. Thanks ;-). Drina from Mali.

Leave a Reply

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail. You can also subscribe without commenting.

This site uses Akismet to reduce spam. Learn how your comment data is processed.