When a user browses the home page, does the server generate a process?

Source: Internet
Author: User
This post was last edited by lumengabc on 2013-06-17 11:04:53

Title.
or 10 different IPs simultaneously access the home page of the site, the server will generate 10 processes? 1 process 10 threads?

Who can tell me what kind of situation this is? Or are there related books (concepts such as high concurrent server Max connections thread) recommended?


Reply to discussion (solution)

Right!
CGI-mode servers generate 10 of processes
A server with a modular approach will generate 10 threads

10 Processes N Threads.

Right!
CGI-mode servers generate 10 of processes
A server with a modular approach will generate 10 threads

If 10,000 users (or more) at the same time browse the homepage of the site, generate 10,000 processes, the server is not hanging it?

No 10,000 processes are generated because the server has a maximum simultaneous response limit
Exceeded requests are placed in the queue waiting to be processed

So when you get a lot of traffic, you'll feel slower.

Oh, I get it. Is it possible to understand:
As if Apache were 256 concurrent processes by default. If the number of concurrent users is more, you may want to consider other methods.
(Optimizer processing speed, the fastest return results to the client to end this process, to prepare for the next process access.) Or do you have a server cluster or something? )


Right!
CGI-mode servers generate 10 of processes
A server with a modular approach will generate 10 threads

If 10,000 users (or more) at the same time browse the homepage of the site, generate 10,000 processes, the server is not hanging it?
Apache has a process pool that exceeds the pool limit and other accesses will wait.

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.