hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (HBASE-16054) OutOfMemory exception when use AsyncRpcClient with encryption
Date Fri, 17 Jun 2016 17:53:05 GMT

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

Ted Yu edited comment on HBASE-16054 at 6/17/16 5:52 PM:
---------------------------------------------------------

lgtm

Should the release be done after the following call ?
{code}
      in.readBytes(unwrapped);
{code}


was (Author: yuzhihong@gmail.com):
Should the release be done after the following call ?
{code}
      in.readBytes(unwrapped);
{code}

> OutOfMemory exception when use AsyncRpcClient with encryption
> -------------------------------------------------------------
>
>                 Key: HBASE-16054
>                 URL: https://issues.apache.org/jira/browse/HBASE-16054
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Colin Ma
>            Assignee: Colin Ma
>         Attachments: HBASE-16054.001.patch
>
>
> Test the AsyncRpcClient with encryption in infinity loop, will get the OOM exception
like the following:
> io.netty.util.internal.OutOfDirectMemoryError: failed to allocate 29106160 byte(s) of
direct memory (used: 2607219760, max: 2609905664)
> 	at io.netty.util.internal.PlatformDependent.incrementMemoryCounter(PlatformDependent.java:592)
> 	at io.netty.util.internal.PlatformDependent.allocateDirectNoCleaner(PlatformDependent.java:546)
> 	at io.netty.buffer.PoolArena$DirectArena.allocateDirect(PoolArena.java:699)
> 	at io.netty.buffer.PoolArena$DirectArena.newUnpooledChunk(PoolArena.java:695)
> 	at io.netty.buffer.PoolArena.allocateHuge(PoolArena.java:246)
> 	at io.netty.buffer.PoolArena.allocate(PoolArena.java:224)
> 	at io.netty.buffer.PoolArena.allocate(PoolArena.java:141)
> 	at io.netty.buffer.PooledByteBufAllocator.newDirectBuffer(PooledByteBufAllocator.java:262)
> 	at io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:179)
> 	at io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:170)
> 	at io.netty.buffer.AbstractByteBufAllocator.buffer(AbstractByteBufAllocator.java:107)
> 	at org.apache.hadoop.hbase.security.SaslClientHandler.write(SaslClientHandler.java:328)
> 	at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:724)
> 	at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:716)
> 	at io.netty.channel.AbstractChannelHandlerContext.access$1900(AbstractChannelHandlerContext.java:36)
> 	at io.netty.channel.AbstractChannelHandlerContext$AbstractWriteTask.write(AbstractChannelHandlerContext.java:1064)
> 	at io.netty.channel.AbstractChannelHandlerContext$WriteAndFlushTask.write(AbstractChannelHandlerContext.java:1111)
> 	at io.netty.channel.AbstractChannelHandlerContext$AbstractWriteTask.run(AbstractChannelHandlerContext.java:1049)
> 	at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:339)
> 	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:393)
> 	at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:742)
> 	at java.lang.Thread.run(Thread.java:745)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message