|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2020-11-09 00:09 UTC] alex at ndros dot com
Description: ------------ I run PHP 7.4.12 on a Windows 2019 IIS10 server. The wasted memory value in PHP Opcache grows rapidly, fills up my entire 2GB allocated to Opcache, and then opcache stops working. For example, these are the statistics after 30mins since the last webserver reset: total memory: 2.00GB used memory: 89.00MB free memory: 1.66GB wasted memory: 261.36MB (12.76%) And these are my settings: opcache.memory_consumption=2048 opcache.cache_id=oc1 opcache.error_log="D:\temp\php\opcache_errors.log" opcache.validate_timestamps=1 opcache.revalidate_freq=90 opcache.interned_strings_buffer=32 opcache.save_comments=0 opcache.max_file_size=0 opcache.file_update_protection=0 opcache.file_cache_consistency_checks=0 opcache.file_cache="D:\temp\php\opcache_filecache" opcache.max_accelerated_files=100000 If I leave it to run more time, the wasted memory fills up my entire 2GB allocated to Opcache, and opcache will simply stop to work. I can verify this be updating .php files and the changes show up instantly (where normally they take 90 seconds or less, based on my opcache.revalidate_freq). Thanks Alex PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 14 04:00:01 2025 UTC |
Hmm, I still cannot reproduce any of the reported behavior. > Yes, the files are located in a symlink pointing to an SMB > share. This might be reason for the misbehavior. Could you please post what fsutil reparsePoint query <path> reports for the symlink and the SMB share? Could you also please check whether realpath() resolves any of the files on the SMB share correctly, and also what filemtime() and stat()['mtime'] reports? I'm not so much interested in the exact timestamps, but rather whether these are "in the future" what could explain the premature updates.