[ 
https://issues.apache.org/jira/browse/ARTEMIS-3025?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17246674#comment-17246674
 ] 

ASF subversion and git services commented on ARTEMIS-3025:
----------------------------------------------------------

Commit 2b585508cc184c5f5e59489e74720384f9d98027 in activemq-artemis's branch 
refs/heads/master from franz1981
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=2b58550 ]

ARTEMIS-3025 JsonReader char[] leak


> JsonReader char[] leak
> ----------------------
>
>                 Key: ARTEMIS-3025
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3025
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>            Reporter: Francesco Nigro
>            Assignee: Francesco Nigro
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The default Json provider ie https://github.com/apache/johnzon is using 
> several pools while parsing eg {{org.apache.johnzon.max-string-length}} that 
> wouldn't pool char[] if the JsonReader isn't properly closed.
> Currently we're not properly closing such readers and that means that we 
> allocate {{org.apache.johnzon.max-string-length}} * 2 bytes on each handled 
> notification ~ 20 MiB.
> Until https://bugs.openjdk.java.net/browse/JDK-8027959 ie JDK u40, with G1GC 
> the mentioned char[] was (very likely) allocated into the old generation as 
> Humongous Allocation, needing a Full GC to release it.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to