-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Barak,

Barak Yaish wrote:
> I've dump a file using jmap, and asked MemoryAnalyzer (www.eclipse.org/mat)
> to take a look. This tool reported that an instance of java.security.Policy
> retained 77.7% of the heap (552,569,816 bytes).

Wow, that's a lot of Policy objects. Do you have any kind of weird
configuration, or have you been re-deploying your webapp many times or
anything like that? java.security.Policy shouldn't be busting your heap.

I'm not convinced that Johnny's suggestion that you are getting an
"instance" of your native library per thread is correct. Java loads
native libraries once per JVM instance. Perhaps you are leaking memory
through your native code, but that wouldn't produce phantom Policy objects.

Can your application run without the native library (albeit without
certain features)? If so, try load testing your webapp without the
native library -- just to rule it out (or in!) as the cause of your low
memory conditions.

Note that, other than the overabundance of java.security.Policy objects,
your heap looks just fine to me.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkjJPAEACgkQ9CaO5/Lv0PDPQgCfUrvk3PRAKpsIoVVdyDl+1XHz
dXkAnReUL+wNmCifKKdx2FhokWjouQgw
=W80h
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to