Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I run the command cat /proc/sys/fs/file-nr and get the results:
5540 0 788448
That middle number being 0 bothers me.
I am running some Oracle applications (BPm, Weblogic, WCI) and it keeps responding with "too many files open" and it hangs the system. Rebooting works for about twelve hours.
ulimit -n is 65536
My guess is the dynamic allocation of new file descriptors is not being done. How can I test this theory, and, more importantly, how can I make that middle number positive?
Bumping is plain stupid because posts with 0 replies will (for two days) be bumped automatically after 24 hours. There are also users who concentrate on posts with 0 replies and they will not find this one.
So you have shot yourself in the foot.
The second column of the result line (being '0' in your case) means that there are no more free allocated file descriptors available, and this conforms to the error statement "too many files open" which hangs the system. The only way to make that middle number positive is by finding the script or application that open files constantly without closing any of them. Most likely some daemon process, because files are closed by the system if the caller application terminates. Maybe try to restart some daemons (quasi terminating them) while monitoring the 'cat /proc/sys/fs/file-nr' output to spot which daemon affects file descriptors the most.
The second column of the result line (being '0' in your case) means that there are no more free allocated file descriptors available, and this conforms to the error statement "too many files open" which hangs the system. The only way to make that middle number positive is by finding the script or application that open files constantly without closing any of them. Most likely some daemon process, because files are closed by the system if the caller application terminates. Maybe try to restart some daemons (quasi terminating them) while monitoring the 'cat /proc/sys/fs/file-nr' output to spot which daemon affects file descriptors the most.
Bumping is plain stupid because posts with 0 replies will (for two days) be bumped automatically after 24 hours. There are also users who concentrate on posts with 0 replies and they will not find this one.
So you have shot yourself in the foot.
AND---at 6PM Pacific time, it is the middle of night in Europe and much of Asia. This means that a large percentage of your potential helpers are asleep.
Patience!!
So I used the information provided to start more of my searching and end my confusion... apparently my version of the kernel will always have that middle number = 0, and is 'nothinig I should worry about'.
Which leaves me at square one...
I believe I may have found a problem, but I am not sure how it relates to anything.
When excuting a Weglogic domain startup, I had done it through VNC Viewer, without putting the process into the background. This is the only thing I run through VNC, and I run it from an xterm window.
When I come back to the window after my main application is unresponsive, I notice a Firefox window is open, trying to access a couple custom .pdf files. The application code has a call to open a new browser on the local user machine with that pdf, but it appears that also on the server itself a browser is opened and prompts the user to either save or open the file.
Could this extremely strange (by my estimatation) behavior be causing the application to get a java Socket.Exception of "too many file open"?
I have exhausted all file descriptor and soft and hard values. Files open is roughly 7000, with process max allowed being 64k files, and system max allowed being 700,000+ I am not hitting any limit, yet the java process thinks there are too many files open.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.