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

IRC plug spawns threads & does not release them

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • ircbot-plugin

      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.

          [JENKINS-27059] IRC plug spawns threads & does not release them

          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.

          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.

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

              Created:
              Updated: