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

Tom,

Tom Price wrote:
| I have analyzed the heap usage on a
| system where this memory leak has occurred, and I see that the following
| classes take up most of the memory:

[snip]

| Does anyone know what could trigger the above classes to be leaked in
| Tomcat 5.5.16?  I have also tried upgrading to Tomcat 5.5.26, but the
| problem still occurs.

Not to dismiss your problem, but these kinds of things tend to be
problems with the application rather than problems with Tomcat. Are you
able to use a profiler that can tell you where the object allocations
are actually occurring?

It's not unusual to have a ton of byte[] objects, char[] objects, String
objects, and Class objects. I'm guessing that the MessageBytes,
ByteChunk, and CharChunk objects in your heap summary are all related to
the byte[], char[], and String objects you can see there as well.

Have you been able to compare the numbers of those objects after, say,
100 requests with the same object counts after, say, 10000 requests? It
/is/ possible that Tomcat is leaking memory per connection, but very
unlikely given that thousands of servers are humming along quite nicely
without such problems.

It's also possible that Axis itself is doing some type of caching or
actually leaking memory somehow, but I also doubt that it does.

The only really good way to figure out what's happening is to instrument
your JVM and then test the hell out of it. Use JMeter to generate load
(serial or concurrent) and observe the heap, etc. You might even try to
disable some of the SOAP methods you are testing to see if this leak
only occurs with certain calls, or combinations of calls.

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

iEYEARECAAYFAkfr32wACgkQ9CaO5/Lv0PB5hACfY4Q88EAqc6ecvgOXKPwS3xtA
ufMAn3tSIziYrq8sNcw2CzTnw08rOoqF
=EgBf
-----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