java.lang.RuntimeException

java.lang.OutOfMemoryError: Java heap space

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web2

  • via GitHub by biran0079
    ,
  • Stack trace

    • java.lang.RuntimeException: java.lang.OutOfMemoryError: Java heap space at io.grpc.internal.ServerCallImpl.sendMessage(ServerCallImpl.java:164)[grpc-core.jar:0.14.0] at io.grpc.stub.ServerCalls$ServerCallStreamObserverImpl.onNext(ServerCalls.java:279)[grpc-stub.jar:0.14.0] at io.grpc.stub.ServerCalls$1$1.onReady(ServerCalls.java:175)[grpc-stub.jar:0.14.0] at io.grpc.PartialForwardingServerCallListener.onReady(PartialForwardingServerCallListener.java:63)[grpc-core.jar:0.14.0] at io.grpc.ForwardingServerCallListener.onReady(ForwardingServerCallListener.java:38)[grpc-core.jar:0.14.0] at io.grpc.ForwardingServerCallListener$SimpleForwardingServerCallListener.onReady(ForwardingServerCallListener.java:55)[grpc-core.jar:0.14.0] at io.grpc.internal.ServerCallImpl$ServerStreamListenerImpl.onReady(ServerCallImpl.java:283)[grpc-core.jar:0.14.0] at io.grpc.internal.ServerImpl$JumpToApplicationThreadServerStreamListener$4.runInContext(ServerImpl.java:497)[grpc-core.jar:0.14.0] at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:54)[grpc-core.jar:0.14.0] at io.grpc.internal.SerializingExecutor$TaskRunner.run(SerializingExecutor.java:154)[grpc-core.jar:0.14.0] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_60] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_60] at java.lang.Thread.run(Thread.java:745)[na:1.8.0_60] Caused by: java.lang.OutOfMemoryError: Java heap space at io.netty.util.internal.ConcurrentCircularArrayQueue.<init>(ConcurrentCircularArrayQueue.java:79)[netty-all.jar:4.1.0.CR7] at io.netty.util.internal.MpscArrayQueueL1Pad.<init>(MpscArrayQueue.java:243)[netty-all.jar:4.1.0.CR7] at io.netty.util.internal.MpscArrayQueueTailField.<init>(MpscArrayQueue.java:261)[netty-all.jar:4.1.0.CR7] at io.netty.util.internal.MpscArrayQueueMidPad.<init>(MpscArrayQueue.java:278)[netty-all.jar:4.1.0.CR7] at io.netty.util.internal.MpscArrayQueueHeadCacheField.<init>(MpscArrayQueue.java:286)[netty-all.jar:4.1.0.CR7] at io.netty.util.internal.MpscArrayQueueL2Pad.<init>(MpscArrayQueue.java:303)[netty-all.jar:4.1.0.CR7] at io.netty.util.internal.MpscArrayQueueConsumerField.<init>(MpscArrayQueue.java:320)[netty-all.jar:4.1.0.CR7] at io.netty.util.internal.MpscArrayQueue.<init>(MpscArrayQueue.java:49)[netty-all.jar:4.1.0.CR7] at io.netty.util.internal.PlatformDependent.newFixedMpscQueue(PlatformDependent.java:630)[netty-all.jar:4.1.0.CR7] at io.netty.buffer.PoolThreadCache$MemoryRegionCache.<init>(PoolThreadCache.java:373)[netty-all.jar:4.1.0.CR7] at io.netty.buffer.PoolThreadCache$SubPageMemoryRegionCache.<init>(PoolThreadCache.java:340)[netty-all.jar:4.1.0.CR7] at io.netty.buffer.PoolThreadCache.createSubPageCaches(PoolThreadCache.java:135)[netty-all.jar:4.1.0.CR7] at io.netty.buffer.PoolThreadCache.<init>(PoolThreadCache.java:86)[netty-all.jar:4.1.0.CR7] at io.netty.buffer.PooledByteBufAllocator$PoolThreadLocalCache.initialValue(PooledByteBufAllocator.java:352)[netty-all.jar:4.1.0.CR7] at io.netty.buffer.PooledByteBufAllocator$PoolThreadLocalCache.initialValue(PooledByteBufAllocator.java:345)[netty-all.jar:4.1.0.CR7] at io.netty.util.concurrent.FastThreadLocal.initialize(FastThreadLocal.java:155)[netty-all.jar:4.1.0.CR7] at io.netty.util.concurrent.FastThreadLocal.get(FastThreadLocal.java:149)[netty-all.jar:4.1.0.CR7] at io.netty.util.concurrent.FastThreadLocal.get(FastThreadLocal.java:135)[netty-all.jar:4.1.0.CR7] at io.netty.buffer.PooledByteBufAllocator.newDirectBuffer(PooledByteBufAllocator.java:257)[netty-all.jar:4.1.0.CR7] at io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:179)[netty-all.jar:4.1.0.CR7] at io.netty.buffer.AbstractByteBufAllocator.buffer(AbstractByteBufAllocator.java:115)[netty-all.jar:4.1.0.CR7] at io.grpc.netty.NettyWritableBufferAllocator.allocate(NettyWritableBufferAllocator.java:66)[grpc-netty.jar:0.14.0] at io.grpc.internal.MessageFramer.writeKnownLength(MessageFramer.java:188)[grpc-core.jar:0.14.0] at io.grpc.internal.MessageFramer.writeUncompressed(MessageFramer.java:147)[grpc-core.jar:0.14.0] at io.grpc.internal.MessageFramer.writePayload(MessageFramer.java:124)[grpc-core.jar:0.14.0] at io.grpc.internal.AbstractStream.writeMessage(AbstractStream.java:172)[grpc-core.jar:0.14.0] at io.grpc.internal.AbstractServerStream.writeMessage(AbstractServerStream.java:110)[grpc-core.jar:0.14.0] at io.grpc.internal.ServerCallImpl.sendMessage(ServerCallImpl.java:157)[grpc-core.jar:0.14.0]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.