2012/10/2, Konstantin Kolinko <[email protected]>: > 2012/10/2 Caldarale, Charles R <[email protected]>: >>> From: joel badia escolà [mailto:[email protected]] >>> 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.
Correct ! > > 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. This solves the problem, i defined export JAVA_OPTS="$JAVA_OPTS -Xmx2000m" in setenv.sh and i restarted the server. This has fixed the problem ;) Thanks a lot, Joel Badia Escolà --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
