Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-8885

HttpClient SelectorManager threads run indefinitely causing OOM

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.0, 3.6.0
    • 3.6.2, 4.0.3
    • Transports
    • None
    • Unknown

    Description

      Probably caused by https://issues.apache.org/jira/browse/CXF-8840 .

      Started to notice that when updating from 3.5.x to 3.6.0 that our servers started getting OOM. Noticed from the resulting logs that a lot of threads were active that were in the format 
      HttpClient-<NR>-SelectorManager
      when reverted to 3.5.6 then it did not occur anymore.

       

      Tried to use VirtualVM when debugging it and saw when the thread was started, it never died, basically meaning that it ran indefinitely. OOM happened when there were about over 1000 of these threads.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            dkulp Daniel Kulp
            mreggert96 Cardo Eggert
            Votes:
            4 Vote for this issue
            Watchers:
            16 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment