Discussion:
[jboss-user] [jBPM] - Getting ***java.net.SocketException: Too many open files*** when running JBPM 5.2 in linux OS
uvijayreddy657
2012-02-07 10:03:29 UTC
Permalink
uvijayreddy657 [https://community.jboss.org/people/uvijayreddy657] created the discussion

"Getting ***java.net.SocketException: Too many open files*** when running JBPM 5.2 in linux OS"

To view the discussion, visit: https://community.jboss.org/message/714888#714888

--------------------------------------------------------------
2012-02-07 13:53:48,754 ERROR [org.apache.tomcat.util.net.JIoEndpoint] (http-0.0.0.0-8080-Acceptor-0) 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:462)
        at java.net.ServerSocket.accept(ServerSocket.java:430)
        at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:61)
        at org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:314)
        at java.lang.Thread.run(Thread.java:662)
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/714888#714888]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Márton Steierlein
2012-03-20 11:47:27 UTC
Permalink
Márton Steierlein [https://community.jboss.org/people/stmarci] created the discussion

"Re: Getting ***java.net.SocketException: Too many open files*** when running JBPM 5.2 in linux OS"

To view the discussion, visit: https://community.jboss.org/message/725025#725025

--------------------------------------------------------------
I also encounter the same problem. The jbpm.console.properties file is opened several(hundred - in my case) times. I'm using the rest interface /new_instance for creating processes.

Here is the output of lsof in linux on my test machine:

java      20815      root  966r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root  967r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root  968r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root  969r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root  970r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root  971r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root  972r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root  973r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root  974r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root  975r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root  976r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root  977r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root  978r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root  979r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root  980r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root  981r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root  982r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root  983r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root  984r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root  985r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root  986r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root  987r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root  988r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root  989r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root  990r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root  991r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root  992r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root  993r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root  994r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root  995r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root  996r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root  997r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root  998r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root  999r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root 1000r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root 1001r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root 1002r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root 1003r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root 1004r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root 1005r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root 1006r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes/jbpm.console.properties
java      20815      root 1007r      REG               8,17      363    2425414 /opt/jbpm/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp93689ccb9642ad01/jbpm-gwt-console-server.war-708c889cebe9e63b/WEB-INF/classes
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/725025#725025]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Mauricio Salatino
2012-03-20 11:50:27 UTC
Permalink
Mauricio Salatino [https://community.jboss.org/people/salaboy21] created the discussion

"Re: Getting ***java.net.SocketException: Too many open files*** when running JBPM 5.2 in linux OS"

To view the discussion, visit: https://community.jboss.org/message/725029#725029

--------------------------------------------------------------
Yes that a known issue with Mina and Linux.
You should increate the number of files that can be opened in your OS.

http://mina.apache.org/faq.html#FAQ-Myserverfailswithjava.net.SocketException%253AToomanyfilesopen http://mina.apache.org/faq.html#FAQ-Myserverfailswithjava.net.SocketException%253AToomanyfilesopen
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/725029#725029]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Seyed Mohammad Hosein Jamali
2012-05-26 07:02:03 UTC
Permalink
Seyed Mohammad Hosein Jamali [https://community.jboss.org/people/hosein] created the discussion

"Re: Getting ***java.net.SocketException: Too many open files*** when running JBPM 5.2 in linux OS"

To view the discussion, visit: https://community.jboss.org/message/738085#738085

--------------------------------------------------------------
Is this problem resolved in jBPM 5.3 ?
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/738085#738085]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Mauricio Salatino
2012-05-26 11:21:44 UTC
Permalink
Mauricio Salatino [https://community.jboss.org/people/salaboy21] created the discussion

"Re: Getting ***java.net.SocketException: Too many open files*** when running JBPM 5.2 in linux OS"

To view the discussion, visit: https://community.jboss.org/message/738096#738096

--------------------------------------------------------------
Yes it should be fixed in 5.3, if you still have troubles please create a jira issue for 5.3
Cheers
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/738096#738096]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
amistry007
2013-05-21 08:59:47 UTC
Permalink
amistry007 [https://community.jboss.org/people/amistry007] created the discussion

"Re: Getting ***java.net.SocketException: Too many open files*** when running JBPM 5.2 in linux OS"

To view the discussion, visit: https://community.jboss.org/message/818592#818592

--------------------------------------------------------------
Hi Mauricio, what was the actual fix that was done to the codebase (class/method) to resolve this issue. We are uisng JBPM 5.2 and at present moment have no capacity to upgrade to 5.3, so would like to see if we can patch our 5.2 release with this fix. Thanks, Ash.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/818592#818592]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Seyed Mohammad Hosein Jamali
2012-05-26 07:07:46 UTC
Permalink
Seyed Mohammad Hosein Jamali [https://community.jboss.org/people/hosein] created the discussion

"Re: Getting ***java.net.SocketException: Too many open files*** when running JBPM 5.2 in linux OS"

To view the discussion, visit: https://community.jboss.org/message/738086#738086

--------------------------------------------------------------
I set echo 30 > /proc/sys/net/ipv4/tcp_fin_timeout and restart networking service and then increase *Increase The Maximum Number Of Open Files / File Descriptors (FD) to 1000000 but the problem is not resolved.*
If I decrease tcp_fin_timeout to 10 secondes *Too many open files* happens more than the time tcp_fin_timeout is equal to 30 or 60 seconds .

any help appreciated.
S.M.H.Jamali
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/738086#738086]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Jonathan Albornoz
2013-05-23 20:12:01 UTC
Permalink
Jonathan Albornoz [https://community.jboss.org/people/betoflint] created the discussion

"Re: Getting ***java.net.SocketException: Too many open files*** when running JBPM 5.2 in linux OS"

To view the discussion, visit: https://community.jboss.org/message/819173#819173

--------------------------------------------------------------
I have jbpm 5.3 on linux and this solve with ulimit -n 10000 on my linux server.
Cheers!
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/819173#819173]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
amistry007
2013-05-24 06:46:26 UTC
Permalink
amistry007 [https://community.jboss.org/people/amistry007] created the discussion

"Re: Getting ***java.net.SocketException: Too many open files*** when running JBPM 5.2 in linux OS"

To view the discussion, visit: https://community.jboss.org/message/819248#819248

--------------------------------------------------------------
Jonathan, this would just delay the issue. As over time I can see these handles increasing until our application is restarted.

Mauricio, what was the actual fix that was done to the codebase?

--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/819248#819248]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Loading...