OutOfMemory is found in one k8s Pod but rest all pods were working fine for the same application

3/2/2022

I am running my application inside the k8s cluster which has 5 pods for the application. One of the pods is giving the following error while the rest of the pods are working fine. what is the cause of that single pod failure? how to check the cluster issues?

java.lang.OutOfMemoryError: Direct buffer memory
 java.base/java.nio.Bits.reserveMemory(Bits.java:175)
 java.base/java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:118)
 java.base/java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:317)
 io.netty.buffer.PoolArena$DirectArena.allocateDirect(PoolArena.java:755)
 io.netty.buffer.PoolArena$DirectArena.newChunk(PoolArena.java:731)
 io.netty.buffer.PoolArena.allocateNormal(PoolArena.java:247)
 io.netty.buffer.PoolArena.allocate(PoolArena.java:227)
 io.netty.buffer.PoolArena.reallocate(PoolArena.java:394)
 io.netty.buffer.PooledByteBuf.capacity(PooledByteBuf.java:118)
 
-- Chaithra Shenoy
docker
java
kubernetes
out-of-memory
spring-boot

0 Answers