Uploaded image for project: 'controller'
  1. controller
  2. CONTROLLER-1983

Akka artery fails with java.lang.OutOfMemoryError: Direct buffer memory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: High High
    • 5.0.0
    • 4.0.0
    • None

      It is impossible to run cluster node on VM with less than 6GiB RAM.

      When there is less memory we get:

      2021-06-08T16:12:16,816 | ERROR | opendaylight-cluster-data-akka.actor.default-dispatcher-6 | ActorSystemImpl | 203 - org.opendaylight.controller.repackaged-akka - 4.0.0.SNAPSHOT | Uncaught error from thread [opendaylight-cluster-data-akka.remote.default-remote-dispatcher-7]: Direct buffer memory, shutting down JVM since 'akka.jvm-exit-on-fatal-error' is enabled for ActorSystem[opendaylight-cluster-data]
       java.lang.OutOfMemoryError: Direct buffer memory
       at java.nio.Bits.reserveMemory(Bits.java:175) ~[?:?]
       at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:118) ~[?:?]
       at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:317) ~[?:?]
       at akka.remote.artery.EnvelopeBufferPool.acquire(EnvelopeBufferPool.scala:34) ~[bundleFile:?]
       at akka.remote.artery.Encoder$$anon$1.onPush(Codecs.scala:117) ~[bundleFile:?]
       at akka.stream.impl.fusing.GraphInterpreter.processPush(GraphInterpreter.scala:541) ~[bundleFile:?]
       at akka.stream.impl.fusing.GraphInterpreter.processEvent(GraphInterpreter.scala:495) ~[bundleFile:?]
       at akka.stream.impl.fusing.GraphInterpreter.execute(GraphInterpreter.scala:390) ~[bundleFile:?]
       at akka.stream.impl.fusing.GraphInterpreterShell.runBatch(ActorGraphInterpreter.scala:625) ~[bundleFile:?]
       at akka.stream.impl.fusing.GraphInterpreterShell$AsyncInput.execute(ActorGraphInterpreter.scala:502) ~[bundleFile:?]
       at akka.stream.impl.fusing.GraphInterpreterShell.processEvent(ActorGraphInterpreter.scala:600) ~[bundleFile:?]
       at akka.stream.impl.fusing.ActorGraphInterpreter.akka$stream$impl$fusing$ActorGraphInterpreter$$processEvent(ActorGraphInterpreter.scala:773) ~[bundleFile:?]
       at akka.stream.impl.fusing.ActorGraphInterpreter.akka$stream$impl$fusing$ActorGraphInterpreter$$shortCircuitBatch(ActorGraphInterpreter.scala:762) ~[bundleFile:?]
       at akka.stream.impl.fusing.ActorGraphInterpreter.preStart(ActorGraphInterpreter.scala:753) ~[bundleFile:?]
       at akka.actor.Actor.aroundPreStart(Actor.scala:548) ~[bundleFile:?]
       at akka.actor.Actor.aroundPreStart$(Actor.scala:548) ~[bundleFile:?]
       at akka.stream.impl.fusing.ActorGraphInterpreter.aroundPreStart(ActorGraphInterpreter.scala:691) ~[bundleFile:?]
       at akka.actor.ActorCell.create(ActorCell.scala:641) ~[bundleFile:?]
       at akka.actor.ActorCell.invokeAll$1(ActorCell.scala:513) [bundleFile:?]
       at akka.actor.ActorCell.systemInvoke(ActorCell.scala:535) [bundleFile:?]
       at akka.dispatch.Mailbox.processAllSystemMessages(Mailbox.scala:295) [bundleFile:?]
       at akka.dispatch.Mailbox.run(Mailbox.scala:230) [bundleFile:?]
       at akka.dispatch.Mailbox.exec(Mailbox.scala:243) [bundleFile:?]
       at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) [?:?]
       at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020) [?:?]
       at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656) [?:?]
       at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594) [?:?]
       at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) [?:?]
      

       

            rovarga Robert Varga
            ivanhrasko Ivan Hrasko
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: