[ 
https://issues.apache.org/jira/browse/ARTEMIS-2785?focusedWorklogId=438891&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-438891
 ]

ASF GitHub Bot logged work on ARTEMIS-2785:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 29/May/20 18:28
            Start Date: 29/May/20 18:28
    Worklog Time Spent: 10m 
      Work Description: franz1981 commented on pull request #3154:
URL: https://github.com/apache/activemq-artemis/pull/3154#issuecomment-636121319


   Although it seems like a Netty issue, it's not: the problem is on 
`ChannelBufferWrapper` because it's using `UnreleasableByteBuf::readBytes(int 
length)` and wrapping its returned `ByteBuf` (which nature depends on the 
wrapped allocator) into an `UnreleaeasableByteBuf` that would prevent it to be 
released and correctly deallocated. 
   
   This PR is both:
   
   - avoiding using an intermediate `readBytes` + `toByteBuffer` to read into a 
`byte[]` the data
   - removing the wrong method on `ChanneBufferWrapper` given that isn't used 
anymore


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 438891)
    Time Spent: 20m  (was: 10m)

> io.netty.util.internal.OutOfDirectMemoryError during uncompress
> ---------------------------------------------------------------
>
>                 Key: ARTEMIS-2785
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2785
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 2.12.0
>         Environment: uname -a
> Linux xxxx 4.4.0-78-generic #99-Ubuntu SMP Thu Apr 27 15:29:09 UTC 2017 
> x86_64 x86_64 x86_64 GNU/Linux
> java version "1.8.0_211"
>            Reporter: Tarek Hammoud
>            Assignee: Clebert Suconic
>            Priority: Major
>         Attachments: ArtemisStressTest.java
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Hi,
> It appears that there is memory leak during decompression. Memory used per 
> PlatformDependent keeps creeping up until the OutOfDirectMemoryError is 
> thrown. Attached is a test program that recreates it. You can see the memory 
> creeping up until it runs out. [^ArtemisStressTest.java]



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

Reply via email to