Hi Guys,
i had a query on pinot server memory utilization. i see in the pinot grafana dashboard that off heap utilization is around 20G, JVM memory is set to 14G and utilization of JVM always around 8 to 10 G. pod limits are set at 60G.
utilization of the pod is always between 56 to 60G sometime going above 60. my understanding is off heap roughly 20G and jvm heap 14G so utilization should be not more than 35 G. i this assumption wrong i checked top output of pod and can see java process only in list using highest memory. if my assumption is right what could be possible reasons for higher pod utilization than expected.
also we continuously keep getting below error which i have a hunch is related to this high utilization. any idea on reason for this error as we see high query timeouts when this error pops up continuously. we are using OSS pinot 1.2.0
{"log_timestamp": "2025-01-21T141755.230+0000", "log_level": "ERROR", "process_id": 1, "process_name": "pinot-server", "thread_id": 1, "thread_name": "query-runner-on-7732-1-thread-1680", "action_name": "org.apache.pinot.query.runtime.executor.OpChainSchedulerService", "log_message": "(OpChain{1132637784000000938_0_1}): Completed erroneously null {250=ExecutionTimeoutError
ProcessingException(errorCode:250, message:ExecutionTimeoutError)
at org.apache.pinot.common.exception.QueryException.<clinit>(QueryException.java:113)
at org.apache.pinot.common.datablock.DataBlockUtils.extractErrorMsg(DataBlockUtils.java:55)
at org.apache.pinot.common.datablock.DataBlockUtils.getErrorDataBlock(DataBlockUtils.java:47)
at org.apache.pinot.query.runtime.blocks.TransferableBlockUtils.getErrorTransferableBlock(TransferableBlockUtils.java:54)}"}
{"log_timestamp": "2025-01-21T141755.231+0000", "log_level": "ERROR", "process_id": 1, "process_name": "pinot-server", "thread_id": 1, "thread_name": "query-runner-on-7732-1-thread-1681", "action_name": "org.apache.pinot.query.runtime.executor.OpChainSchedulerService", "log_message": "(OpChain{1132637784000000938_21_2}): Completed erroneously null {1000=Timed out adding block into mailbox: 1132637784000000938|2|21|1|0 with timeout: 0ms
java.util.concurrent.TimeoutException: Timed out adding block into mailbox: 1132637784000000938|2|21|1|0 with timeout: 0ms
at org.apache.pinot.query.mailbox.InMemorySendingMailbox.send(InMemorySendingMailbox.java:73)
at org.apache.pinot.query.runtime.operator.exchange.BlockExchange.sendBlock(BlockExchange.java:115)
at org.apache.pinot.query.runtime.operator.exchange.BlockExchange.send(BlockExchange.java:79)
at org.apache.pinot.query.runtime.operator.MailboxSendOperator.sendTransferableBlock(MailboxSendOperator.java:172)}"}
Jan 21, 2025 21755 PM io.grpc.internal.ServerCallImpl handleInternalError
WARNING: Cancelling the stream because of internal error
io.grpc.StatusRuntimeException: INTERNAL: Completed without a response
at io.grpc.Status.asRuntimeException(Status.java:525)
at io.grpc.internal.ServerCallImpl.closeInternal(ServerCallImpl.java:223)
at io.grpc.internal.ServerCallImpl.close(ServerCallImpl.java:213)
at io.grpc.stub.ServerCalls$ServerCallStreamObserverImpl.onCompleted(ServerCalls.java:395)
at org.apache.pinot.query.service.server.QueryServer.cancel(QueryServer.java:185)
at org.apache.pinot.common.proto.PinotQueryWorkerGrpc$MethodHandlers.invoke(PinotQueryWorkerGrpc.java:288)
at io.grpc.stub.ServerCalls$UnaryServerCallHandler$UnaryServerCallListener.onHalfClose(ServerCalls.java:182)
at io.grpc.internal.ServerCallImpl$ServerStreamListenerImpl.halfClosed(ServerCallImpl.java:356)
at io.grpc.internal.ServerImpl$JumpToApplicationThreadServerStreamListener$1HalfClosed.runInContext(ServerImpl.java:861)
at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:133)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1583)