PHPmemory_limit ???? Although memory_limit can adjust the memory size, if a php script contains a large DB result set, an array, an object, or many result sets, if the objects that occupy resources are not released in time, the PHP memory_limit problem may occur during the execution of the script.
???? Although memory_limit can adjust the memory size, if a php script contains a large DB result set, an array, an object, or many result sets, if these resource-consuming objects are not released in time, they may appear in the execution process after the script.Allowed memory size? Xxx bytes exhausted? Xxx: xxx (tried to allocate xxx bytes) problem, so in this case, we still need to release the memory unset ($ xx) in time, especially some cli php programs.
?
PHP vesion> = V5.2
Memory_get_usage (): http://php.chinaunix.net/manual/en/function.memory-get-usage.php
Memory_get_peak_usage (): http://php.chinaunix.net/manual/en/function.memory-get-peak-usage.php
?