Solved

If I put 50,000,000 html files in the root dir,what will happen?

Posted on 2006-06-26
5
229 Views
Last Modified: 2010-08-05
what can happen?
1,The apache will be very slowly.
2,the apache can't work.
3,the apache will work normal.
 thanks.
   
0
Comment
Question by:ymq8328
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 16983058
all depends on which os you are, how they handle that many files. as Apache will only request the file from the OS, the answer has to asked to the OS guys.
I would guess 1)
0
 

Author Comment

by:ymq8328
ID: 16983117
Using red hat linux.
0
 
LVL 43

Expert Comment

by:ravenpl
ID: 16983147
Putting this many fiiles in directory makes it slow in file searching.
Listing directory would be sluggish
Accessing file should work in logaritm shorter time.

Using reiserfs over the ext3 would speed it up - confirmed.
0
 

Author Comment

by:ymq8328
ID: 16983222
what is the most  acceptable file number when using linux and ext3.(I need to access them fast ,at the same time I need put more files in the apache root dir.)
1,000?
10,000?
100,000?
0
 
LVL 43

Accepted Solution

by:
ravenpl earned 100 total points
ID: 16983281
Unfortunatelly it depends on Your RAM(cache) and CPU(especially in case of sorting) and disks speed.
Just do the tests, but I would put the limit somewhere about 10K.
Try creating many files in same dir, check the number where You think the delay is too big.
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Forward apache log to Syslog-NG 7 126
apache and php 3 159
PHP in Apache server 20 106
WAMP server installation, getting error popups, DLLs missing 5 89
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question