Doc #71353 [Com]: Missing documentation about opcache.mmap_base
Edit report at https://bugs.php.net/bug.php?id=71353&edit=1
ID: 71353
Comment by: mattficken@php.net
Reported by: brjann at gmail dot com
Summary: Missing documentation about opcache.mmap_base
Status: Open
Type: Documentation Problem
Package: opcache
Operating System: Windows Server 2008 R2
PHP Version: 7.0.2
Block user comment: N
Private report: N
New Comment:
Hmm...
What extensions are you using? just builtin extensions/DLLs or PECL?
What are the opcache.* INI directives you are using?
Which PHP build are you using (fe PHP-7.0.0-NTS-X64-VC14)? (the name of the .zip file you downloaded
from windows.php.net)
For those 15/7000 page loads, was that load generated quickly within a few minutes, or did that take
longer(hours, days)?
What is the value for the PHP_FCGI_MAX_REQUESTS setting?
That determines how many requests a PHP process will handle before its replaced/recycled.
Previous Comments:
------------------------------------------------------------------------
[2016-01-14 15:53:06] brjann at gmail dot com
Thank you for the response.
The error did not occur at startup but happened intermittently, about 15 times in 7000 page loads.
They seemed somewhat clustered in time but still several minutes apart.
Since I set the opcache.mmap_base = 0x20000000 (a week ago) there have been no more OpCache crashes
with error code 487 in the Event Viewer.
When googling Opcache error 487, there are two suggestions to change the mmap_base
https://github.com/zendtech/ZendOptimizerPlus/issues/167
https://bugs.php.net/bug.php?id=64926&edit=1
Best wishes,
Brjánn Ljótsson
------------------------------------------------------------------------
[2016-01-14 10:38:53] mattficken@php.net
To clarify, you have a PHP process that exits immediately on startup? or sometime later? With
0xFFFFFFFE?
Do you have several processes exiting at about the same time?
Opcache.mmap_base directive is to deal with an issue we fixed in 7.0.x where PHP exits immediately
on startup with 0xC000005.
I want to be sure that issue hasn't reappeared.
Since that issue is fixed, we don't need opcache.mmap_base directive documentation.
But since you asked, opcache.mmap_base directive is Memory Address that needs to be free in all the
php processes using opcache.
Your issue sounds like a separate issue from what opcache.mmap_base directive is for helping with...
------------------------------------------------------------------------
[2016-01-12 18:39:00] brjann at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/opcache.configuration
---
The documentation about opcache.mmap_base runtime configuration is insufficient and it is difficult
to find other sources on the web.
I've had repeated and intermittent problems with Server Error 500 with the message that FastCGI
exited unexpectedly with error code 0xFFFFFFFE. Googling this did not help. The Event Viewer in
Windows revealed that it was OpCache that crashed with error 487. Further googling got me here
https://support.zend.com/hc/en-us/articles/203838576-Zend-Enabler-Error-Could-not-locate-a-free-PHP-process-
Although the error message was not relevant i tried setting opcache.mmap_base = 0x20000000 as
suggested.
The error has since then disappeared.
It would be useful if this was stated in the documentation to save other PHP users time.
Best wishes,
Brjánn Ljótsson
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=71353&edit=1
Thread (6 messages)