When a user browses the homepage of a website, does the server generate a process?

Source: Internet
Author: User
When a user browses the homepage of a website, does the server generate a process? This post was last edited by lumengabc at 11:04:53

As the question.
Or when 10 different IP addresses access the homepage at the same time, the server will generate 10 processes? 1. what are 10 threads in a process?

Who can tell me what the situation is? Or do you have any related books (high-concurrency server, maximum number of connections, threads, and other concepts) recommended?


Reply to discussion (solution)

Yes!
The cgi server generates 10 processes.
The module-based server generates 10 threads

10 processes and N threads.

Yes!
The cgi server generates 10 processes.
The module-based server generates 10 threads

If 10 thousand users (or more) browse the homepage of the website simultaneously and generate 10 thousand processes, will the server be suspended?

No 10 thousand processes will be generated, because the server has a maximum simultaneous response limit
Requests that exceed the limit will be placed in the queue for processing.

So when the traffic volume is large, you will feel slower.

Oh, I understand. Can it be understood as follows:
It seems that APACHE is 256 concurrent processes by default. If there are more concurrent users, you may need to consider other methods.
(Optimize the processing speed of the program and return the fastest result to the client to end the process and prepare for the next process access. Or a server cluster or something ?)


Yes!
The cgi server generates 10 processes.
The module-based server generates 10 threads

If 10 thousand users (or more) browse the homepage of the website simultaneously and generate 10 thousand processes, will the server be suspended?
Apache has a process pool and exceeds the pool limit. other accesses will wait.

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.