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.