LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 07-09-2009, 08:07 PM   #1
blumdude
LQ Newbie
 
Registered: Jul 2009
Posts: 3

Rep: Reputation: 0
Linux File Descriptor is 0


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?

Linux version: RedHat AS 4
 
Old 07-10-2009, 01:11 AM   #2
blumdude
LQ Newbie
 
Registered: Jul 2009
Posts: 3

Original Poster
Rep: Reputation: 0
bump

bump
 
Old 07-10-2009, 03:10 AM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
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.
 
Old 07-10-2009, 05:14 AM   #4
jeromeNP7
Member
 
Registered: Jun 2009
Posts: 101

Rep: Reputation: 19
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.

A good summary on 'cat /proc/sys/fs/file-nr' is available at http://www.netadmintools.com/art295.html.

Linux

Last edited by jeromeNP7; 09-04-2009 at 09:12 PM.
 
Old 07-10-2009, 06:37 AM   #5
LilyHan
LQ Newbie
 
Registered: Jul 2009
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by jeromeNP7 View Post
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.

A good summary on 'cat /proc/sys/fs/file-nr' is available at http://www.netadmintools.com/art295.html.
http://www.linuxinsight.com/proc_sys_fs_file_nr.html
 
Old 07-10-2009, 07:10 AM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by Wim Sturkenboom View Post
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!!
 
Old 07-10-2009, 02:22 PM   #7
blumdude
LQ Newbie
 
Registered: Jul 2009
Posts: 3

Original Poster
Rep: Reputation: 0
thanks

First post here, so sorry for the manual bump...

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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Too many file open - How can we define Max limit of file descriptor janeshb Linux - Server 11 09-29-2009 10:41 AM
Deleted log file - how to get back via file descriptor and keep alive? prollocks Linux - General 1 05-29-2009 09:08 AM
Linux automatisation and File descriptor left open Pingu700 Linux - Server 4 06-12-2007 08:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration