[ 
https://issues.apache.org/jira/browse/HBASE-16054?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ted Yu updated HBASE-16054:
---------------------------
    Summary: OutOfMemory exception when using AsyncRpcClient with encryption  
(was: OutOfMemory exception when use AsyncRpcClient with encryption)

> OutOfMemory exception when using 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, HBASE-16054.002.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)

Reply via email to