kim2yung commented on issue #3699:
URL: https://github.com/apache/hertzbeat/issues/3699#issuecomment-3213606991

   Also getting Collector OOM issue, I have also added the fix 
https://github.com/apache/hertzbeat/pull/3295/commits/2aba7792bb0d5f9d1d88c6aad828c89b05a3c0b3
   
   logs-
   2025-08-20 13:32:30.788 [545469670758144-tej_switch-system-8145] ERROR 
org.apache.hertzbeat.collector.dispatch.WorkerPool Line:49 - Thread Name 
545469670758144-tej_switch-system-8145 : Cannot reserve 4194304 bytes of direct 
buffer memory (allocated: 1608303404, limit: 1610612736)
   java.lang.OutOfMemoryError: Cannot reserve 4194304 bytes of direct buffer 
memory (allocated: 1608303404, limit: 1610612736)
   at java.base/java.nio.Bits.reserveMemory(Bits.java:178)
   at java.base/java.nio.DirectByteBuffer.(DirectByteBuffer.java:121)
   at java.base/java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:332)
   at io.netty.buffer.PoolArena$DirectArena.allocateDirect(PoolArena.java:717)
   at io.netty.buffer.PoolArena$DirectArena.newChunk(PoolArena.java:692)
   at io.netty.buffer.PoolArena.allocateNormal(PoolArena.java:215)
   at io.netty.buffer.PoolArena.tcacheAllocateNormal(PoolArena.java:197)
   at io.netty.buffer.PoolArena.allocate(PoolArena.java:139)
   at io.netty.buffer.PoolArena.allocate(PoolArena.java:129)
   at 
io.netty.buffer.PooledByteBufAllocatorL$InnerAllocator.newDirectBufferL(PooledByteBufAllocatorL.java:173)
   at 
io.netty.buffer.PooledByteBufAllocatorL$InnerAllocator.directBuffer(PooledByteBufAllocatorL.java:206)
   at 
io.netty.buffer.PooledByteBufAllocatorL.allocate(PooledByteBufAllocatorL.java:53)
   at 
org.apache.arrow.memory.netty.NettyAllocationManager.(NettyAllocationManager.java:74)
   at 
org.apache.arrow.memory.netty.NettyAllocationManager.(NettyAllocationManager.java:81)
   at 
org.apache.arrow.memory.netty.NettyAllocationManager$1.create(NettyAllocationManager.java:38)
   at 
org.apache.arrow.memory.BaseAllocator.newAllocationManager(BaseAllocator.java:376)
   at 
org.apache.arrow.memory.BaseAllocator.newAllocationManager(BaseAllocator.java:372)
   at 
org.apache.arrow.memory.BaseAllocator.bufferWithoutReservation(BaseAllocator.java:357)
   at org.apache.arrow.memory.BaseAllocator.buffer(BaseAllocator.java:336)
   at org.apache.arrow.memory.RootAllocator.buffer(RootAllocator.java:27)
   at org.apache.arrow.memory.BaseAllocator.buffer(BaseAllocator.java:298)
   at org.apache.arrow.memory.RootAllocator.buffer(RootAllocator.java:27)
   at 
org.apache.arrow.vector.BaseVariableWidthVector.allocateBytes(BaseVariableWidthVector.java:498)
   at 
org.apache.arrow.vector.BaseVariableWidthVector.allocateNew(BaseVariableWidthVector.java:446)
   at 
org.apache.arrow.vector.BaseVariableWidthVector.allocateNew(BaseVariableWidthVector.java:407)
   at 
org.apache.arrow.vector.VectorSchemaRoot.allocateNew(VectorSchemaRoot.java:150)
   at 
org.apache.hertzbeat.common.entity.message.CollectRep$MetricsData$Builder.build(CollectRep.java:432)
   at 
org.apache.hertzbeat.collector.dispatch.MetricsCollect.validateResponse(MetricsCollect.java:433)
   at 
org.apache.hertzbeat.collector.dispatch.MetricsCollect.run(MetricsCollect.java:185)
   at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
   at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
   at java.base/java.lang.Thread.run(Thread.java:833)


-- 
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.

To unsubscribe, e-mail: notifications-unsubscr...@hertzbeat.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@hertzbeat.apache.org
For additional commands, e-mail: notifications-h...@hertzbeat.apache.org

Reply via email to