tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: Tomcat startup script
Date Sun, 19 Aug 2001 23:59:50 GMT
With this patch, you would not be able to run Tomcat *without* HotSpot as
long as it existed -- which would often be useful in a debugging
situation.

You can tell Tomcat to start with this variable, without modifying the
startup scripts, by setting TOMCAT_OPTS (Tomcat 3.x) or CATALINA_OPTS
(Tomcat 4.x) to the set of options you want to pass to the JVM.  For
instance, you can run with the -server switch and set max heap size to 128
megabytes with:

  CATALINA_OPTS="-server -Xmx=128m"

or

  TOMCAT_OPTS="-server -Xmx=128m"

Craig



On Mon, 20 Aug 2001, Bojan Smojver wrote:

> I guess most people would like to run Tomcat with server HotSpot if
> there is one. Can we do something like this (just to save most people a
> bit of configuration file editing, environment variable setting and the
> like):
> 
> --- tomcat.sh   Wed Jul 18 07:24:49 2001
> +++ /usr/local/tomcat/bin/tomcat.sh     Sat Aug 18 17:56:40 2001
> @@ -101,7 +101,11 @@
> 
>  if [ "$JAVACMD" = "" ] ; then
>     # it may be defined in env - including flags!!
> -   JAVACMD=$JAVA_HOME/bin/java
> +   if [ -n "`java -version 2>&1 | grep HotSpot`" ]; then
> +       HOTSPOT="-server"
> +   fi
> +
> +   JAVACMD="$JAVA_HOME/bin/java $HOTSPOT"
>  fi
> 
>  ## -------------------- Prepare CLASSPATH --------------------
> 
> Bojan
> 


Mime
View raw message