|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2017-11-06 03:20 UTC] david at davidfavor dot com
Description: ------------ 1) Create a simple hello.php (Hello World) file. 2) Run the following... while : ; do curl -s -I -L https://foo.com/hello.php >/dev/null ; done 3) Track FPM access log. First all's well. 100% cache hits + FPM access log shows 0.00% CPU time for script execution. Then odd behavior begins. First huge CPU time number begin, ranging from 1-10+ seconds. Looking at Opcache stats, 99% hits for a few minutes. Then cache hit rate begins to drop also. I've setup opcache logging with log verbosity == 4 + nothing useful comes out. No Apache to FPM communication errors logged. No FPM errors logged (running in at debug level). No FPM slow log entries. I've gone through Opcache config + see no setting which might explain this. I'm using the ondrej:php + ondrej:apache2 PPAs so, Apache-2.4.29-0.1 + PHP-7.1.11-1 are my versions. My... Command Line Kung Fu is strong... so if someone can suggest how to debug this deeper, let me know. Test script: --------------- <html> <head> <title>PHP Test</title> </head> <body> <?php echo '<p>Hello World</p>'; ?> </body> </html> Expected result: ---------------- Expected result 100% cache hits. Actual result: -------------- Roughly 1 out of 30ish requests fail to come from cache. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 14:00:01 2025 UTC |
I've bumped version from 7.11 to 7.12, as problem persists. lxd: net11-david-favor # php --version PHP 7.1.12-1+ubuntu17.04.1+deb.sury.org+1 (cli) (built: Nov 29 2017 10:04:01) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies with Zend OPcache v7.1.12-1+ubuntu17.04.1+deb.sury.org+1, Copyright (c) 1999-2017, by Zend Technologies with Xdebug v2.5.5, Copyright (c) 2002-2017, by Derick RethansBumping version from 7.1.12 to 7.2.0 as problem persists. lxd: net11-ubuntu-zesty-php72 # php --version PHP 7.2.0-1+ubuntu17.04.1+deb.sury.org+1 (cli) (built: Nov 30 2017 13:59:08) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2017 Zend Technologies with Zend OPcache v7.2.0-1+ubuntu17.04.1+deb.sury.org+1, Copyright (c) 1999-2017, by Zend Technologies