Jetty
  1. Jetty
  2. JETTY-1441

SocketConnector using 100% CPU

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 7.4.5
    • Fix Version/s: 7.5.2
    • Component/s: None
    • Labels:
    • Environment:
      Linux 2.6.32-25-server x86_64 GNU/Linux Ubuntu 10.04.3 LTS
      java version "1.6.0_20" / Java(TM) SE Runtime Environment (build 1.6.0_20-b02) / Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)
    • Number of attachments :
      1

      Description

      After updating from jetty 6.1.x to jetty 7.4.5 I started to see 100% cpu(or 800% - 8 core machine) every time I try to use org.eclipse.jetty.server.bio.SocketConnector. Following is the config I'm using:

      <New class="org.eclipse.jetty.server.bio.SocketConnector">
      <Set name="host"><SystemProperty name="jetty.host" /></Set>
      <Set name="port"><SystemProperty name="jetty.port" default="8080"/></Set>
      <Set name="maxIdleTime">30000</Set>
      <Set name="Acceptors">2</Set>
      <Set name="statsOn">false</Set>
      <Set name="confidentialPort">8443</Set>
      <Set name="lowResourcesMaxIdleTime">5000</Set>
      </New>

      Changing back to org.eclipse.jetty.server.nio.SelectChannelConnector solves the problem, but I need to use SocketConnector because using SelectChannelConnector I frequently hit the JETTY-937 (I have a lot of mobile users and connections drop frequently, so I think it's the reason that I hit that problem so often).

        Activity

        Hide
        Diego Plentz added a comment -

        running top right now

        Show
        Diego Plentz added a comment - running top right now
        Show
        Diego Plentz added a comment - probably fixed by https://github.com/eclipse/jetty.project/commit/633f3b15886664e116478145a3e0139fc8f89847 or https://github.com/eclipse/jetty.project/commit/d0a2557527ed7d660ee22f10741ec8d245008ede
        Show
        Diego Plentz added a comment - Looks like jetty-7.5.3.v20111011 have more stuff to help prevent this problem... https://github.com/eclipse/jetty.project/compare/jetty-7.5.2.v20111006...jetty-7.5.3.v20111011 mainly these ones: https://github.com/eclipse/jetty.project/commit/ea56eaff005e6b14c3f3464adf95e1e13742df68 https://github.com/eclipse/jetty.project/commit/06f4ada935de096869177cfd60e62a667a14f321 https://github.com/eclipse/jetty.project/commit/3476887f8a1e2281d9ec7ea85a0d3f4dd5017cc8

          People

          • Assignee:
            Unassigned
            Reporter:
            Diego Plentz
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: