Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.14.0, 2.14.1
-
None
Description
JSON Template Layout
1 use recycler is queue or threadLocal
2 JsonWriter formattableBuffer receive big string
3 the StringBuilder inner char array expansion and length never getting smaller
E.g.:
public Object test() { StringBuilder sb=new StringBuilder(); for(int i=0;i<10;i++){ for(int j=0;j<10;j++){ sb.append(UUID.randomUUID()); } log.info(""+sb+sb); } return "success"; }
Attachments
Attachments
Issue Links
- is duplicated by
-
LOG4J2-3129 Memory Leak in JsonTemplateLayout
- Closed