LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 11-17-2009, 05:20 AM   #1
thomas2004ch
Member
 
Registered: Aug 2009
Posts: 539

Rep: Reputation: 33
How to determin the number of 'Open Files'?


The default open file number is 1024. In many cases one has to increase it. But how to determin which number is the suitable one?

Has this parameter relationship to other parameters?

Last edited by thomas2004ch; 11-17-2009 at 05:33 AM.
 
Old 11-17-2009, 05:39 AM   #2
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
The number of open files you should set depends entirely on what you are using the system to do.

Oracle (for Database Servers) for example has it's own set of recommended minimum settings for open files (amongst other things).

Don't forget that in Unix/Linux "everything is a file"
 
Old 11-17-2009, 05:45 AM   #3
thomas2004ch
Member
 
Registered: Aug 2009
Posts: 539

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by Disillusionist View Post
The number of open files you should set depends entirely on what you are using the system to do.
Your answer is quite abstract.

Somewhat in detail?

Our Apache-Http-WebServer is installed on LINUX. It receive everyday hundred-thaudsends of requests. Sometimes I see in the log files there are error messages such like "Cannot open TEMP file '/tmp/_wl_proxy". I think this problem maybe have to do with the number of 'open files'. But I don't know what a number should I take.
 
Old 11-17-2009, 05:22 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 18,238

Rep: Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712
When you get that msg, it should also say why it can't open the file. Need to know what its complaining about instead of guessing.
 
Old 11-18-2009, 02:54 AM   #5
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Well, you could start by using lsof to list open files in various conditions and adopt a number that seems to have a sufficient margin.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to open a port number in solaris UltraSoul Solaris / OpenSolaris 3 07-25-2005 04:58 PM
Number of Open Files rjapenga Linux - General 2 04-14-2005 01:01 AM
[Vmware]Failed to determin language-specific keyboard mapping. NoThing Linux - Software 1 10-13-2004 02:51 AM
how do i determin if my linux box needs ram nazzymac Linux - Hardware 2 10-29-2003 10:50 AM
Large number of open ports RefriedBean Linux - Security 3 07-05-2002 11:34 PM

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

All times are GMT -5. The time now is 03:08 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
Open Source Consulting | Domain Registration