Skip to content

GC problem when having Spring jars in a higher ClassLoader without using clearClassLoader [SPR-7227] #11886

Closed
@spring-projects-issues

Description

@spring-projects-issues

Thomas Risberg opened SPR-7227 and commented

GC problem when re-deploying bundles in dm Server 2.0.1. Looks like the GenericTypeAwarePropertyDescriptor is holding a reference to the class.

Class Name | Shallow Heap | Retained Heap


class com.test.Bean1 @ 0x2c34fb70 | 0 | 0
'- beanClass org.springframework.beans.GenericTypeAwarePropertyDescriptor @ 0x26c94110 | 96 | 152
'- value java.util.HashMap$Entry @ 0x26c92970 | 24 | 176
'- [3] java.util.HashMap$Entry[16] @ 0x26c91740 | 80 | 376
'- table java.util.HashMap @ 0x26c868d8 | 40 | 416
'- propertyDescriptorCache org.springframework.beans.CachedIntrospectionResults @ 0x26c74858 | 16 | 4,136
'- value java.util.WeakHashMap$Entry @ 0x26c5e7e0 | 40 | 4,176
'- [2] java.util.WeakHashMap$Entry[16] @ 0x26230850 | 80 | 98,408
'- table java.util.WeakHashMap @ 0x2622bb40 | 48 | 98,488
'- m java.util.Collections$SynchronizedMap @ 0x262275d8 | 32 | 98,520
'- classCache class org.springframework.beans.CachedIntrospectionResults @ 0x2bc554c8| 16 | 98,704
'- [157] java.lang.Object[320] @ 0x26229208 | 1,296 | 101,208



Affects: 3.0.2

Issue Links:

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions