Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-27059

IRC plug spawns threads & does not release them

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Critical
    • Resolution: Unresolved
    • Component/s: ircbot-plugin
    • Labels:
    • Environment:
    • Similar Issues:

      Description

      Steps to re-create the issue.

      1) setup an irc server.
      2) setup 2 jenkins instances
      3) Install the ircbot 2.25 latest on each server
      4) in global configurations of each server point both servers to the same channel #waldo.
      5) wait approx 5 days
      6) Monitor the server with the error log:
      Caused by: org.pircbotx.exception.NickAlreadyInUseException: Nickname is already in use.

      Eventually the botXX-outputs threads will reach 1024 threads and lock up jenkins server however, the error will just be:
      java.lang.OutOfMemoryError: unable to create new native thread

      The backtrace is useless because it will be cause by whatever thread you started.

            • Use Jconsole and enable jmx on jenkins.war and you can see the botXX-output threads stackup and slowly strangle Jenkins into a grave.

        Attachments

          Activity

          Hide
          kutzi kutzi added a comment -

          I think I might have seen this earlier already. If I remember correctly, this was a bug in the PircBotX library.
          Think I'll eventually need to update to PircBotX 2.0 where the output threads were completely removed, so no thread leaaking anymore.

          Show
          kutzi kutzi added a comment - I think I might have seen this earlier already. If I remember correctly, this was a bug in the PircBotX library. Think I'll eventually need to update to PircBotX 2.0 where the output threads were completely removed, so no thread leaaking anymore.

            People

            • Assignee:
              kutzi kutzi
              Reporter:
              a2tide Ian Itow
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: