Randhir,
On 21.5.2014 14:31, Randhir Singh wrote:
I had changed catalina.sh in our development environment like a week back
and want to implement it in the production environment but I got this
doubt. I feel catalina.sh is invoked by startup.sh but am not sure. I have
already taken downtime for production tomorrow but I got this doubt whether
changing the
1. Don't post the same message twice. It makes volunteers on the list
waste their time.
2. Don't top post. Bottom posting is the standard on this list.
3. Don't "request"/ People are volunteering here.
4. In default Tomcat instalation, catalina.sh is called from startup.sh.
5. Regardless of do you call startup.sh or catalina.sh, environment
variables have the same meaning: JAVA_OPTS is used on Tomcat startup and
Tomcat shutdown, while CATALINA_OPTS is only used on Tomcat startup. If
you place -Xms2048m in JAVA_OPTS it will reserve 2 GB on Tomcat startup,
and another 2 GB when you invoke Tomcat shutdown. That is waste of
memory. Use CATALINA_OPTS instead.
6. It is not recommended to modify startup.sh or catalina.sh ever. All
environment variables should be set in the file bin/setenv.sh.
7. (5.) and (6.) were already pointed out by Chris. Please read answers
on the list carefully to show that you respect resources volunteers are
allocating for you for free.
8. You may invoke "ps -fHA | grep Bootstrap" after you start Tomcat, to
see if your CATALINA_OPTS reached JVM call.
-Ognjen
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org