You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently when direct memory allocation fails with OutOfMemoryError, the default OutOfMemoryPolicy is FallbackToHeap and the exception is catched silently:
It would be great to be able to observe this condition. Pulsar uses ByteBufAllocatorImpl also for Pulsar client and it's hard to detect that Netty direct buffer direct access isn't properly configured unless there's a way to observe the condition.
Netty direct memory buffer access is explained in Pulsar client's "Java client Performance considerations", https://pulsar.apache.org/docs/4.0.x/client-libraries-java-setup/#java-client-performance .
After there's a counter in ByteBufAllocatorImpl, it would be possible to implement a metric in Pulsar client.
The text was updated successfully, but these errors were encountered:
lhotari
changed the title
[feat] Add observability to
[feat] Add observability to OutOfMemoryErrors when OutOfMemoryPolicy is FallbackToHeap
Dec 5, 2024
FEATURE REQUEST
Currently when direct memory allocation fails with OutOfMemoryError, the default OutOfMemoryPolicy is
FallbackToHeap
and the exception is catched silently:bookkeeper/bookkeeper-common-allocator/src/main/java/org/apache/bookkeeper/common/allocator/impl/ByteBufAllocatorImpl.java
Lines 174 to 187 in b372e90
It would be great to be able to observe this condition. Pulsar uses ByteBufAllocatorImpl also for Pulsar client and it's hard to detect that Netty direct buffer direct access isn't properly configured unless there's a way to observe the condition.
Netty direct memory buffer access is explained in Pulsar client's "Java client Performance considerations", https://pulsar.apache.org/docs/4.0.x/client-libraries-java-setup/#java-client-performance .
After there's a counter in ByteBufAllocatorImpl, it would be possible to implement a metric in Pulsar client.
The text was updated successfully, but these errors were encountered: