tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joel badia escolà <basto...@gmail.com>
Subject Re: Problems Increassing -Xmx
Date Tue, 02 Oct 2012 10:03:30 GMT
2012/10/2, Konstantin Kolinko <knst.kolinko@gmail.com>:
> 2012/10/2 Caldarale, Charles R <Chuck.Caldarale@unisys.com>:
>>> From: joel badia escolà [mailto:bastoigm@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message