Nextcloud extremely slow after upgrade

My YunoHost server

Hardware: Raspberry Pi 4B at home
YunoHost version: 4.2.4
I have access to my server : Through SSH | through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : yes
If yes, please explain: Yesterday I upgraded all apps, which included nextcloud.

Description of my issue

After yesterday’s upgrade (from UI), Nextcloud (now: 20.0.8~ynh1) started becoming extremely unresponsive.

Some requests take about 50s to complete.

In /var/log/php7.3-fpm.log I can see:

[09-May-2021 09:08:06] WARNING: [pool nextcloud] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 0 idle, and 15 total children                                                
[09-May-2021 09:08:07] WARNING: [pool nextcloud] server reached pm.max_children setting (16), consider raising it        

I tried raising it without luck. It just hit the same warning after filling all children:

[09-May-2021 09:17:30] NOTICE: fpm is running, pid 13884
[09-May-2021 09:17:30] NOTICE: ready to handle connections
[09-May-2021 09:17:30] NOTICE: systemd monitor interval set to 10000ms
[09-May-2021 09:17:48] WARNING: [pool nextcloud] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 1 idle, and 13 total children                                                      
[09-May-2021 09:17:49] WARNING: [pool nextcloud] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 16 children, there are 1 idle, and 17 total children                                                     
[09-May-2021 09:17:50] WARNING: [pool nextcloud] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 1 idle, and 21 total children                                                     
[09-May-2021 09:17:51] WARNING: [pool nextcloud] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 2 idle, and 25 total children                                                     
[09-May-2021 09:17:52] WARNING: [pool nextcloud] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 1 idle, and 28 total children                                                     
[09-May-2021 09:17:53] WARNING: [pool nextcloud] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 2 idle, and 32 total children                                                     
[09-May-2021 09:17:54] WARNING: [pool nextcloud] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 1 idle, and 35 total children                                                     
[09-May-2021 09:17:55] WARNING: [pool nextcloud] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 3 idle, and 39 total children                                                     
[09-May-2021 09:17:56] WARNING: [pool nextcloud] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 1 idle, and 41 total children                                                     
[09-May-2021 09:17:57] WARNING: [pool nextcloud] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 1 idle, and 45 total children                                                     
[09-May-2021 09:17:58] WARNING: [pool nextcloud] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 2 idle, and 49 total children                                                     
[09-May-2021 09:17:59] WARNING: [pool nextcloud] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 1 idle, and 52 total children                                                     
[09-May-2021 09:18:00] WARNING: [pool nextcloud] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 2 idle, and 56 total children                                                     
[09-May-2021 09:18:01] WARNING: [pool nextcloud] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 1 idle, and 59 total children                                                     
[09-May-2021 09:18:02] WARNING: [pool nextcloud] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 2 idle, and 63 total children
[09-May-2021 09:18:03] WARNING: [pool nextcloud] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 1 idle, and 66 total children
[09-May-2021 09:18:04] WARNING: [pool nextcloud] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 2 idle, and 70 total children
[09-May-2021 09:18:05] WARNING: [pool nextcloud] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 2 idle, and 73 total children
[09-May-2021 09:18:06] WARNING: [pool nextcloud] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 1 idle, and 76 total children
[09-May-2021 09:18:07] WARNING: [pool nextcloud] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 2 idle, and 80 total children
[09-May-2021 09:18:08] WARNING: [pool nextcloud] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 1 idle, and 83 total children
[09-May-2021 09:18:09] WARNING: [pool nextcloud] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 2 idle, and 87 total children
[09-May-2021 09:18:10] WARNING: [pool nextcloud] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 1 idle, and 90 total children
[09-May-2021 09:18:11] WARNING: [pool nextcloud] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 2 idle, and 94 total children
[09-May-2021 09:18:12] WARNING: [pool nextcloud] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 2 idle, and 97 total children
[09-May-2021 09:18:13] WARNING: [pool nextcloud] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 1 idle, and 100 total children
[09-May-2021 09:18:14] WARNING: [pool nextcloud] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 2 idle, and 104 total children
[09-May-2021 09:18:15] WARNING: [pool nextcloud] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 1 idle, and 107 total children
[09-May-2021 09:18:16] WARNING: [pool nextcloud] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 2 idle, and 111 total children
[09-May-2021 09:18:17] WARNING: [pool nextcloud] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 2 idle, and 114 total children
[09-May-2021 09:18:18] WARNING: [pool nextcloud] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 2 idle, and 117 total children
[09-May-2021 09:18:19] WARNING: [pool nextcloud] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 1 idle, and 120 total children
[09-May-2021 09:18:20] WARNING: [pool nextcloud] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 1 idle, and 124 total children
[09-May-2021 09:18:21] WARNING: [pool nextcloud] server reached pm.max_children setting (128), consider raising it

I see no more interesting logs anywhere else, but I might provide them if they’d help.

I tried rebooting the server and, as expected, it fixed nothing (this ain’t Windows but I was desperate).

I’d appreciate any help. :see_no_evil:

I found the workaround: disable richdocuments app in nextcloud.

It’s an upstream issue.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.