Jetty
  1. Jetty
  2. JETTY-1342

Acceptor is dead with lot's of Broken pipe exceptions in error log

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.1.22, 6.1.25
    • Fix Version/s: 6.1.27
    • Component/s: NIO
    • Labels:
      None
    • Environment:
      Linux 2.6.26-2-amd64 #1 SMP Thu Nov 25 04:30:55 UTC 2010 x86_64 GNU/Linux, Debian-5, 4 core CPU in KVM
    • Number of attachments :
      0

      Description

      Jetty6 handles about 13 000 connections, 1000 reqs/per sec, 2 acceptors.

      Sometime it shows Broken pipe exception in error log. After that acceptor seems to be dead. Exception in logged many times (huge logs up to 30gb and more). The only way to remove bug is to restart jetty.

      java.io.IOException: Broken pipe
      at sun.nio.ch.EPollArrayWrapper.interrupt(Native Method)
      at sun.nio.ch.EPollArrayWrapper.interrupt(EPollArrayWrapper.java:256)
      at sun.nio.ch.EPollSelectorImpl.wakeup(EPollSelectorImpl.java:175)
      at org.mortbay.io.nio.SelectorManager$SelectSet.wakeup(SelectorManager.java:831)
      at org.mortbay.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:709)
      at org.mortbay.io.nio.SelectorManager.doSelect(SelectorManager.java:192)
      at org.mortbay.jetty.nio.SelectChannelConnector.accept(SelectChannelConnector.java:124)
      at org.mortbay.jetty.AbstractConnector$Acceptor.run(AbstractConnector.java:708)
      at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)

        Activity

        Hide
        Greg Wilkins added a comment -

        I have raised a bug on the JVM for this:

        http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7042542

        Show
        Greg Wilkins added a comment - I have raised a bug on the JVM for this: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7042542
        Hide
        Viktor Kuzmin added a comment -

        One little note: we have migrated to jetty 7 and we have no more such issue...

        Show
        Viktor Kuzmin added a comment - One little note: we have migrated to jetty 7 and we have no more such issue...
        Hide
        Thomas Graves added a comment -

        Does anyone know if there is a fix for this that could be put into Jetty 6?

        Show
        Thomas Graves added a comment - Does anyone know if there is a fix for this that could be put into Jetty 6?
        Hide
        Greg Wilkins added a comment -

        I don't know for sure if it is a fix, but I've committed some defensive code to jetty-6 trunk. If anybody that suffers from this bug could try it out and confirm that it works, then I would do a maintenance release of jetty-6

        Show
        Greg Wilkins added a comment - I don't know for sure if it is a fix, but I've committed some defensive code to jetty-6 trunk. If anybody that suffers from this bug could try it out and confirm that it works, then I would do a maintenance release of jetty-6
        Hide
        Jan Bartel added a comment -

        As no-one has commented since May, I'm assuming that Greg's fixes in 6.1 trunk are OK. If this is not the case, then please reopen this issue, providing stack traces etc and we will take another look at it, hopefully before 6.1.27 goes out the door.

        Jan

        Show
        Jan Bartel added a comment - As no-one has commented since May, I'm assuming that Greg's fixes in 6.1 trunk are OK. If this is not the case, then please reopen this issue, providing stack traces etc and we will take another look at it, hopefully before 6.1.27 goes out the door. Jan

          People

          • Assignee:
            Greg Wilkins
            Reporter:
            Viktor Kuzmin
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: