Nextcloud; very slow up - and download times (1-4mb/s) / Ubuntu 22.04

Nextcloud version: 24.0.4
Operating system and version: Ubuntu 22.04
Apache or nginx version: Apache/2.4.52 (Ubuntu)
PHP version: 8.1.2

My issue:

I installed my Nextcloud on a small PC with mariadb and apache2.
So far everything works very well.
The only problem I currently have is the up and download times.
These are currently at a maximum of 1-4mb/s, which is really very slow.

It can’t be because of my internet. I tested the speed:

Testing download speed.........................
Download: 97.98 Mbit/s
Testing upload speed...........................
Upload: 37.69 Mbit/s

What i also noticed is that after the upload the files still need a long time until the upload is completed:

My hardware should also not be the problem:
system: Linux 5.15.0-46-generic x86_64
proceccor: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz (4 cores)
ram: Speicher: 7.60 GB
rom 128gb SSD

The output of my config.php file in /var/www/nextcloud/config/config.php:

$CONFIG = array (
  'instanceid' => '*******',
  'passwordsalt' => '*******',
  'secret' => '*******',
  'trusted_domains' => 
  array (
    0 => '',
    1 => '',
  'datadirectory' => '/home/data',
  'dbtype' => 'mysql',
  'version' => '',
  'overwrite.cli.url' => '',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'user',
  'dbpassword' => '****',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'mail_from_address' => '****',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => '',
  'mail_smtphost' => '',

Does anyone know where the problem is? i’m not the most professional in linux. :grinning:


i got the same Problemes and dont now how to fix them. I think i will go back to an older version

Welcome to the forum @Cyb3r!

there is no way to identify bad performance without proper system analysis. both of you didn’t provide good starting points. official docs are always good starting point, you find some advises there.

this forum has a search function with will lead you to multiple discussion regarding performance , upload and download take a look at the hints and methods to understand the problem.

For me the Problem is solved i use a reverseproxy and my Problem was i have used the old config with trusted proxies i deleted the complete entry and now its fine