Home IIS.NET Forums Partner and Community Forums PHP Community OPCache wasted memory grows rapidly
Last post Nov 08, 2020 02:28 PM by alexandros_k
29 Posts
Nov 08, 2020 02:28 PM|alexandros_k|LINK
Hi there,
I run PHP 7.4.12 on a Windows 2019 IIS10 server.
For some reason, the wasted memory value in PHP Opcache grows rapidly.
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 could fill up my entire 2GB allocated to Opcache.
Why does this happen? is it an opcache bug?
Thanks
Alex
29 Posts
OPCache wasted memory grows rapidly
Nov 08, 2020 02:28 PM|alexandros_k|LINK
Hi there,
I run PHP 7.4.12 on a Windows 2019 IIS10 server.
For some reason, the wasted memory value in PHP Opcache grows rapidly.
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 could fill up my entire 2GB allocated to Opcache.
Why does this happen? is it an opcache bug?
Thanks
Alex