2012/10/2 Caldarale, Charles R <chuck.caldar...@unisys.com>: >> From: joel badia escolà [mailto:basto...@gmail.com] >> Subject: Problems Increassing -Xmx > >> if [ -z "$JAVA_OPTS" ]; then >> JAVA_OPTS="-Djava.awt.headless=true -Xmx2000m" <---- RELEVANT >> fi > > And what happens if you don't put quotation marks around the values? >
Quotes are OK. It is shell scripting, not Windows one. What is not OK: 1. The statement inside of "if" executes only if $JAVA_OPTS is empty. Is it empty? 2. Learn the difference between JAVA_OPTS and CATALINA_OPTS variables. You should not put such a value into JAVA_OPTS. You should not put it info both variables at the same time. >> And i tried to modify /usr/share/tomcat6/bin/catalina.sh like this: > > Don't do that; create a setenv.sh script to hold any environment variables > you need to set. > +1 >> it seems that tomcat ignores me > > These are not Tomcat parameters, they are JVM system properties. > +1 s/properties/options/, and only for Sun/Oracle/OpenJDK JVM An OutOfMemory is a strange way to test this option. It is easy to exhaust a 2Gb heap if you are inaccurate. Have you tried to search the archives of this mailing list? Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org