FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Large volumes of output from "docker exec" trigger out of memory error · Issue #531 · docker-java/docker-java · GitHub

Large volumes of output from "docker exec" trigger out of memory error #531

Closed

Description

I ran a command via the API call for docker exec. It produced several GB of output on stderr. This resulted in the following:

java.lang.OutOfMemoryError: Requested array size exceeds VM limit
        at io.netty.buffer.UnpooledHeapByteBuf.capacity(UnpooledHeapByteBuf.java:115)
        at io.netty.buffer.AbstractByteBuf.ensureWritable0(AbstractByteBuf.java:270)
        at io.netty.buffer.AbstractByteBuf.ensureWritable(AbstractByteBuf.java:251)
        at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1023)
        at com.github.dockerjava.netty.handler.FramedResponseStreamHandler.channelRead0(FramedResponseStreamHandler.java:48)
        at com.github.dockerjava.netty.handler.FramedResponseStreamHandler.channelRead0(FramedResponseStreamHandler.java:23)
        at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
        at io.netty.channel.ChannelHandlerInvokerUtil.invokeChannelReadNow(ChannelHandlerInvokerUtil.java:83)
        at io.netty.channel.DefaultChannelHandlerInvoker.invokeChannelRead(DefaultChannelHandlerInvoker.java:154)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:354)
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:145)
        at io.netty.handler.logging.LoggingHandler.channelRead(LoggingHandler.java:233)
        at io.netty.channel.ChannelHandlerInvokerUtil.invokeChannelReadNow(ChannelHandlerInvokerUtil.java:83)
        at io.netty.channel.DefaultChannelHandlerInvoker.invokeChannelRead(DefaultChannelHandlerInvoker.java:154)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:354)
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:145)
        at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:1078)
        at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:125)
        at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:510)
        at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:467)
        at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:381)
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:353)
        at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:742)
        at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
        at java.lang.Thread.run(Thread.java:745)

Activity

  1. KostyaSha commented on Mar 30, 2016

    Member

    test examples...

  2. marcuslinke commented on Mar 30, 2016

    Contributor
  3. added this to the 3.0.0-RC4 milestone on Mar 30, 2016
  4. KostyaSha commented on Mar 30, 2016

    Member

    That what i also thought.

  5. davidtnorth commented on Mar 31, 2016

    Author

    I'll try and come up with a minimal reproduction; shouldn't be hard to do something involving "cat" and /dev/zero

  6. added a commit that references this issue on Mar 31, 2016
  7. marcuslinke commented on Mar 31, 2016

    Contributor

    @davidtnorth Could you build docker-java from branch issue-531 and test if the fix solves the issue for you please?

  8. added a commit that references this issue on Apr 8, 2016
  9. marcuslinke commented on Apr 8, 2016

    Contributor

    @davidtnorth Could you test with latest 3.0.0-SNAPSHOT please?

  10. KostyaSha commented on Apr 8, 2016

    Member

    @marcuslinke do we push master to snapshots?

  11. marcuslinke commented on Apr 8, 2016

    Contributor

    @KostyaSha I think so. We call https://github.com/docker-java/docker-java/blob/master/travis-after-success.sh after travis successfully built the project. There is a mvn deploy called.

  12. marcuslinke commented on Apr 8, 2016

    Contributor
  13. added 2 commits that reference this issue on Aug 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL