On Thursday 30 July 2009 22:44:47 Roger Powers wrote: > --- On Thu, 7/30/09, Roger Powers <prog...@yahoo.com> wrote: > > From: Roger Powers <prog...@yahoo.com> > > Subject: Setting maxThreads from outside tomcat > > To: users@tomcat.apache.org > > Date: Thursday, July 30, 2009, 4:35 PM > > Hi, > > > > I am making tomcat 6 work on different platforms that need > > different values for maxThreads in the Connector in > > server.xml. > > > > Ideally, I would set an environment variable and/or > > property that could be used when server.xml is read - is > > something like this supported? > > > > Or, worse case, it looks like I could put a value onto the > > command line and look for it in Bootstrap.main() and then > > consult that value as the connectors are made, but that's > > pretty ugly. > > > > Any ideas? > > RP > Sorry, I just discovered that catalina.properties can > be used to set variables that can be used in server.xml - > problem solved!
Java System properties can also be used - you can set them in the environment variables CATALINA_OPTS or JAVA_OPTS, eg. in $CATALINA_BASE/bin/setenv.sh Rainer --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org