Nextcloud is running very well for a long time on my Intel nuc with Ubuntu 21.04, apache and php8.0-fpm. Nextcloud is now on version 24.
Recently I upgraded Ubuntu to version 21.10. with ondrej ppa enabled.
For some reason I could not reach Nextcloud via Browser, (browser keeps searching/loading), and clients.
When I restart the php8.0-fpm service, then I can connect to Nextcloud for some time. But soon I have the same problem again.
I re-enabled apache php8.0 module:
sudo a2dismod proxy_fcgi
1996 sudo a2dismod mpm_event
1997 sudo a2enmod mpm_prefork
1998 sudo a2enmod php8.0
1999 sudo systemctl restart apache2
and then Nextcloud is stable again.
I read somewhere that there is probably a problem with ‘workers’. But I do not understand what that means. Is this a settings problem?
Does someone recognize this and have a hint to a solution?
php with fpm is much faster.
Edit: I now see a message in /var/log/php8.0-fpm.log:
"WARNING: [pool www] server reached pm.max_children setting (5), consider raising it"
What setting is this, and where to find this?
Edit: I just found more information: here
In:
/etc/php/8.0/fpm/pool.d/www.conf
I did set:
pm.max_children = 57
pm.start_servers = 14
pm.min_spare_servers = 14
pm.max_spare_servers = 42
And now I wait if the servers keeps stable.
This was the solution. Nextcloud is running again on php8.0-fpm.