php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67958 Php opcache resetting cache files
Submitted: 2014-09-03 23:05 UTC Modified: 2014-12-30 10:42 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: jimspiti at hotmail dot com Assigned: dmitry (profile)
Status: No Feedback Package: opcache
PHP Version: 5.6.0 OS: Centos 6.5
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jimspiti at hotmail dot com
New email:
PHP Version: OS:

 

 [2014-09-03 23:05 UTC] jimspiti at hotmail dot com
Description:
------------
Hi

After testing for a long time php 5.4 and 5.5 and 5.6 with opcache we notice that there is a problem with it and fastcgi ...

After a few minutes (less than 30) it is resetting the files in the cache and for example from 400 files in the cache is going back to 250 and then up to 500 an dthen the same and we do not have any wrong settings or file limits in the system or in the cache...

Just to be sure with the same settings we install Mod lsapi against fastcgi and all was great and never did that reset and at the moment we have after a day 1600 files there.....

So if you can please fix this as almost every one wil use this opcache with the new versions of php.

Thanks !


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-09-04 14:15 UTC] tyrael@php.net
-Assigned To: +Assigned To: dmitry
 [2014-09-04 14:15 UTC] tyrael@php.net
hi, could you show your opcache related php.ini settings and your also provide more info about your fastcgi setup?
AFAIR by default the opcache cache isn't shared between fastcgi processes, so it could be normal to see different number of files cached on different more so if they were recently spawned and didn't receive enough requests to warm up the cache.
 [2014-09-04 14:15 UTC] tyrael@php.net
-Status: Assigned +Status: Feedback
 [2014-09-04 16:09 UTC] jimspiti at hotmail dot com
The fastcgi was aut installed and configured by cpanel...

opcache settings:

zend_extension=opcache.so
opcache.memory_consumption=256
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.revalidate_freq=60
opcache.fast_shutdown=1
 [2014-12-30 10:42 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 04:01:29 2024 UTC