WebUI slow upload

I’m getting slow uploads ~10MB/s with peaks of 20MB/s via the web UI.

Uploads via webdavs ~200MB/s average with 300MB/s burst.

Downloads via WebUI ~100MB/s

Webdav uploads fail when they are several GB in size, despite php having the correct settings for 20GB+ files.

Currently using Apache2 with PHP-FPM 7.3. 512MB PHP memory.

Is your php running out of CPU?

I use HTTP/2 with php-fpm. Fpm is a lot faster than standard php in cgi mode.

<VirtualHost *:443>
    Protocols   h2 h2c http/1.1
    H2EarlyHints    on
        ServerName      xxxx.xxx
#        ServerAlias  
...logging, paths etc

    Header  append Vary: Accept-Encoding
    Header  always set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
...
       SetEnv HOME "/var/www/domains/xxxxxxx/htdocs/nextcloud"
            SetEnv HTTP_HOME "/var/www/domains/xxxxx/htdocs/nextcloud"

    <FilesMatch \\.php$>
        SetHandler "proxy:unix:/run/php-fpm/php-fpm.socket|fcgi://localhost"
    </FilesMatch>

    SSLCertificateFile   /etc/letsencrypt/live/xxxxxxxxx/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/xxxxxxxxx/privkey.pem
    Include /etc/letsencrypt/options-ssl-apache.conf

I mean, even with fpm7.3 it’s still slow.

CPU on overall php threads combined is ~20% of a core tops. MySQL is using more CPU (30% of a core) when uploading thousands of files with webdav.

I only have the h2 protocol enabled, but that shouldn’t be hindering performance.