2012/10/2, Konstantin Kolinko <knst.koli...@gmail.com>:
> 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.

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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to