help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.
In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
example
Or for longer, use three backticks above and below the code snippet:
longer
example
here
Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can
Many thanks for your reply.
I run a AMD Ryzen 5 2400G with 32GB of RAM, so not really a RasPI like machine.
There could have been a “large” maybe hundreds of images (sycing my mobile) in a single folder.
The main problem seams to be that for each thumbnail, a new php thread is created, and this kind of kills php! (which in my opinion should not).
maybe Nextcloud should have a max-concurrent-thumbnail creator value.
the strange thing is that this has worked fine for the last year, and just since the upgrade to NC23.0.0.0 the problem started.
on my 32GB server I changed these values in the file:
/etc/php/7.4/fpm/pool.d/www.conf
to:
pm.max_children = 128
; The number of child processes created on startup.
; Note: Used only when pm is set to ‘dynamic’
; Default Value: (min_spare_servers + max_spare_servers) / 2
; 15 pm.start_servers = 32
; The desired minimum number of idle server processes.
; Note: Used only when pm is set to ‘dynamic’
; Note: Mandatory when pm is set to ‘dynamic’
; 15 pm.min_spare_servers = 32
; The desired maximum number of idle server processes.
; Note: Used only when pm is set to ‘dynamic’
; Note: Mandatory when pm is set to ‘dynamic’
; 8 pm.max_spare_servers = 96
This will create a lot more tasks on the server, but it’s now stable. Also these numbers are kind of reflecting the size of memory which the application can use. Never the less, I’m a single person using Nextcloud! so I’m not sure if this is the right way, for a large installation. And this only happend after the upgrade to v23!
It’s not working for me, I’m using nextcloud:23.0.0 docker images, which I believe is build on apache. And I changed the config at /usr/local/etc/php/conf.d/nextcloud.ini (there is no folder under /etc/php/7.4/fpm/pool.d/www.conf) and it is still showing segmentation fault.
On a bare metal Ubuntu installation the config files for PHP-FPM are in a separate directory, and the values have to be added to the www.conf file, not to the php.ini. Unfortunately I can’t tell you what the corresponding paths and files in the Docker container are, because I don’t use it…