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