Solved

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

Posted on 2006-06-26
5
228 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
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
setting up tomcat for external access 4 82
phpPgAdmin problem 14 222
apache vhosts on mac not being recognized 5 99
WordPress website error - Unable to access website. 5 69
If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

685 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