Jenkins ircbot leaking OutputThreads

13 views
Skip to first unread message

Luciano Furtado

unread,
Oct 28, 2014, 5:02:07 PM10/28/14
to jenkins...@googlegroups.com
Hi Everybody,


We have a Jenkins instance that connects to a irc server over ipsec, the Jenkins server after running for over a week, ends up with about 300 OutputThreads for the irc-plugin .

we are running on Jenkins Jenkins ver. 1.565.3 with irc plugin 2.25 / CentOS 6.5 / OpenJdk 1.6

The connection to the irc server is bit flaky , so it seems to get disconnected from time to time, our theory is that the OutputThreads are not getting interrupted after the connection is lost and re-established. 

So everytime we reconnect another Outputthread is leaked.


When we take jstack dump  on the jenkins process this is what we see below (I truncated the output to reduce the size of the email), please let me know if any further info is need to throubleshoot this issue:


Thanks in advance,
Luciano


--
"bot283-output" daemon prio=10 tid=0x00007fd518159800 nid=0x7b3 waiting on condition [0x00007fd3d62e1000]
   java.lang.Thread.State: WAITING (parking)
        at sun.misc.Unsafe.park(Native Method)
        - parking to wait for  <0x00000005912d31b0> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
        at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043)
        at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:386)
        at org.pircbotx.OutputThread.run(OutputThread.java:101)

--
"bot282-output" daemon prio=10 tid=0x00007fd518158800 nid=0x7ff0 waiting on condition [0x00007fd3ca6a5000]
   java.lang.Thread.State: WAITING (parking)
        at sun.misc.Unsafe.park(Native Method)
        - parking to wait for  <0x0000000590b18d98> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
        at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043)
        at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:386)
        at org.pircbotx.OutputThread.run(OutputThread.java:101)

--
"bot281-output" daemon prio=10 tid=0x00007fd518157800 nid=0x75c9 waiting on condition [0x00007fd3cebea000]
   java.lang.Thread.State: WAITING (parking)
        at sun.misc.Unsafe.park(Native Method)
        - parking to wait for  <0x0000000590219238> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
        at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043)
        at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:386)
        at org.pircbotx.OutputThread.run(OutputThread.java:101)

--
"bot280-output" daemon prio=10 tid=0x00007fd518156800 nid=0x6f40 waiting on condition [0x00007fd3c9f9e000]
   java.lang.Thread.State: WAITING (parking)
        at sun.misc.Unsafe.park(Native Method)
        - parking to wait for  <0x0000000587ad2da0> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
        at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043)
        at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:386)
        at org.pircbotx.OutputThread.run(OutputThread.java:101)


Christoph Kutzinski

unread,
Oct 28, 2014, 5:17:28 PM10/28/14
to jenkins...@googlegroups.com
Thanks for the info.
Can you open a new JIRA issue against the ircbot and attach the information below?

thanks
Kutzi
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Luciano Rodrigues Furtado

unread,
Oct 28, 2014, 6:50:39 PM10/28/14
to jenkins...@googlegroups.com

Hey Cristoph,


I have opened the ticket as requested JENKINS-25349 - Leaking ircbot OutputThreads.


Please let me know if I can help in any way.


Cheers.

You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/VZlBwTeSqi0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.

Luciano Furtado

unread,
Nov 1, 2014, 7:24:12 AM11/1/14
to jenkins...@googlegroups.com, lrfu...@yahoo.com.br
Hi Cristoph,

I see that a fix was commited , thank you so much.

Do you have any plans for a new release of the irc plugin ?

Best Regards.

Christoph Kutzinski

unread,
Nov 1, 2014, 8:56:44 AM11/1/14
to jenkins...@googlegroups.com
Would be great if you could test the build, I linked to the issue,
before I cut a new release.

Am 01.11.2014 um 12:24 schrieb Luciano Furtado:
> Hi Cristoph,
>
> I see that a fix was commited , thank you so much.
>
> Do you have any plans for a new release of the irc plugin ?
>
> Best Regards.
>
> On Tuesday, October 28, 2014 10:50:39 PM UTC, Luciano Rodrigues Furtado
> wrote:
>
> Hey Cristoph,
>
>
> I have opened the ticket as requested JENKINS-25349 - Leaking ircbot
> OutputThreads <https://issues.jenkins-ci.org/browse/JENKINS-25349>.
>
>
> Please let me know if I can help in any way.
>
>
> Cheers.
>
> On Oct 28, 2014 9:17 PM, "Christoph Kutzinski" <ku...@gmx.de
> <javascript:>> wrote:
>
> Thanks for the info.
> Can you open a new JIRA issue against the ircbot and attach the
> information below?
>
> thanks
> Kutzi
>
> Am 28.10.2014 um 22:02 schrieb Luciano Furtado:
>> Hi Everybody,
>>
>>
>> We have a Jenkins instance that connects to a irc server over
>> ipsec, the Jenkins server after running for over a week, ends
>> up with about 300 OutputThreads for the irc-plugin .
>>
>> we are running on Jenkins Jenkins ver. 1.565.3
>> <http://jenkins-ci.org/> with irc plugin 2.25
>> <https://jnk04n.dev.tripadvisor.com/pluginManager/plugin/ircbot/thirdPartyLicenses> /
>> <javascript:>.
>> For more options, visit https://groups.google.com/d/optout
>> <https://groups.google.com/d/optout>.
>
> --
> You received this message because you are subscribed to a topic
> in the Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/VZlBwTeSqi0/unsubscribe
> <https://groups.google.com/d/topic/jenkinsci-users/VZlBwTeSqi0/unsubscribe>.
> To unsubscribe from this group and all its topics, send an email
> to jenkinsci-use...@googlegroups.com <javascript:>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to jenkinsci-use...@googlegroups.com
> <mailto:jenkinsci-use...@googlegroups.com>.
Reply all
Reply to author
Forward
0 new messages