0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-07-21 22:58:05 +02:00

Compare commits

...

7 commits

Author SHA1 Message Date
Thomas Clavier
11504b50ae
Merge 885f6c247b into 7f707b6c5d 2025-01-13 14:37:12 +00:00
Thomas Clavier
885f6c247b
fix typo 2025-01-13 15:37:09 +01:00
Thomas Clavier
4f220763b1
Add opcache.memory_consumption documentation 2025-01-13 15:27:15 +01:00
Thomas Clavier
2d5a52a9a5
fix typo : CONSUMTION -> CONSUMPTION 2025-01-10 11:22:35 +01:00
Thomas Clavier
8bb3779baa
Merge remote-tracking branch 'upstream/master' into patch-3 2025-01-10 11:19:18 +01:00
Thomas Clavier
b4bc66dedb Use PHP_OPCACHE_MEMORY_CONSUMTION in Dockerfile-alpine.template
Signed-off-by: Thomas Clavier <tom@tcweb.org>
2023-10-26 11:19:39 +02:00
Thomas Clavier
a53f275440 use var PHP_OPCACHE_MEMORY_CONSUMTION for configuration
Signed-off-by: Thomas Clavier <tom@tcweb.org>
2023-10-26 11:19:39 +02:00
3 changed files with 5 additions and 2 deletions

View file

@ -88,11 +88,12 @@ RUN set -ex; \
# see https://docs.nextcloud.com/server/latest/admin_manual/installation/server_tuning.html#enable-php-opcache
ENV PHP_MEMORY_LIMIT 512M
ENV PHP_UPLOAD_LIMIT 512M
ENV PHP_OPCACHE_MEMORY_CONSUMPTION 128
RUN { \
echo 'opcache.enable=1'; \
echo 'opcache.interned_strings_buffer=32'; \
echo 'opcache.max_accelerated_files=10000'; \
echo 'opcache.memory_consumption=128'; \
echo 'opcache.memory_consumption=${PHP_OPCACHE_MEMORY_CONSUMPTION}'; \
echo 'opcache.save_comments=1'; \
echo 'opcache.revalidate_freq=60'; \
echo 'opcache.jit=1255'; \

View file

@ -20,6 +20,7 @@ RUN set -ex; \
# see https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html
ENV PHP_MEMORY_LIMIT 512M
ENV PHP_UPLOAD_LIMIT 512M
ENV PHP_OPCACHE_MEMORY_CONSUMPTION 128
RUN set -ex; \
\
savedAptMark="$(apt-mark showmanual)"; \
@ -97,7 +98,7 @@ RUN { \
echo 'opcache.enable=1'; \
echo 'opcache.interned_strings_buffer=32'; \
echo 'opcache.max_accelerated_files=10000'; \
echo 'opcache.memory_consumption=128'; \
echo 'opcache.memory_consumption=${PHP_OPCACHE_MEMORY_CONSUMPTION}'; \
echo 'opcache.save_comments=1'; \
echo 'opcache.revalidate_freq=60'; \
echo 'opcache.jit=1255'; \

View file

@ -300,6 +300,7 @@ Check the [Nextcloud documentation](https://docs.nextcloud.com/server/latest/adm
To customize PHP limits you can change the following variables:
- `PHP_MEMORY_LIMIT` (default `512M`) This sets the maximum amount of memory in bytes that a script is allowed to allocate. This is meant to help prevent poorly written scripts from eating up all available memory but it can prevent normal operation if set too tight.
- `PHP_UPLOAD_LIMIT` (default `512M`) This sets the upload limit (`post_max_size` and `upload_max_filesize`) for big files. Note that you may have to change other limits depending on your client, webserver or operating system. Check the [Nextcloud documentation](https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/big_file_upload_configuration.html) for more information.
- `PHP_OPCACHE_MEMORY_CONSUMPTION` (default `128`) This sets the `opcache.memory_consumption` value. It's the size of the shared memory storage used by OPcache, in megabytes.
### Apache Configuration