We have received an Error received 'java.net.SocketException: Too many open files' Can someone help?

We are running Jira 4.3.4, standalone installation

Jira was running slow and then hanging for some of our users. This is what we were able to pull off the logs. We restarter Jira to fix the problem to get back up and running. Can you help with what might be causing this?

This was the log file

JIRA Exception
11:26:55 AM: David Armstrong/AGIS: May 4, 2012 11:15:13 AM 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:390)
at java.net.ServerSocket.implAccept(ServerSocket.java:453)
at java.net.ServerSocket.accept(ServerSocket.java:421)
at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:61)
at org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:352)
at java.lang.Thread.run(Thread.java:619)

2 answers

Kernel tuning

(these depends on your OS)

Edit: /etc/security/limits.conf, add lines:

soft nofile 10240
hard nofile 10240

reboot.

done.

Unfortunately, there could be a bunch of causes. For instance, if you’ve greatly increased the default timeout, all the logged-in, un-timed-out users could be consuming resources causing you to hit the open files limit. You could look at your system and see if you’ve done anything to the configuration that would increase the resources needed. Or you could just work around it by increasing the number of open files allowed.

Oh, there’s an article in the Atlassian knowledge base about this: http://confluence.atlassian.com/display/JIRAKB/Loss+of+Functionality+due+to+Too+Many+Open+Files+Error . That might help you.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,300 views 14 20
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot