LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 01-09-2004, 12:26 PM   #1
m3kgt
Member
 
Registered: Oct 2003
Location: WA
Distribution: Redhat 3.0ES & Slackware 8.1
Posts: 44

Rep: Reputation: 15
File Handler Limitations in Linux?


I dont know if this is distribution specific or not (my guess is, its not) so I am posting the question here...

Say you wanted to run a web server with 500 domains on it. Each domain getting a fair amount of traffic. The CPU can handle the load, there is plenty of memory (say a gig or so). But I think there will be some problem with file handler limitations. Is this correct?

How would one go about increasing the file handler limitations? What is involved?

I currently have 5 web servers, I would like to consolidate them down into one very powerful machine hosting all the sites, but I am being told this wont work (at least not without some tweaking) due to file handler limitations.

Can someone shed some light on this topic?

As always, thank you.

Joe

P.S. I am running Slackware if it makes a difference?
 
Old 01-09-2004, 12:58 PM   #2
jspenguin
Member
 
Registered: Feb 2003
Location: Wichita, KS
Distribution: Heavily modified Redhat
Posts: 194

Rep: Reputation: 30
Do you mean the maximum number of files opened by a process?
Servers like apache generally fork into several processes, so the number of open files is only limited by kernel memory. However, hosting 500 domains on one machine doesn't sound like a Good Thing. My recommendation is to keep the 5 machines.
And no, it doesn't make a difference that you are running Slackware.
 
Old 01-09-2004, 01:08 PM   #3
m3kgt
Member
 
Registered: Oct 2003
Location: WA
Distribution: Redhat 3.0ES & Slackware 8.1
Posts: 44

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by jspenguin
Do you mean the maximum number of files opened by a process?
Servers like apache generally fork into several processes, so the number of open files is only limited by kernel memory. However, hosting 500 domains on one machine doesn't sound like a Good Thing. My recommendation is to keep the 5 machines.
And no, it doesn't make a difference that you are running Slackware.
Well, that does answer my question.

500 domains is an exageration.... I just picked a large number and rounded it off. But the real number is a lot of domains.

The reason I was thinking about combining the web servers into one is because the load on each server is almost non-existant. I could probably squish all 5 servers into one powerful server and still be well under 50% CPU/Mem usage.

It would save on the power bill, be easier to manage, and easier to implement a disaster recovery system.

having 5 servers is nice though... goes with that whole saying dont put all your eggs in one basket.

I am just tossing around some ideas.

So by default apache will fork into multiple processes and thats how it can get around the max files opened by a process issue? No mods have to be installed or anything special setup?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
SIGSEGV handler (segmentation fauld handler) myp Programming 8 03-08-2011 02:17 PM
File size limitations nifflerX Linux - General 2 08-15-2005 09:32 AM
File limitations of riserfs thllgo Linux - General 2 04-21-2005 10:55 AM
fat32 file size limitations dannyk1 Linux - General 6 11-16-2004 03:48 AM
Samba/NT 4.0 file size limitations? digitalnet Linux - Networking 0 12-20-2001 08:19 AM

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

All times are GMT -5. The time now is 07:18 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