LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-22-2002, 01:28 AM   #1
sarin
Member
 
Registered: May 2001
Location: India, Kerala, Thrissur
Distribution: FC 7-10
Posts: 354
Blog Entries: 2

Rep: Reputation: 34
Exclamation Too many open files on system error?!


Hi,
I found that my ypserver was not letting me in. It gave some error about reading libs ( Don't remember correctly. But something like could not load dyn. libs). Morning I found these error messages (6000+ lines!)

Jul 22 08:26:26 kaveri nscd: 904: while accepting connection: Too many open files in system
Jul 22 08:26:28 kaveri portmap[637]: warning: cannot open /etc/hosts.allow: Too many open files in system

Don't know what is going on. Is there a limit to max number of files that can be open at any given time?. If yes how do I overcome that?
--Sarin
 
Old 07-22-2002, 01:57 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
Yes there is a limit of open file descriptors. You can see what it's set to with 'ulimit -a'. And you might be able to change it with 'ulimit -n <number>' but most systems won't allow you to change this value.
But you should try and find out which process is keeping so many open files and if it really should be keeping all of them open or if it's a bug in the program. You can use the command 'lsof' to list which files are being kept open.
 
Old 07-22-2002, 02:40 AM   #3
sarin
Member
 
Registered: May 2001
Location: India, Kerala, Thrissur
Distribution: FC 7-10
Posts: 354
Blog Entries: 2

Original Poster
Rep: Reputation: 34
Thanks, I will try that. But is it possible that somone mounted the files using nfs and kept them open. Where will such open files appear. ( In client or server? ).
--Sarin
 
Old 07-22-2002, 02:51 AM   #4
sarin
Member
 
Registered: May 2001
Location: India, Kerala, Thrissur
Distribution: FC 7-10
Posts: 354
Blog Entries: 2

Original Poster
Rep: Reputation: 34
Ok, I fixed that. But one more doubt. If this is the case any one can crash a system by just keeping a large number of files open?. Isn't this a bug?
--Sarin
 
Old 07-23-2002, 06:49 AM   #5
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
No not really because you can set the amount of open files for each user. So the system won't crash just that user/process won't be able to open anymore files.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error - Disk 3 install...Cannot open certain files Aen Fedora - Installation 1 05-27-2004 09:03 AM
SAMBA: Too many files open causing error valsus Linux - Software 1 04-29-2004 09:45 AM
Too many open files in system ipconfig Linux - Newbie 5 12-16-2003 05:14 AM
Reg Too Many Open Files in System Error manickaraja Linux - General 3 12-01-2003 05:34 AM
Too many open files in system jayakrishnan Linux - General 5 03-28-2003 09:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:42 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration