Nextcloud's upload and download speed goes down and up (minimum = 0kb/s max = 13MB/s)

[details=“Support intro”]
Hello;
I have a nextcloud instance already a while but newly when I want to upload or download any file cpu usage of apache -k start is 100 to 101% and upload speed is like: 10MB/s → 500KB/s → 0 → 9MB/s … (sucks and laptop wich is the server overheats when I leave it uploading). It seems to not depend if I am uploading over localhost or cloud.privacyy.ch.

I have 4GB RAM (and it isn’t full), 12GB swap (and 3GBs are zram), 2core (with multithreading, doesn’t matter if on or off) up to 2GHz.

I had 10MB/s bevore. I installed some apps but those that might affect all in any way are disabled now

See here:
‘dbtype’ => ‘sqlite3’,
‘version’ => ‘21.0.4.1’,
‘overwrite.cli.url’ => ‘http://localhost’,
‘dbname’ => ‘Database’,
‘dbhost’ => ‘localhost’,
‘dbport’ => ‘’,
‘dbtableprefix’ => ‘oc_’,
‘installed’ => true,
‘memcache.local’ => ‘\OC\Memcache\APCu’,
‘memcache.distributed’ => ‘\OC\Memcache\Redis’, # added today and removed for test, nothing happened
‘memcache.locking’ => ‘\OC\Memcache\Redis’,
‘redis’ =>
array (
‘host’ => ‘localhost’,
‘port’ => 6379,
),

I don’t know how I can fix it I tried many things

I am switching to mariadb… maybve helps
Ok that isn’t the problem. Ill just wait for that

The webinterface loads quickly?

Is it for all files, or does it start at a certain size? (10 MB was used as chunk size for some clients)

I’d try to put just something directly on the webserver without Nextcloud (or a separate vhost), just to check that there is no network issue.

If that doesn’t help, you can try to increase the log level if there is more information.

if not properly activated for command line, it can use 100% of CPU but normally just in command line. I’d try that quickly as well.

Uploading works fine, but the speed decreases and when a new chunk is uhm opened then it works faster but just shortly. The best fix is to set the chunk size to 1.5MB or 2MB if you don’t have hs2

The problem is then I have 2.4 MB/s and not these 10 I had.

Webinterface loads very quick as you can self-check (but when you visit the 1. time the HDD is starting up wich needs some seconds so it might be a bit slower. Just reload the page) (you might have to register if you want more details)

Every file that is larger than ca. 2MB it starts slowing down except the chunk size is 2MB or lower

How do I configure it correctly?

So uploading you have a good speed? What kind of internet connection do you have (client and server-side)?
What apps do you use? Antivirus?

Download is bad via web-browser, direct webdav, …?

If I understand correctly, your CPU is raising to 100% and you are not limited by network or RAM?
If you use iotop, you can also monitor the disk usage, perhaps some bad configuration at some points.

No hints in your logs?

My upload speed is 2MB as I sayd but it was 10MB
I enabled file-chunking to 1.5MB so that ‘‘fixed’’ it. I want to download files larger than 50-100MB but the download slows down over time and then stops finally.

Uploads also don’t work
I have php-fpm newly
I have the xanmod1-rt kernel (newest, maybe it’s the pre-release)

I’ll go and check out the logs
I am not limited by RAM (else I would see a kswapd process eating all cpu and the swap would be filling), Disk doesn’t matter - disk almost down (chunking fixes that but it slows down speed dramatically because nc has to create new files every 1.5MB)

I disabled all new apps and I had antivirus app but then a clamav process would have to eat all cpu not an apache -k start

DOWNLOADS AND UPLOADS USE 100% cpu of 1 core

log:
[Sat Aug 28 00:00:02.160710 2021] [ssl:warn] [pid 427745:tid 140184100068672] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Sat Aug 28 00:00:02.166167 2021] [mpm_event:notice] [pid 427745:tid 140184100068672] AH00489: Apache/2.4.46 (Ubuntu) OpenSSL/1.1.1j configured – resuming normal operations
[Sat Aug 28 00:00:02.166327 2021] [core:notice] [pid 427745:tid 140184100068672] AH00094: Command line: ‘/usr/sbin/apache2’
[Sat Aug 28 00:06:52.517514 2021] [proxy:error] [pid 459536:tid 140183680804416] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.3-fpm.sock () failed
[Sat Aug 28 00:06:52.517746 2021] [proxy_fcgi:error] [pid 459536:tid 140183680804416] [client 185.180.231.247:58051] AH01079: failed to make connection to backend: httpd-UDS
[Sat Aug 28 00:36:24.489597 2021] [proxy:error] [pid 459536:tid 140183664019008] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.3-fpm.sock (
) failed
[Sat Aug 28 00:36:24.489771 2021] [proxy_fcgi:error] [pid 459536:tid 140183664019008] [client 144.86.173.137:37994] AH01079: failed to make connection to backend: httpd-UDS
[Sat Aug 28 00:37:18.528673 2021] [proxy:error] [pid 459535:tid 140183294961216] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.3-fpm.sock () failed
[Sat Aug 28 00:37:18.528891 2021] [proxy_fcgi:error] [pid 459535:tid 140183294961216] [client 180.195.238.182:54571] AH01079: failed to make connection to backend: httpd-UDS
[Sat Aug 28 01:07:20.844888 2021] [proxy:error] [pid 459536:tid 140183303353920] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.3-fpm.sock (
) failed
[Sat Aug 28 01:07:20.845001 2021] [proxy_fcgi:error] [pid 459536:tid 140183303353920] [client 104.149.132.238:57067] AH01079: failed to make connection to backend: httpd-UDS
[Sat Aug 28 02:20:09.034609 2021] [proxy:error] [pid 459536:tid 140183143958080] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.3-fpm.sock () failed
[Sat Aug 28 02:20:09.034825 2021] [proxy_fcgi:error] [pid 459536:tid 140183143958080] [client 167.248.133.43:41368] AH01079: failed to make connection to backend: httpd-UDS
[Sat Aug 28 02:29:51.588384 2021] [proxy:error] [pid 459536:tid 140182229612096] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.3-fpm.sock (
) failed
[Sat Aug 28 02:29:51.588505 2021] [proxy_fcgi:error] [pid 459536:tid 140182229612096] [client 89.43.5.154:42765] AH01079: failed to make connection to backend: httpd-UDS
[Sat Aug 28 02:42:37.849772 2021] [proxy:error] [pid 459535:tid 140183294961216] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.3-fpm.sock () failed
[Sat Aug 28 02:42:37.849920 2021] [proxy_fcgi:error] [pid 459535:tid 140183294961216] [client 193.118.53.210:43658] AH01079: failed to make connection to backend: httpd-UDS
[Sat Aug 28 03:14:23.522339 2021] [proxy:error] [pid 459535:tid 140183261390400] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.3-fpm.sock (
) failed
[Sat Aug 28 03:14:23.522452 2021] [proxy_fcgi:error] [pid 459535:tid 140183261390400] [client 5.32.176.112:43989] AH01079: failed to make connection to backend: httpd-UDS
[Sat Aug 28 03:15:59.699057 2021] [proxy:error] [pid 459535:tid 140183152350784] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.3-fpm.sock () failed
[Sat Aug 28 03:15:59.699137 2021] [proxy_fcgi:error] [pid 459535:tid 140183152350784] [client 134.236.82.82:55420] AH01079: failed to make connection to backend: httpd-UDS
[Sat Aug 28 03:39:49.764430 2021] [proxy:error] [pid 459536:tid 140183286568512] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.3-fpm.sock (
) failed
[Sat Aug 28 03:39:49.764616 2021] [proxy_fcgi:error] [pid 459536:tid 140183286568512] [client 185.220.101.229:15404] AH01079: failed to make connection to backend: httpd-UDS
[Sat Aug 28 03:56:00.969790 2021] [proxy:error] [pid 459535:tid 140182095394368] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.3-fpm.sock () failed
[Sat Aug 28 03:56:00.969877 2021] [proxy_fcgi:error] [pid 459535:tid 140182095394368] [client 84.243.9.194:40329] AH01079: failed to make connection to backend: httpd-UDS
[Sat Aug 28 04:12:46.003493 2021] [proxy:error] [pid 459535:tid 140183303353920] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.3-fpm.sock (
) failed
[Sat Aug 28 04:12:46.003577 2021] [proxy_fcgi:error] [pid 459535:tid 140183303353920] [client 192.241.199.211:39386] AH01079: failed to make connection to backend: httpd-UDS
[Sat Aug 28 04:24:59.950384 2021] [proxy:error] [pid 459535:tid 140183286568512] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.3-fpm.sock () failed
[Sat Aug 28 04:24:59.950559 2021] [proxy_fcgi:error] [pid 459535:tid 140183286568512] [client 85.91.197.171:53225] AH01079: failed to make connection to backend: httpd-UDS
[Sat Aug 28 04:27:44.257168 2021] [proxy:error] [pid 459536:tid 140183269783104] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.3-fpm.sock (
) failed
[Sat Aug 28 04:27:44.257266 2021] [proxy_fcgi:error] [pid 459536:tid 140183269783104] [client 192.241.206.17:58178] AH01079: failed to make connection to backend: httpd-UDS
[Sat Aug 28 04:47:54.941983 2021] [proxy:error] [pid 459535:tid 140183294961216] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.3-fpm.sock () failed
[Sat Aug 28 04:47:54.942302 2021] [proxy_fcgi:error] [pid 459535:tid 140183294961216] [client 183.134.104.170:8081] AH01079: failed to make connection to backend: httpd-UDS
[Sat Aug 28 04:56:56.195195 2021] [proxy:error] [pid 459535:tid 140183269783104] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.3-fpm.sock (
) failed
[Sat Aug 28 04:56:56.195265 2021] [proxy_fcgi:error] [pid 459535:tid 140183269783104] [client 127.0.0.1:35074] AH01079: failed to make connection to backend: httpd-UDS
[Sat Aug 28 04:56:57.194503 2021] [proxy:error] [pid 459536:tid 140183143958080] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.3-fpm.sock () failed
[Sat Aug 28 04:56:57.194575 2021] [proxy_fcgi:error] [pid 459536:tid 140183143958080] [client 127.0.0.1:35076] AH01079: failed to make connection to backend: httpd-UDS
[Sat Aug 28 05:00:03.988278 2021] [proxy_fcgi:error] [pid 459536:tid 140183722767936] [client 192.168.0.1:52894] AH01071: Got error ‘PHP message: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 158487712 bytes) in /var/www/html/lib/private/Installer.php on line 311’
[Sat Aug 28 05:00:24.458050 2021] [proxy_fcgi:error] [pid 459535:tid 140183697589824] [client 192.168.0.1:52896] AH01071: Got error ‘PHP message: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 158487712 bytes) in /var/www/html/lib/private/Installer.php on line 311’
[Sat Aug 28 05:02:54.263627 2021] [proxy_fcgi:error] [pid 459535:tid 140183697589824] [client 192.168.0.1:52906] AH01071: Got error ‘PHP message: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 158487712 bytes) in /var/www/html/lib/private/Installer.php on line 311’
[Sat Aug 28 05:10:06.421594 2021] [proxy:error] [pid 459536:tid 140183252997696] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.3-fpm.sock (
) failed
[Sat Aug 28 05:10:06.426442 2021] [proxy_fcgi:error] [pid 459536:tid 140183252997696] [client 192.241.197.81:40556] AH01079: failed to make connection to backend: httpd-UDS
[Sat Aug 28 05:14:29.676847 2021] [proxy:error] [pid 459536:tid 140182229612096] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.3-fpm.sock () failed
[Sat Aug 28 05:14:29.676935 2021] [proxy_fcgi:error] [pid 459536:tid 140182229612096] [client 162.142.125.57:49222] AH01079: failed to make connection to backend: httpd-UDS
[Sat Aug 28 05:14:29.916729 2021] [proxy:error] [pid 459535:tid 140183680804416] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.3-fpm.sock (
) failed
[Sat Aug 28 05:14:29.916838 2021] [proxy_fcgi:error] [pid 459535:tid 140183680804416] [client 162.142.125.57:48846] AH01079: failed to make connection to backend: httpd-UDS
[Sat Aug 28 05:16:35.403823 2021] [proxy:error] [pid 459535:tid 140183127172672] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.3-fpm.sock () failed
[Sat Aug 28 05:16:35.404678 2021] [proxy_fcgi:error] [pid 459535:tid 140183127172672] [client 86.57.47.223:42397] AH01079: failed to make connection to backend: httpd-UDS
[Sat Aug 28 05:59:00.298059 2021] [proxy:error] [pid 459535:tid 140183664019008] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.3-fpm.sock (
) failed
[Sat Aug 28 05:59:00.299219 2021] [proxy_fcgi:error] [pid 459535:tid 140183664019008] [client 177.74.154.110:53943] AH01079: failed to make connection to backend: httpd-UDS
[Sat Aug 28 05:59:41.829717 2021] [proxy:error] [pid 459536:tid 140183143958080] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.3-fpm.sock () failed
[Sat Aug 28 05:59:41.831183 2021] [proxy_fcgi:error] [pid 459536:tid 140183143958080] [client 209.141.32.217:60330] AH01079: failed to make connection to backend: httpd-UDS, referer: http://77.59.176.118:80/admin/login.asp
[Sat Aug 28 06:33:58.783784 2021] [proxy:error] [pid 459536:tid 140182221219392] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.3-fpm.sock (
) failed
[Sat Aug 28 06:33:58.786468 2021] [proxy_fcgi:error] [pid 459536:tid 140182221219392] [client 192.241.200.130:60494] AH01079: failed to make connection to backend: httpd-UDS
[Sat Aug 28 08:17:04.825410 2021] [proxy:error] [pid 459536:tid 140183286568512] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.3-fpm.sock () failed
[Sat Aug 28 08:17:04.828643 2021] [proxy_fcgi:error] [pid 459536:tid 140183286568512] [client 180.149.125.175:19749] AH01079: failed to make connection to backend: httpd-UDS
[Sat Aug 28 08:28:44.951987 2021] [mpm_event:notice] [pid 427745:tid 140184100068672] AH00492: caught SIGWINCH, shutting down gracefully
[Sat Aug 28 08:28:48.624091 2021] [ssl:warn] [pid 590121:tid 140088486542656] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Sat Aug 28 08:28:48.632728 2021] [:notice] [pid 590121:tid 140088486542656] ModSecurity for Apache/2.9.3 (http://www.modsecurity.org/) configured.
[Sat Aug 28 08:28:48.632776 2021] [:notice] [pid 590121:tid 140088486542656] ModSecurity: APR compiled version=“1.7.0”; loaded version=“1.7.0”
[Sat Aug 28 08:28:48.632789 2021] [:notice] [pid 590121:tid 140088486542656] ModSecurity: PCRE compiled version="8.39 "; loaded version=“8.39 2016-06-14”
[Sat Aug 28 08:28:48.632798 2021] [:notice] [pid 590121:tid 140088486542656] ModSecurity: LUA compiled version=“Lua 5.1”
[Sat Aug 28 08:28:48.632806 2021] [:notice] [pid 590121:tid 140088486542656] ModSecurity: YAJL compiled version=“2.1.0”
[Sat Aug 28 08:28:48.632814 2021] [:notice] [pid 590121:tid 140088486542656] ModSecurity: LIBXML compiled version=“2.9.10”
[Sat Aug 28 08:28:48.632822 2021] [:notice] [pid 590121:tid 140088486542656] ModSecurity: Status engine is currently disabled, enable it by set SecStatusEngine to On.
[Sat Aug 28 08:28:48.632835 2021] [:notice] [pid 590121:tid 140088486542656] ModSecurity: ModSecurity-Apache v0.1.1-beta configured.
[Sat Aug 28 08:28:48.763766 2021] [ssl:warn] [pid 590122:tid 140088486542656] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Sat Aug 28 08:28:48.778520 2021] [mpm_event:notice] [pid 590122:tid 140088486542656] AH00489: Apache/2.4.46 (Ubuntu) OpenSSL/1.1.1j configured – resuming normal operations
[Sat Aug 28 08:28:48.785076 2021] [core:notice] [pid 590122:tid 140088486542656] AH00094: Command line: ‘/usr/sbin/apache2’
[Sat Aug 28 08:44:28.086661 2021] [proxy:error] [pid 590124:tid 140088035808832] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.3-fpm.sock (
) failed
[Sat Aug 28 08:44:28.089090 2021] [proxy_fcgi:error] [pid 590124:tid 140088035808832] [client 178.148.244.231:53552] AH01079: failed to make connection to backend: httpd-UDS
[Sat Aug 28 09:02:34.053140 2021] [proxy:error] [pid 590124:tid 140087916480064] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.3-fpm.sock () failed
[Sat Aug 28 09:02:34.069095 2021] [proxy_fcgi:error] [pid 590124:tid 140087916480064] [client 186.33.127.110:53350] AH01079: failed to make connection to backend: httpd-UDS
[Sat Aug 28 09:25:38.383724 2021] [proxy:error] [pid 590124:tid 140087916480064] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.3-fpm.sock (
) failed
[Sat Aug 28 09:25:38.384132 2021] [proxy_fcgi:error] [pid 590124:tid 140087916480064] [client 205.185.126.200:35230] AH01079: failed to make connection to backend: httpd-UDS, referer: http://77.59.176.118:80/admin/login.asp
[Sat Aug 28 09:33:05.378161 2021] [access_compat:error] [pid 590124:tid 140087916480064] [client 199.19.224.165:56908] AH01797: client denied by server configuration: /var/www/html/config/getuser
[Sat Aug 28 09:33:05.379350 2021] [proxy:error] [pid 590124:tid 140087916480064] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.3-fpm.sock () failed
[Sat Aug 28 09:33:05.379899 2021] [proxy_fcgi:error] [pid 590124:tid 140087916480064] [client 199.19.224.165:56908] AH01079: failed to make connection to backend: httpd-UDS
[Sat Aug 28 09:57:53.216630 2021] [proxy:error] [pid 590123:tid 140087924872768] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.3-fpm.sock (
) failed
[Sat Aug 28 09:57:53.224136 2021] [proxy_fcgi:error] [pid 590123:tid 140087924872768] [client 128.1.248.42:33850] AH01079: failed to make connection to backend: httpd-UDS
[Sat Aug 28 10:07:34.853150 2021] [proxy:error] [pid 590123:tid 140087807374912] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.3-fpm.sock () failed
[Sat Aug 28 10:07:34.859080 2021] [proxy_fcgi:error] [pid 590123:tid 140087807374912] [client 143.110.186.93:41089] AH01079: failed to make connection to backend: httpd-UDS
[Sat Aug 28 10:13:50.749531 2021] [proxy:error] [pid 590123:tid 140088060986944] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.3-fpm.sock (
) failed
[Sat Aug 28 10:13:50.750852 2021] [proxy_fcgi:error] [pid 590123:tid 140088060986944] [client 143.110.186.93:50858] AH01079: failed to make connection to backend: httpd-UDS
[Sat Aug 28 10:36:28.289623 2021] [proxy:error] [pid 590124:tid 140087824160320] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.3-fpm.sock () failed
[Sat Aug 28 10:36:28.291461 2021] [proxy_fcgi:error] [pid 590124:tid 140087824160320] [client 185.53.90.24:46516] AH01079: failed to make connection to backend: httpd-UDS
[Sat Aug 28 11:07:26.996727 2021] [proxy:error] [pid 590124:tid 140087874516544] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.3-fpm.sock (
) failed
[Sat Aug 28 11:07:27.026232 2021] [proxy_fcgi:error] [pid 590124:tid 140087874516544] [client 92.118.160.13:35203] AH01079: failed to make connection to backend: httpd-UDS
[Sat Aug 28 11:16:57.675223 2021] [proxy:error] [pid 590124:tid 140087908087360] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.3-fpm.sock () failed
[Sat Aug 28 11:16:57.675631 2021] [proxy_fcgi:error] [pid 590124:tid 140087908087360] [client 209.141.32.217:56130] AH01079: failed to make connection to backend: httpd-UDS, referer: http://77.59.176.118:80/admin/login.asp
[Sat Aug 28 11:53:27.563307 2021] [proxy:error] [pid 590123:tid 140087933265472] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.3-fpm.sock (
) failed
[Sat Aug 28 11:53:27.567058 2021] [proxy_fcgi:error] [pid 590123:tid 140087933265472] [client 184.105.139.70:52136] AH01079: failed to make connection to backend: httpd-UDS

Is modsecurity the problem?
checked… Isn’t the problem

Recommended min limit for php memory size is 512 MB, here you have 128! Why is connecting to php-fpm socket failing so often? Is the process killed or not responding? Or the number of processes/children is limited?

what is this httpd-UDS backend?

If modsecurity is not configured properly, it can create strange problems. Still under owncloud they tried to established a ruleset for modsecurity but I don’t know if there is a working ruleset somewhere…

  1. modsecurity isn’t the problem (Tried with deactivated)
  2. I had 512 sadly it doesn’t go up but I changed it in php-fpm (why’’’’???)
  3. I don’t know about the php-fpm socket (uhm so I newly switched to php-fpm and bevore it was like the same)
  4. httpd-UDS ? I don’t know too :(;

Perhaps not now, but it has shown to be problematic in the past, so I’d keep that in mind later for other problems.

Php often has different config files, for the apache module, the fpm-* and cli. In .htaccess or apache configs, you can change again the values, so it’s helpful to check with a phpinfo() script which value is set and which config file is used.

Also memory errors? The standard apache php module is probably easier to set up (https://docs.nextcloud.com/server/latest/admin_manual/installation/source_installation.html#apache-web-server-configuration)

Well, it’s your setup, don’t expect us to know or to find out.

  1. PHP-FPM is as easy as normal Apache

  2. The memory warning is not an error. I had to restart the server for PHP changes to take effect

  3. I now figured out that downloading works fine but somehow it needs 100% CPU of one core and this causes to stop once but after approx. 30 second the download continues. Because I used a mobile Hotspot I don’t know it it still downloads like 500KB/s or if it’s 3MB/s again.

  4. What uses so much resources (also RAM like 500MB-1GB)? Is there something that (de)compresses the files or what???

Yes. But if it stops the running upload, you can get the problem you are seeing.

The recommended limit of >512 MB RAM exists already for some time. I can’t tell you which part needs that amount of resources. Perhaps you can find some hints in the bug tracker or code…

I now tried to download a while and I can say that it is possible to download all
The problem is the RAM and the high CPU usage of apache -k start. I geht 300KB/s

Once the RAM is full kswapd is swapping all the files. It takes very long to load a part of the file wich is quite special (HDD is almost Isle). Once loaded the remaining files get compressed into zRAM and swap. Then the download continues very slow with high CPU usage. During the time the file is loading the Apache process has lower CPU usage. I canceled the download at ~ 95 % as I wanted to do someting else. I couldn’t do anything because of high CPU usage and low free RAM

I noticed that the Apache process wasn’t using much CPU anymore or completely disappeared. Also I noticed that just a bit of RAM got free. I had to wait ~30mins until the 1-2GB of RAM that was used got free. Much still was in the swap - not swapping process that made the effort to free swap

Maybe this is partically a problem with the cache
I am using opcache, aCPU, redis as distributed file caching and file locking (the redis server is running I see it sometimes in htop)

Anybody knows what to do?