Confluence log error - Socket accept failed - Too many open files

I recently upgraded a copy of our Confluence 3.2.1 and upgraded to 4.1.6. This morning I installed the Plugin License Manager (plugin) and the Essentials Plugin Pack (from Adaptavisit) + licensed it.

I am now seeing the below message in our catalina.out file. I have bounced Confluence a few times, but still seeing these repeatedly. Is this a configuration parameter in my setenv.sh that needs to be tweaked, or perhaps a Linux issue (we are on RHEL 5.7). I can not see any errors in /var/log to show it is an o/s issue. Any suggestions appreciated.

12/03/2012 12:18:11 PM org.apache.tomcat.util.net.JIoEndpoint$Acceptor run
SEVERE: Socket accept failed
java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:408)
at java.net.ServerSocket.implAccept(ServerSocket.java:462)
at com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:261)
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket(JSSESocketFactory.java:178)
at org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:352)
at java.lang.Thread.run(Thread.java:662)

6 answers

1 accepted

This widget could not be displayed.

Actually this error could be a bunch of errors, but please check this KB that may help you:

https://confluence.atlassian.com/display/JIRAKB/Loss+of+Functionality+due+to+Too+Many+Open+Files+Error

This widget could not be displayed.
David Simpson Community Champion Mar 13, 2012

Is that the full stack trace? Or are you missing soem of it?

This widget could not be displayed.

No, unfortunately that is all there is.

This widget could not be displayed.

No, unfortunately that is all there is.

This widget could not be displayed.

You can check how many files are opened with lsof, and tweak your ulimit accordingly.

This widget could not be displayed.

We experience exact this issue after having upgraded from Confluence 4.3 to 5.1.3. No real strange things to see with lsof, ulimit is unlimited. maximum allowed open files is 800k (and this limit doesn't seem to be reached).

When this happens, then Confluence seems 'hanging'.

Solution not (yet) found... Idea's are welcomed...
Maybe this is a solution?

Andrei [errno] Community Champion May 12, 2013

have you tried to update a number of open files per process? (bump it up from 1024)

Janet Albion Atlassian Team Oct 09, 2013

you might want to check what is the size of the maxThread in your tomcat's server.xml

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Tuesday in Confluence

Add-on evaluation with confluence templates

Atlassian market place contains number of Apps/Addons which improves the capability of out of the box Atlassian products. It is good to follow a plugin evaluation process before install add-ons. So t...

163 views 12 7
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you