Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I just installed FreeBSD 9 version with GNOME interface. Each time I want to open a folder from root a message box pops up and warns me with this message: Too many open files in system. What is the problem and how to avoid it?

share|improve this question

2 Answers 2

up vote 6 down vote accepted

The problem is that each user has limits. Among these limits, the open file limits the number of resources you can request to the OS.

Everything is a file on UNIX: socket, pipes, actual files, your monitor, etc.

Something is opening too many files. Find out why by using a command like "fstat" or "lsof", it will list all open files. Hopefully you will be able to sort that out and find the process who has been responsible for that. Hunt it down. You can look around "fuser" as well if you want to check if a specific file is opened easily.

Happy hunting.

share|improve this answer

I can give you a good guess... it's probably the search feature in GNOME. Most of the open source search tools have to monitor files for activity. In linux, this is very efficient, but in BSD there is no inotify. They use kqueue which is great except for the fact that it uses up all your file descriptors. You can increase the limit or turn of the search/monitoring features. There are several, and it might be called beagle.

share|improve this answer

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.