Lee,

First, I assumed you are using the "bash" shell, not csh or something else
unusual.

Have you changed catalina.sh or startup.sh ? Take a look at catalina.sh
around line 73 - it should look something like:
  if [ -r "$CATALINA_HOME"/bin/setenv.sh ]; then
    . "$CATALINA_HOME"/bin/setenv.sh
  fi

Also, you can add the following two lines to the top of your setenv.sh file
to help show what is happening:
  #!/bin/bash
  set -o xtrace
  JAVA_OPTS="-server -Xms1024m -Xmx1024m -XX:MaxPermSize=256m"
  export JAVA_OPTS
This will echo the expanded command lines to the screen when you run the
startup.sh or "catalina.sh start"

 - Richard

-----Original Message-----
From: Lee Chalupa [mailto:[EMAIL PROTECTED] 
Sent: Saturday, September 02, 2006 11:02 AM
To: [EMAIL PROTECTED]
Subject: RE: need help with .startup.sh

I created the setenv.sh file in the /bin directory.

It is complaining when I startup the server with /startup.sh . A pic of the
actual file and the command line is attached.
Any ideas?
Thanks again. You have already saved me hours of frustration.

Lee


Richard Mixon wrote ..
> There is no need to change any of the shell scripts.
> 
> You need to set environment variable JAVA_OPTS with the desired option 
> and the tomcat scripts will pick it up automatically.
> 
> The catalina.sh script looks for a script called setenv.sh to set this 
> and other similar options. Here are the contents of a simple setenv.sh 
> file that might do something similar:
>   JAVA_OPTS="-server -Xms1024m -Xmx1024m -XX:MaxPermSize=256m"
>   export JAVA_OPTS
> 
> Or you can just set it in /etc/profile or ~/.profile (or equivalent 
> for your shell).
> 
> Hope this helps - Richard
> 
> -----Original Message-----
> From: Lee Chalupa [mailto:[EMAIL PROTECTED]
> Sent: Saturday, September 02, 2006 9:52 AM
> To: users@tomcat.apache.org
> Subject: need help with .startup.sh
> 
> Hello:
> 
> I need help figuring out how to modify my tomcat deployment so when 
> the JVM starts it starts with a -server option.  There seems to be a 
> bug in the jvm implementation that fedoracore 4 is using and using 
> this option when the jvm starts corrects the problem at least from my 
> application's perspective.
> 
> The problem is that I don't know what needs changing in the startup.sh 
> or whatever. The application is deployed on linux runing Fedora Core 
> 4.
> 
> Could someone give me an idea what I need to edit. I know basic linux 
> administration.
> 
> Thanks
> 
> Lee
> 
> 
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to