The default max file handles in most Linux installs (1024) for Jenkins is 
woefully inadequate.

Java itself will have many open files to libs and jars, jenkins will then have 
the for jobs, users and slaves.

I recall also that the lib used by the fd plugin doesn't count all for 
descriptors and I think I submitted a patch.  It certainly will only get 
descriptors opened after it is hooked up which is after java itself has got may 
handles which can give you a significant difference.

I would up the limit and then run a periodic check on the file handles to check 
that there are no leaks over time. 

On 7 January 2015 20:21:50 GMT+00:00, Sean Last <[email protected]> wrote:
>Yes, restarting jenkins completely clears the open files for the
>jenkins 
>user, even though the jenkins application is unaware of the open files.
>
>On Wednesday, January 7, 2015 3:06:39 PM UTC-5, LesMikesell wrote:
>>
>> On Wed, Jan 7, 2015 at 1:55 PM, Sean Last <[email protected]
><javascript:>> 
>> wrote: 
>> > And I know I could just up the open files limit for the jenkins
>user, 
>> but 
>> > I'd really like to know why this is happening so it doesn't just
>keep 
>> > growing until it's full regardless of where I put the limit. 
>>
>> Off the top of my head, a bug in the JVM you are using sounds likely.
>
>> Have you tried different versions or checked its issues?   And does a
>
>> jenkins restart drop the number significantly compared to after 
>> running a long time? 
>>
>> -- 
>>    Les Mikesell 
>>      [email protected] <javascript:> 
>>
>
>-- 
>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 [email protected].
>To view this discussion on the web visit
>https://groups.google.com/d/msgid/jenkinsci-users/f3ff2545-f1ad-49c7-b586-74a102510127%40googlegroups.com.
>For more options, visit https://groups.google.com/d/optout.

-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/7F76BF8F-791E-4ACF-B29B-37FA5A4CEBAA%40teilo.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to