note 104230 added to function.memory-get-peak-usage
| From: | marinu666 at gmail dot com | Date: | Thu, 02 Jun 2011 11:08:31 +0000 |
| Subject: | note 104230 added to function.memory-get-peak-usage | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-180186@lists.php.net to get a copy of this message | ||
"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.
----
Server IP: 69.147.83.197
Probable Submitter: 144.32.7.157
----
Manual Page -- http://www.php.net/manual/en/function.memory-get-peak-usage.php
Edit -- https://master.php.net/note/edit/104230
Del: integrated -- https://master.php.net/note/delete/104230/integrated
Del: useless -- https://master.php.net/note/delete/104230/useless
Del: bad code -- https://master.php.net/note/delete/104230/bad+code
Del: spam -- https://master.php.net/note/delete/104230/spam
Del: non-english -- https://master.php.net/note/delete/104230/non-english
Del: in docs -- https://master.php.net/note/delete/104230/in+docs
Del: other reasons-- https://master.php.net/note/delete/104230
Reject -- https://master.php.net/note/reject/104230
Search -- https://master.php.net/manage/user-notes.php