ByteBufAllocatorMetric.usedDirectMemory reports low values #16059
Replies: 1 comment
-
|
on heap OOM part is resolved in comments of #16058 Created #16068 for reproducible part |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have simple test that writes some bytes to a direct buffer.
Idea is to use
allocator.metric().usedDirectMemory()and try to short circuit the operation if used direct memory is about to exceed the limit.Netty version: 4.2.9.Final
I'm getting OOM-s with both allocators
PooledByteBufAllocator
PooledByteBufAllocator logs
Note that
allocated: 50331649in the OOM error is 12MB higher then last reported in logsallocator.metric().usedDirectMemory()AdaptiveByteBufAllocator
Logs - same picture, 4MB increment, heap is also 0 (expected, just logged it for completeness), last reported before OOM is
37617664 which is also around 12MB lower then
allocated: 50200577from the error messageBeta Was this translation helpful? Give feedback.
All reactions