Description
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:
- [Performance] CachedIntrospectionResults has wrong approach to caching. [SPR-4876] #9552 [Performance] CachedIntrospectionResults has wrong approach to caching.