Re: Running more PHP-versions with php_opcache.dll
| From: | Jan Ehrhardt | Date: | Tue, 09 Jul 2013 10:13:51 +0000 |
| Subject: | Re: Running more PHP-versions with php_opcache.dll | ||
| References: | 1 2 3 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-31034@lists.php.net to get a copy of this message | ||
Jan Ehrhardt in php.windows (Tue, 09 Jul 2013 07:16:49 +0200):
>opcache.mmap_base
>
>Could this be a way out? It looks like this setting overrides the
>setting in ZendOPcache.MemoryBase. What I want is that the OPcache of
>PHP 5.5 does not share the memory with PHP 5.3. Can that be reached by
>setting one mmap_base to 20000000 and the other to 30000000 (or
>something like that). If you think this is possible, what would the
>settings be for opcache.mmap_base of both PHP instances?
Out of curiosity I tried a mod_php (5.4) with opcache.mmap_base=30000000
and a mod_fcgid PHP (5.5) with opcache.mmap_base=20000000. Did not make
any difference: PHP 5.5 reported an internal server error, according to
the event log due to a faulting php_opcache.dll.
Interestingly enough: when I deleted the ZendOPcache.MemoryBase-file and
rebooted the server a new file was created with the 30000000-value I had
used in the opcache.mmap_base setting. This offers some hope.
Apparently, you can change the mmap_base. Maybe the only problem with
this scenario is that both instances of php_opcache.dll need exclusive
rights tot the ZendOPcache.MemoryBase file.
Jan