tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Funk <funk...@apache.org>
Subject Re: catalina.sh and java_opts question
Date Mon, 17 Aug 2009 15:45:49 GMT
Something will eventually call bin/startup.sh (or bin/catalina.sh). 
Changing bin/startup.sh (or bin/catalina.sh) is typically a bad idea.

Whatever is calling that should export JAVA_OPTS first.

For example:
export JAVA_OPTS='-Xmx256m'
- or -
export JAVA_OPTS='-Xmx256m -Djava.awt.headless=true'



-Tim

Susan Teague Rector wrote:
> Hello all,
> I've searched around on the net and have found differing opinions about 
> where to actually place the java_opts env var for tomcat.
> Should this variable be in /tomcat/bin/catalina.sh? When I set it in 
> this file and then print out all env vars, it looks like it is not set.
> How do I set java_opts to enable my tomcat applications to get to it?


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


Mime
View raw message