Skip to content

The OPcache buffer is nearly full no matter the actual setting #53816

@tkopicbarrage

Description

@tkopicbarrage

I think i may have found the bug, I am running: nextcloud:31.0.6-fpm

It's running in my kubernetes cluster on aarch64 machines, deployed via the official helm chart.

it's been running inside this same cluster for years now, ever since nextcloud 17.
Everything is setup to auto upgrade as soon as the newer image is available and I have been getting this fake opcache full warning ever since 30.0.0-fpm came out.
I tried to tweak the configuration multiple times but i had no luck so far so i decided to open up this issue.

My current php pool looks like this:

[www]                                                                                                                                                                                                                                                                                    
user = www-data                                                                                                                                                                                                                                                                          
group = 82                                                                                                                                                                                                                                                                               
listen = 127.0.0.1:9000                                                                                                                                                                                                                                                                  
pm = dynamic                                                                                                                                                                                                                                                                             
pm.max_children = 64                                                                                                                                                                                                                                                                     
pm.start_servers = 16                                                                                                                                                                                                                                                                     
pm.min_spare_servers = 1                                                                                                                                                                                                                                                                 
pm.max_spare_servers = 16                                                                                                                                                                                                                                                                 
env[TMP] = /var/www/tmp                                                                                                                                                                                                                                                                  
env[TMPDIR] = /var/www/tmp                                                                                                                                                                                                                                                               
env[TEMP] = /var/www/tmp                                                                                                                                                                                                                                                                 
php_admin_value[upload_tmp_dir] = /var/www/tmp                                                                                                                                                                                                                                           
php_admin_value[max_execution_time] = 3600                                                                                                                                                                                                                                               
php_admin_value[max_input_time] = 3600                                                                                                                                                                                                                                                   
php_admin_value[upload_max_filesize] = 4G                                                                                                                                                                                                                                                
php_admin_value[post_max_size] = 4G                                                                                                                                                                                                                                                      
php_admin_value[memory_limit] = 4096M                                                                                                                                                                                                                                                    
php_admin_value[opcache.save_comments] = 1                                                                                                                                                                                                                                               
php_admin_value[opcache.interned_strings_buffer] = 1024                                                                                                                                                                                                                                  
php_admin_value[opcache.memory_consumption] = 2048                                                                                                                                                                                                                                       
php_admin_value[opcache.max_accelerated_files] = 30000                                                                                                                                                                                                                                   
php_admin_value[opcache.validate_timestamps] = 0                                                                                                                                                                                                                                         
php_admin_value[opcache.revalidate_freq] = 120                                                                                                                                                                                                                                           
php_admin_value[opcache.jit] = 1255                                                                                                                                                                                                                                                      
php_admin_value[opcache.jit_buffer_size] = 256M  

I've been getting these warnings no matter what number i set opcache.memory_consumption to:
For example:
Image
Image

The warning is visible as soon as the container starts up, the default configs recommended by the official documentation and the ones provided in the helm chart values also return the same warning obviously as the default value is 256M.

Edit:
the Pod itself has 3 containers, nextcloud, nginx and nextcloud-cron and it uses only about 500mb of memory on average, peaks only at about 2GB when intensively used.

{
    "system": {
        "memcache.local": "\\OC\\Memcache\\APCu",
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "overwriteprotocol": "https",
        "overwrite.cli.url": "https:\/\/cloud.kopic.hr",
        "maintenance_window_start": "23",
        "jpeg_quality": "75",
        "enable_previews": true,
        "enabledPreviewProviders": [
            "OC\\Preview\\BMP",
            "OC\\Preview\\GIF",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\SVG",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\MP3",
            "OC\\Preview\\Movie",
            "OC\\Preview\\PNG",
            "OC\\Preview\\TXT",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\HEIC"
        ],
        "preview_max_x": "1280",
        "preview_max_y": "1280",
        "preview_max_scale_factor": 10,
        "preview_max_memory": 1024,
        "preview_concurrency_all": 16,
        "preview_concurrency_new": 4,
        "default_phone_region": "HR",
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": "6379"
        },
        "objectstore": {
            "class": "OC\\Files\\ObjectStore\\S3",
            "arguments": {
                "bucket": "nextcloud",
                "autocreate": false,
                "key": "***REMOVED SENSITIVE VALUE***",
                "secret": "***REMOVED SENSITIVE VALUE***",
                "hostname": "node5-minio.minio",
                "port": 9000,
                "region": "us-east-1",
                "use_path_style": true,
                "legacy_auth": false,
                "use_ssl": false
            }
        },
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "localhost",
            "cloud.kopic.hr"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "31.0.6.2",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpauth": true,
        "mail_smtpauthtype": "PLAIN",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_sendmailmode": "smtp",
        "dbpersistent": true,
        "maintenance": false,
        "mail_smtpsecure": "ssl",
        "loglevel": 3,
        "app_install_overwrite": [],
        "theme": "",
        "data-fingerprint": "27d6e54f3cc1968bdbd7009251646ccf"
    }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions