Apache memory algorithm

Source: Internet
Author: User
For more information about the apache memory algorithm, see. set in ini: memory_limit & nbsp ;=& nbsp; 512 M & nbsp; // maximum memory & nbsp ;=& nbsp; 16 M & nbsp; // & nbsp; for example, the maximum memory of a single page is. p apache memory algorithm
Ask an apache memory algorithm
For example, set in php. ini:

Memory_limit = 512 M // maximum memory
Memory = 16 M // maximum memory per page


For example, there is a. php

 Include (B. php); // or require (B. php); B. php is an empty page
Echo (memory_get_usage (true)/1024). 'KB ';
?>


Print KB. So does apache actually only consume KB of memory?
But actually, does a ps-auxf | sort-nr-k 4 | head-10 php file actually only consume KB in linux? (The returned value is much larger than 784. does memory = 16 M consume 16 MB for a single httpd ?)

In addition, does one include or require file consume two httpd processes?
------ Solution --------------------
Yes!
Apache (or other web servers) only responds to http requests, starts and waits for php to complete.
Apache memory consumption depends on the number of concurrent http requests

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.