My startup.sh is: #!/bin/sh # ----------------------------------------------------------------------------- # Start Script for the CATALINA Server # # $Id: startup.sh,v 1.4 2004/11/17 20:17:46 yoavs Exp $ # -----------------------------------------------------------------------------
export CATALINA_OPTS="-Xmx512m" # Better OS/400 detection: see Bugzilla 31132 os400=false case "`uname`" in CYGWIN*) cygwin=true;; OS400*) os400=true;; esac # resolve links - $0 may be a softlink PRG="$0" while [ -h "$PRG" ] ; do ls=`ls -ld "$PRG"` link=`expr "$ls" : '.*-> \(.*\)$'` if expr "$link" : '.*/.*' > /dev/null; then PRG="$link" else PRG=`dirname "$PRG"`/"$link" fi done PRGDIR=`dirname "$PRG"` EXECUTABLE=catalina.sh # Check that target executable exists if $os400; then # -x will Only work on the os400 if the files are: # 1. owned by the user # 2. owned by the PRIMARY group of the user # this will not work if the user belongs in secondary groups eval else if [ ! -x "$PRGDIR"/"$EXECUTABLE" ]; then echo "Cannot find $PRGDIR/$EXECUTABLE" echo "This file is needed to run this program" exit 1 fi fi exec "$PRGDIR"/"$EXECUTABLE" start "$@" but when i start it i get: [EMAIL PROTECTED] [/usr/local/jakarta/jakarta-tomcat-5.5.9/bin]# sh -x ./startup.sh + $'\r' : command not found7: + export $'CATALINA_OPTS=-Xmx512m\r' + CATALINA_OPTS=$'-Xmx512m\r' + $'\r' : command not found9: + os400=$'false\r' '/startup.sh: line 12: syntax error near unexpected token `in '/startup.sh: line 12: `case "`uname`" in [EMAIL PROTECTED] [/usr/local/jakarta/jakarta-tomcat-5.5.9/bin]# and if i list the process: [EMAIL PROTECTED] [/usr/local/jakarta/jakarta-tomcat-5.5.9/bin]# ps aux | grep tomcat root 6822 0.0 0.0 2044 316 ? Ss May11 0:00 jsvc.exec -user tomcat -cp ./bootstrap.jar -Djava.endorsed.dirs=../common/endorsed -debug -outfile ../logs/catalina.out -errfile ../logs/catalina.err -verbose org.apache.catalina.startup.Bootstrap -security tomcat 6823 0.2 2.5 250888 52640 ? Sl May11 17:33 jsvc.exec -user tomcat -cp ./bootstrap.jar -Djava.endorsed.dirs=../common/endorsed -debug -outfile ../logs/catalina.out -errfile ../logs/catalina.err -verbose org.apache.catalina.startup.Bootstrap -security root 11161 0.0 0.0 4320 656 pts/0 S+ 10:51 0:00 grep tomcat what can be the problem? > That may be the problem. My install is not via a control panel of any > sort. I'm not familiar with how a control panel manages the startup > options. > > > [EMAIL PROTECTED] wrote: > > you've installed tomcat with cpanel support or a clean installation of > > tomcat? If i haven't understand bad, the one installed on the server has a > > cpanel support thing... Could be that the startup procedure of that version > > ignores custom options? > > Let me know please > > > > > > > >> I am using CentOS 4.4 but I don't think that this is specific to Linux > >> per se. > >> > >> I've modified startup.sh to have: > >> > >> CATALINA_OPTS="-Djava.awt.headless=true -Xmx512m" > >> export CATALINA_OPTS > >> > >> after the comments at the top and it works fine. I also hard code my > >> JAVA_HOME in much the same way so that there isn't a confusion as to > >> which one to use. > >> > >> > >> > >> [EMAIL PROTECTED] wrote: > >> > >>> We have installed tomcat 5.5.9 on centOS with cpanel but we're having > >>> some problem setting custom options. > >>> For example we wish to set the maximum memory with -Xmx, so we open > >>> catalina.sh and we add it to JAVA_OPTS variable. > >>> We then restart tomcat but it doesn't take the changes since "ps aux | > >>> grep tomcat" gives tomcat details and there is no -Xmx option. > >>> > >>> I compared my installation on my local ubuntu box and catalina.sh files > >>> are the same, like the startup.sh ones. > >>> And on my ubuntu box i can start tomcat with all the options i want. > >>> > >>> Both box have last jdk, and http://127.0.0.1:8080/manager/html shows the > >>> correct jvm version on both. > >>> > >>> The problem is that actually the centOS box > >>> http://127.0.0.1:8080/manager/status gives as maximum merory only 64mb, > >>> and since it's a 2 gb ram box it's really too low. But the changes we try > >>> to do seems ignored. > >>> > >>> Anybody have a clue on how this works? Where does it take the > >>> configuration file from? > >>> > >>> Thanks in advance. > >>> > >>> > >>> ------------------------------------------------------ > >>> Leggi GRATIS le tue mail con il telefonino i-modeTM di Wind > >>> http://i-mode.wind.it/ > >>> > >>> > >>> > >>> --------------------------------------------------------------------- > >>> To start a new topic, e-mail: users@tomcat.apache.org > >>> To unsubscribe, e-mail: [EMAIL PROTECTED] > >>> For additional commands, e-mail: [EMAIL PROTECTED] > >>> > >>> > >>> > >> --------------------------------------------------------------------- > >> To start a new topic, e-mail: users@tomcat.apache.org > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > >> > > > > > > ------------------------------------------------------ > > Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom > > http://click.libero.it/infostrada > > > > > > > > --------------------------------------------------------------------- > > To start a new topic, e-mail: users@tomcat.apache.org > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > ------------------------------------------------------ Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom http://click.libero.it/infostrada --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]