tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <>
Subject Re: Problems Increassing -Xmx
Date Tue, 02 Oct 2012 07:48:15 GMT
2012/10/2 Caldarale, Charles R <>:
>> From: joel badia escolĂ  []
>> 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/ like this:
> Don't do that; create a script to hold any environment variables you need to


>> 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:
For additional commands, e-mail:

View raw message