ClassDefiner.defineClass() leaking memory in a RMI method invocation.

Hi,

My application uses RMI for communicating between two java processes.

I'm observing some kind of memory leak in one of the classes in RMI

library.When observed through OptimizeIT, I see a large number of

Object[] being created by theClassDefiner.defineClass() &

ClassDefiner$1().run().

These Object[] arrays keep accumulating, never get garbage collected.

Attached is the screen shot of OptimizeIT, which shows object allocation

hierarchy.

Any help in this regard would be appreciated.

The JDK version being used is, 1.4.2_05.

thanks in advance.

Vijayendra

[671 byte] By [vijshettya] at [2007-11-27 8:51:17]
# 1
Update - The reason for this was found to be "-Xnoclassgc" After removing this option from the startup script, I didn't notice any increase in object[]/int[] count. Hoping this would fix the issue.
vijshettya at 2007-7-12 21:04:12 > top of Java-index,Java HotSpot Virtual Machine,Specifications...