Set limit on number of threads

107 views
Skip to first unread message

Justinas Urbanavicius

unread,
Aug 12, 2013, 2:04:07 AM8/12/13
to jenkins...@googlegroups.com
Hi,

I was wondering, if there is a way to limit the number of threads that jenkins uses, at start-up i see that there are ~28 threads running jenkins.war, and they use a lot of memory.
Don't know why there should be a need for that much threads

Platform Linux debian x64
Java version "1.6.0_27"
OpenJDK Runtime Environment (IcedTea6 1.12.6) (6b27-1.12.6-1~deb7u1)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
Jenkins v1.526

any help or info would be appreciated
jenkins.png

Daniel Beck

unread,
Aug 12, 2013, 2:14:41 AM8/12/13
to jenkins...@googlegroups.com
Check out http://yourjenkins/threadDump -- the threads mostly have nice names that explain what they're for.

Maybe you have some success changing --handlerCountStartup if you're using winstone (http://winstone.sourceforge.net/#commandLine) to reduce the number of initial request handlers.
> --
> 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/groups/opt_out.
>
>
> <jenkins.png>

Andrew Melo

unread,
Aug 12, 2013, 2:17:46 AM8/12/13
to jenkins...@googlegroups.com
Hello,

Under linux, each thread is not individually using the full amount of
memory that shows up in ps or top. There are a significant number of
shared memory pages involved, so the total memory usage isn't simply
sum( RSS_thread1, RSS_thread2 ... RSS_threadN )

HTH
Andrew
> --
> 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/groups/opt_out.
>
>



--
--
Andrew Melo

Justinas Urbanavicius

unread,
Aug 12, 2013, 2:22:38 AM8/12/13
to jenkins...@googlegroups.com
thanks threadDump was very helpfull, it seems they are all needed :)



--
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/rlIEAZkBvP4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.





--
Justinas
Reply all
Reply to author
Forward
0 new messages