Friday, April 16, 2010

java.util.logging Memory Leak

Under some circumstances java.util.logging.Logger.kids array may grow to contain tens, if not hundreds of thousands of WeakReference objects.

JDK versions under suspicion: 1.6.0_15, 1.6.0_18 to 1.6.0_20.

This may happen even if your application never explicitly uses the java.util.logging framework at all - third party libraries that you are using might.

UPDATE: This has been observed before.

UPDATE: Doesn't seem to be present in JDK 1.6.0_17.

<to be continued>

PS: It is appalling to see Java core code not using generics two versions after they have been introduced.

No comments:

Post a Comment