You seem to have an awful lot of socket handles there, it may be worth attaching a dump showing what/where they are connecting to. It may be a plugin or something isn’t tidyup properly. I take it that your log files are normal?
Thomas
<?xml version="1.0" encoding="UTF-8"?> <feed xmlns="http://www.w3.org/2005/Atom"><title>Hudson log</title><link type="text/html" href="http://buildmaster-nl/jenkins/" rel="alternate"/><updated>2011-05-17T09:29:25Z</updated><author><name>Jenkins Server</name></author><id>urn:uuid:903deee0-7bfa-11db-9fe1-0800200c9a66</id><entry><title>I/O error in channel srv-nl-crd63</title><link type="text/html" href="http://buildmaster-nl/jenkins/log" rel="alternate"/><id>2795350</id><published>2011-05-17T09:29:25Z</published><updated>2011-05-17T09:29:25Z</updated><content>May 17, 2011 11:29:25 AM hudson.remoting.Channel$ReaderThread run SEVERE: I/O error in channel srv-nl-crd63 java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:185) at java.io.FilterInputStream.read(FilterInputStream.java:133) at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) at java.io.BufferedInputStream.read(BufferedInputStream.java:254) at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2265) at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2558) at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2568) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1314) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:368) at hudson.remoting.Channel$ReaderThread.run(Channel.java:992) </content></entry><entry><title>I/O error in channel CLI channel from /10.0.2.11</title><link type="text/html" href="http://buildmaster-nl/jenkins/log" rel="alternate"/><id>2760607</id><published>2011-05-17T08:56:24Z</published><updated>2011-05-17T08:56:24Z</updated><content>May 17, 2011 10:56:24 AM hudson.remoting.Channel$ReaderThread run SEVERE: I/O error in channel CLI channel from /10.0.2.11 java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:185) at java.io.FilterInputStream.read(FilterInputStream.java:133) at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) at java.io.BufferedInputStream.read(BufferedInputStream.java:254) at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2265) at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2558) at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2568) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1314) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:368) at hudson.remoting.Channel$ReaderThread.run(Channel.java:992) </content></entry><entry><title>I/O error in channel srv-nl-crd62</title><link type="text/html" href="http://buildmaster-nl/jenkins/log" rel="alternate"/><id>2625486</id><published>2011-05-17T06:42:47Z</published><updated>2011-05-17T06:42:47Z</updated><content>May 17, 2011 8:42:47 AM hudson.remoting.Channel$ReaderThread run SEVERE: I/O error in channel srv-nl-crd62 java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:185) at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) at java.io.BufferedInputStream.read(BufferedInputStream.java:254) at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2265) at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2558) at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2568) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1314) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:368) at hudson.remoting.Channel$ReaderThread.run(Channel.java:992) </content></entry></feed>
It's in the logs.
> We have to restart Jenkins several times a week because it gets really
> slow and irresponsive but we haven't had the time to investigate the
> cause. Maybe it's related.
For me it happens after reloading the configuration files (Reload
Configuration from Disk) a few times.
> On 18 May 2011 04:45, dreamtime <angela.j...@gmail.com> wrote:
> > Sorry for my ignorance, but could you please explain where you get the
> > number of open files from?
>
> It's in the logs.
If you're running the master on Linux, you can also check in /proc/<processid>/fd
- R. Tyler Croy
--------------------------------------
Code: http://github.com/rtyler
Chatter: http://identi.ca/agentdero
http://twitter.com/agentdero
Linux tends to have a low limit on open fd's per non-root user. Is
there some equivalent way to check the current number for a user id
instead of a single process?
--
Les Mikesell
lesmi...@gmail.com
That's the current limit. How do you find the number currently open
that relate to that user's limit?
--
Les Mikesell
lesmi...@gmail.com
The limit is per process.Find the pid for your jenkins process (ps or
top might help) and execute:
lsof -p PID | wc -l
root@XXXX:/usr/share/jenkins# lsof -p 8744 | wc -l
715
For ubuntu (or debian) there is a variable in /etc/default/jenkins
# OS LIMITS SETUP
# comment this out to observe /etc/security/limits.conf
# this is on by default because
http://github.com/feniix/jenkins/commit/d13c08ea8f5a3fa730ba174305e6429b74853927
# reported that Ubuntu's PAM configuration doesn't include
pam_limits.so, and as a result the # of file
# descriptors are forced to 1024 regardless of /etc/security/limits.conf
MAXOPENFILES=8192
Regards
Mirko
--
http://illegalstateexception.blogspot.com/
https://github.com/mfriedenhagen/
https://bitbucket.org/mfriedenhagen/
We had Hudson dying in the same fashion (too many files open), on
RedHat (RHEL4).
Our SCM was subversion (1.4) also I think we had a version mis-match
between SVN server and client.
The file handles were being left open by SVN.
By upgrading to jenkins/ubuntu/subversion 1.6 the problem has gone away.
Hope this helps
Tim
--
Tim Pizey - http://pizey.net/~timp
Centre for Genomics and Global Health - http://cggh.org
Is there more information needed to analyze this issue?I have to restart the Jenkins now again to prevent that server from blocking all activities.