Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

In Darwin Streaming Server 5.5.5 run on Linux.

I am having issues starting multiple playlists with PlaylistBroadcaster. I seem to be hitting a limit at 22 simultaneous playlists. Once I try to launch the 23th, I get the following error.

2009-07-09 09:39:38: FATAL: Out of File Descriptors. 
Set max connections lower and check for competing usage from other processes. 
Exiting.

And all PlaylistBroadcaster processes gets killed.

# cat /proc/sys/fs/file-max
386132

# ulimit -n
1024
share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

What do you get from ulimit -n? That should give you your "Maximum number of open file descriptors" per process.

Edit: You can see how many file descriptors a process is using by following the instructions here and here.

Resource limits can be set for users at login time by editing /etc/security/limits.conf. See man limits.conf and man pam_limits for details.

share|improve this answer
    
[root@darwin ~]# ulimit -n Returns: 1024 –  Johan Carlsson Jul 9 '09 at 9:29
    
Anything else I should add to the problem description? –  Johan Carlsson Jul 9 '09 at 9:32
    
Try 'ulimit -n 2048' before starting the server from the same shell (it affects the current shell, and is inherited by any processes it starts). You may need to add it to the server's start script. –  pgs Jul 9 '09 at 10:52
    
Also, this shown how to see how many file descriptors are used by a process: cyberciti.biz/tips/linux-procfs-file-descriptors.html –  pgs Jul 9 '09 at 10:54
    
There's also: netadmintools.com/art295.html –  pgs Jul 9 '09 at 10:56
show 3 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.