note 104230 deleted from function.memory-get-peak-usage by danbrown
| From: | danbrown@php.net | Date: | Thu, 02 Jun 2011 17:57:38 +0000 |
| Subject: | note 104230 deleted from function.memory-get-peak-usage by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-180202@lists.php.net to get a copy of this message | ||
Note Submitter: marinu666 at gmail dot com
----
"The only way that particular script will require a dedicated 7000MB of memory, given our
example, is if all 1000 visitors visited the page at the very same microsecond."
This is not true. The only way a script will require a dedicated 7000MB under these circumstances is
if one call to the same script, which would have to be huge, is executed.
The script could not use up 7000MB of ram if 1000 users all hit it simulatenously, it would however
be 1000 instances of one script at (upto) 7MB. So there would be 1000 instances all using an
individual 7MB. Therefore, these conditions would still not break the 8MB limit of a script.