tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Fwd: Java HotSpot(TM) 64-Bit Server VM warning: CodeCache is full. Compiler has been disabled
Date Wed, 22 Aug 2012 16:12:02 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Christovam,

On 8/17/12 5:41 PM, Christovam Paynes Silva wrote:
> catalina.sh following settings:

FYI it's better to create a bin/setenv.sh and set your environment
variables, there.

> 
> JAVA_OPTS="-Dfile.encoding= ISO-8859-1 ..."

One more nit to pick: you want to set CATALINA_OPTS instead of
JAVA_OPTS. If you use JAVA_OPTS, then you are setting a 1GiB heap for
the process that merely sends "shutdown" commands to Tomcat.

> -Duser.timezone=America/Sao_Paulo -server -Xms700m -Xmx1100m 
> -XX:PermSize=626m -XX:MaxPermSize=826m -XX:+UseCodeCacheFlushing 
> -XX:ReservedCodeCacheSize=264m
> -XX:CodeCacheFlushingMinimumFreeSpace=50m"

Finally, why are you even specifying the code-cache sizes at all? Do
you have these problems when you remove *all* of the code-cache
configuration parameters from your _OPTS environment variables?

Generally speaking, there's no reason to adjust such settings unless
you are actually having a problem. Maybe you started having
code-cache-related problems before you added those settings, but you
didn't say that so I assume it's not true. Instead, I assume that you
are fiddling with settings that you don't need to set.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlA1BNIACgkQ9CaO5/Lv0PAYtgCfQpcJdnvvX8tZD0T73qDPCBcj
r+sAmQHy90LQp6IpJLDaroGXRawJ0Bp3
=Ci1j
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message