In that case I'd suggest putting the the JAVA_OPTS in the
$TOMCAT_HOME/bin/catalina.sh. Add the line

JAVA_OPTS="-server" to somewhere near the top of the file.

On Fri, 2004-06-11 at 07:28, Mariano wrote:
> With this opts in CATALINA_OPTS i get this message error:
> 
> jsvc error: Invalid option -server
> jsvc error: Cannot parse command line arguments
> 
> Mariano LÃpez
> 
> -----Mensaje original-----
> De: Dale, Matt [mailto:[EMAIL PROTECTED]
> Enviado el: jueves, 10 de junio de 2004 11:20
> Para: Tomcat Users List; [EMAIL PROTECTED]
> Asunto: RE: Using JAVA_OPTS=" -sever" with jsvc on linux
> 
> 
> 
> It looks like you should put it in your CATALINA_OPTS so that line
> would
> become
> 
> CATALINA_OPTS="-server -Xms256m -Xmx256m -XX:PermSize=128m
> -XX:MaxPermSize=128m"
> 
> -----Original Message-----
> From: Mariano [mailto:[EMAIL PROTECTED]
> Sent: 10 June 2004 10:17
> To: [EMAIL PROTECTED]
> Subject: Using JAVA_OPTS=" -sever" with jsvc on linux
> 
> 
> Hi all, i like to specify JAVA_OPTS=" -sever" with jsvc on linux
> Fedora Core
> 1. I use J2SDK 1.4.2_04-b05 and Tomcat 5.0.25.
> 
> Now i put a line into Tomcat.sh like JAVA_OPTS=" -sever ", but i don't
> know
> if this is correct.
> 
> Tomcat.sh:
> 
> JAVA_HOME=/var/j2sdk
> CATALINA_HOME=/var/tomcat
> DAEMON_HOME=/var/tomcat/bin
> TOMCAT_USER=tomcat
> TMP_DIR=/var/tmp
> JAVA_OPTS=" -server "
> export JAVA_OPTS
> CATALINA_OPTS="-Xms256m -Xmx256m -XX:PermSize=128m
> -XX:MaxPermSize=128m"
> CLASSPATH=\
> $JAVA_HOME/lib/tools.jar:\
> $CATALINA_HOME/bin/commons-daemon.jar:\
> $CATALINA_HOME/bin/bootstrap.jar
> 
> case "$1" in
>   start)
>     #
>     # Start Tomcat
>     #
>     $DAEMON_HOME/jsvc \
>     -user $TOMCAT_USER \
>     -home $JAVA_HOME \
>     -Dcatalina.home=$CATALINA_HOME \
>     -Djava.io.tmpdir=$TMP_DIR \
>     -outfile $CATALINA_HOME/logs/catalina.out \
>     -errfile '&1' \
>     $CATALINA_OPTS \
>     -cp $CLASSPATH \
>     #
>     # To get a verbose JVM
>     #-verbose \
>     # To get a debug of jsvc.
>     #-debug \
>     ;;
> 
>   stop)
>     #
>     # Stop Tomcat
>     #
>     PID=`cat /var/run/jsvc.pid`
>     kill $PID
>     ;;
> 
>   *)
>     echo "Usage tomcat.sh start/stop"
>     exit 1;;
> esac
> 
> Thanks.
> 
> Mariano LÃpez
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to