tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rainer Frey" <rainer.f...@inxmail.de>
Subject Re: Setting maxThreads from outside tomcat
Date Fri, 31 Jul 2009 06:02:27 GMT
On Thursday 30 July 2009 22:44:47 Roger Powers wrote:

> --- On Thu, 7/30/09, Roger Powers <progpwr@yahoo.com> wrote:
> > From: Roger Powers <progpwr@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message