java.io.IOException: Too many open files #988

Closed
bigbluebutton-issue-import opened this Issue Aug 12, 2015 · 6 comments

Comments

Projects
None yet
3 participants
@bigbluebutton-issue-import

Originally reported on Google Code with ID 233

Red5 stops with "java.io.IOException: Too many open files" on error.log

May be due to RTMPClient. Check-out Red5 mailing list for similar 
exception.

2009-11-02 17:45:43,795 [NioSocketAcceptor-1] WARN  
o.a.m.util.DefaultExceptionMonitor - Unexpected exception.
java.io.IOException: Too many open files
        at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method) 
[na:1.6.0_0]
        at 
sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:163) 
[na:1.6.0_0]
        at 
org.apache.mina.transport.socket.nio.NioSocketAcceptor.accept(NioSocketAcce
ptor.java:217) [mina-core-2.0.0-M6.jar:na]
        at 
org.apache.mina.transport.socket.nio.NioSocketAcceptor.accept(NioSocketAcce
ptor.java:48) [mina-core-2.0.0-M6.jar:na]
        at 
org.apache.mina.core.polling.AbstractPollingIoAcceptor$Acceptor.processHand
les(AbstractPollingIoAcceptor.java:481) [mina-core-2.0.0
-M6.jar:na]
        at 
org.apache.mina.core.polling.AbstractPollingIoAcceptor$Acceptor.run(Abstrac
tPollingIoAcceptor.java:412) [mina-core-2.0.0-M6.jar:na]
        at 
org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java
:64) [mina-core-2.0.0-M6.jar:na]
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1
110) [na:1.6.0_0]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:
603) [na:1.6.0_0]
        at java.lang.Thread.run(Thread.java:636) [na:1.6.0_0]


Reported by richard.alam on 2009-11-02 18:25:35

@bigbluebutton-issue-import

This comment has been minimized.

Show comment
Hide comment
@bigbluebutton-issue-import

bigbluebutton-issue-import Aug 12, 2015

This appears to be linked to use of VoIP in BigBlueButton.

Reported by ffdixon on 2009-11-09 15:41:17

This appears to be linked to use of VoIP in BigBlueButton.

Reported by ffdixon on 2009-11-09 15:41:17

@bigbluebutton-issue-import

This comment has been minimized.

Show comment
Hide comment
@bigbluebutton-issue-import

bigbluebutton-issue-import Aug 12, 2015

Most likely is - with Asterisk, one of the main bottlenecks that limits scaling is
how many open file handles are allowed.  Change the ulimit to allow more (or
unlimited) file handles before starting the applications.  We have done this on over
100 Asterisk servers that handle 20-30 conferences at a time for well over 200 total
attendees on each server.  

More info: http://www.mail-archive.com/asterisk-users@lists.digium.com/msg179451.html

Reported by jeremythomerson on 2009-11-09 22:24:16

Most likely is - with Asterisk, one of the main bottlenecks that limits scaling is
how many open file handles are allowed.  Change the ulimit to allow more (or
unlimited) file handles before starting the applications.  We have done this on over
100 Asterisk servers that handle 20-30 conferences at a time for well over 200 total
attendees on each server.  

More info: http://www.mail-archive.com/asterisk-users@lists.digium.com/msg179451.html

Reported by jeremythomerson on 2009-11-09 22:24:16

@bigbluebutton-issue-import

This comment has been minimized.

Show comment
Hide comment
@bigbluebutton-issue-import

bigbluebutton-issue-import Aug 12, 2015

Yes, this is related to Asterisk.If you run Asterisk + BBB on same server this is 
common.

You can void this by a simple method.
put "ulimit -n 65536" @ /etc/init.d/red5 (before start RED5 server)
e.g
----//-------
### END INIT INFO

set -e 
ulimit -n 65536
----//-------

Reported by madhawa101g on 2009-11-10 04:55:41

Yes, this is related to Asterisk.If you run Asterisk + BBB on same server this is 
common.

You can void this by a simple method.
put "ulimit -n 65536" @ /etc/init.d/red5 (before start RED5 server)
e.g
----//-------
### END INIT INFO

set -e 
ulimit -n 65536
----//-------

Reported by madhawa101g on 2009-11-10 04:55:41

@bigbluebutton-issue-import

This comment has been minimized.

Show comment
Hide comment
@bigbluebutton-issue-import

bigbluebutton-issue-import Aug 12, 2015

Reported by ritzalam on 2009-11-10 18:24:06

  • Labels added: Milestone-Release0.63

Reported by ritzalam on 2009-11-10 18:24:06

  • Labels added: Milestone-Release0.63
@bigbluebutton-issue-import

This comment has been minimized.

Show comment
Hide comment
@bigbluebutton-issue-import

bigbluebutton-issue-import Aug 12, 2015

Reported by ritzalam on 2009-11-11 02:09:05

  • Status changed: Accepted

Reported by ritzalam on 2009-11-11 02:09:05

  • Status changed: Accepted
@bigbluebutton-issue-import

This comment has been minimized.

Show comment
Hide comment
@bigbluebutton-issue-import

bigbluebutton-issue-import Aug 12, 2015

Reported by ritzalam on 2009-12-07 19:23:33

  • Status changed: Fixed

Reported by ritzalam on 2009-12-07 19:23:33

  • Status changed: Fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment