Customize opcache memory consumption.

This commit is contained in:
Andrea Dell'Amico 2023-10-10 10:28:00 +02:00
parent 22dfe8eab4
commit 7743bef5d2
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
2 changed files with 2 additions and 1 deletions

View File

@ -68,5 +68,6 @@ nextcloud_phpfpm_default_memory_limit: "512M"
php_global_settings: '{{ nextcloud_php_global_settings }}'
phpfpm_pools: '{{ nextcloud_phpfpm_pools }}'
nextcloud_phpfpm_listen_on_socket: True
nextcloud_phpfpm_opcache_mem_consumption: 512
nextcloud_nginx_max_body_size: 512M

View File

@ -51,7 +51,7 @@ nextcloud_php_global_settings:
- { option: 'opcache.enable_cli', value: '1' }
- { option: 'opcache.interned_strings_buffer', value: '8' }
- { option: 'opcache.max_accelerated_files', value: '10000' }
- { option: 'opcache.memory_consumption', value: '128' }
- { option: 'opcache.memory_consumption', value: '{{ nextcloud_phpfpm_opcache_mem_consumption }}' }
- { option: 'opcache.save_comments', value: '1' }
- { option: 'opcache.revalidate_freq', value: '1' }