Mantis - Resin
Viewing Issue Advanced Details
6220 minor always 03-16-19 12:04 03-18-19 08:12
nam  
 
normal  
closed 4.0.61  
no change required  
none    
none  
0006220: FreeList may be pooling extremely large objects
(rep by Naohisa)

FreeList may be pooling extremely large objects. This has contributed to OOM errors.

Some possible options:
1. add size check of item being freed and pool only if below threshold
2. add FreeList.onLowMemory()
3. add log message when freeing large objects

2019-03-06 10:53:04 Health Alarm MemoryPermGenHealthCheck CRITICAL:0.00% free (0.000M free, 7516.193M max, 7516.193M used)

char[] 5.75G 5.75G 25923768
java.lang.String 4.50G 644.03M 26834788
java.util.HashMap$Node 2.41G 282.15M 8817174
java.lang.Object[] 1.88G 57.92M 193164
com.caucho.vfs.ByteToChar 1.03G 9.17K 191
java.lang.StringBuilder 1.03G 12.22K 509
java.lang.StringBuffer 826.30M 959.42K 39976
java.util.HashMap$Node[] 652.20M 93.32M 558756

There are no notes attached to this issue.