Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Running two PHP-versions, both with OPcache |
|
Author |
|
Jan-E
Joined: 09 Mar 2012 Posts: 1266 Location: Amsterdam, NL, EU
|
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Tue 09 Jul '13 21:08 Post subject: |
|
|
Opcache is creating in his temp dir a file for example:
ZendOPcache.MemoryBase@SYSTEM with the contents: 000000E584FC0000
Who knows, maybe different temp file in the ini solves it.
Steffen
ps. See also my observation at www.apachelounge.com/viewtopic.php?p=25112 |
|
Back to top |
|
Jan-E
Joined: 09 Mar 2012 Posts: 1266 Location: Amsterdam, NL, EU
|
Posted: Tue 09 Jul '13 22:01 Post subject: |
|
|
And php_opcache64.dll is creating ZendOPcache64.MemoryBase@SYSTEM
Only on my system it was in C:\Windows. Perhaps specifying a temp dir for OPcache would have been enough..
Can you run multiple PHP's without any troubles, if you specify different temp dir's?
With respect to the other observations about flutuations: phpinfo() gives you some stats about the OPcache usage. Maybe the cache is purged at some times.
000000E584FC0000: this must have been an X64 PHP. Does the mmap_base (which it is) ever change?
And do you see the same fluctuations with a X86 PHP?
Last edited by Jan-E on Tue 09 Jul '13 22:51; edited 1 time in total |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Tue 09 Jul '13 22:32 Post subject: |
|
|
X64 creates here ZendOPcache.MemoryBase@SYSTEM, using x64 NTS php from php.net. See nowhere a php_opcache64.dll in that download.
The address in ZendOPcache.MemoryBase@SYSTEM changes when restarting Apache.
Fluctuations:
Fluctations also in X86 and the cache is not purged/restarted. It worries me.
Steffen |
|
Back to top |
|
Jan-E
Joined: 09 Mar 2012 Posts: 1266 Location: Amsterdam, NL, EU
|
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Tue 09 Jul '13 23:12 Post subject: |
|
|
Sorry I overlooked it in the start post.
I meant in mod_fcgid:
FcgidInitialEnv TEMP "C:/WINDOWS/Temp"
FcgidInitialEnv TMP "C:/WINDOWS/Temp"
Change the other PHP to an other folder.
Still the same fluctuations with your VC11 build. The script page generation time is just a copy of the forum here with the google stuff removed.
Steffen |
|
Back to top |
|
Jan-E
Joined: 09 Mar 2012 Posts: 1266 Location: Amsterdam, NL, EU
|
Posted: Wed 10 Jul '13 15:55 Post subject: |
|
|
Steffen wrote: | FcgidInitialEnv TEMP "C:/WINDOWS/Temp"
FcgidInitialEnv TMP "C:/WINDOWS/Temp"
Change the other PHP to an other folder. |
Good idea, but I could not get it to work. I changed the temp for my X64 PHP 5.5 to C:\phpdev\php55pgo.x64\tmp\. And I added a X64 PHP 5.4 as PHP-CGI, so with the system temp.
If I first load PHP 5.4 after a reboot, it runs with these specs:
http://x32.elijst.nl/phpinfo.php54nts64.htm
However, as soon as I access my Drupal 7 sites (with the PHP 5.5) the 5.4 produces an internal server error.
The PHP 5.5 got some server errors as well, so they still seem to be sharing memory.
Code: | C:\phpdev\php55pgo.x64\tmp>type c:\windows\z*
c:\windows\ZendOPcache.MemoryBase@SYSTEM
20000000
c:\windows\ZendOPcache64.MemoryBase@SYSTEM
0000000003C10000
C:\phpdev\php55pgo.x64\tmp>type z*
ZendOPcache64.MemoryBase@SYSTEM
0000000004180000 |
I reverted the situation to what it was: a running X86 PHP 5.3+OPcache en X64 PHP 5.5+OPcache64 |
|
Back to top |
|
|
|
|
|
|