tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christovam Paynes Silva <christova...@gmail.com>
Subject Re: Fwd: Java HotSpot(TM) 64-Bit Server VM warning: CodeCache is full. Compiler has been disabled
Date Wed, 22 Aug 2012 16:39:57 GMT
Hello Christopher,

Before you even set the environment variables, I already had this problem
with the cache. How was using jdk1.0.5, I upgraded to 1.0.7 jdk, messages
of "Java HotSpot (TM) 64-Bit Server VM warning: CodeCache is full. Compiler
Has Been disabled", disappeared, however some images not loading the
application. Then I read about this BUG:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7166379
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7170971

I'll look on this environment variable "CATALINA_OPTS"



2012/8/22 Christopher Schultz <chris@christopherschultz.net>

> -----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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message