High CPU load after watching a few MP4 files

Support intro

High CPU load watching MP4 files

Nextcloud version : 20.0.5
Operating system and version : Linux 5.8.0-1015-raspi aarch64
Apache or nginx version : nginx 1.18.0-6ubuntu2
PHP version : 7.4.9

I upload CCTV MP4 files to NC. I can watch them easily however, after about 10 files CPU load dramatically rise to 100% and system almost hangs until I close Chromium browser.
It behaves all time the same on Linux Chromium and on Android, too.

Is this the first time you’ve seen this error? (Y/N):

Steps to replicate it:

  1. Upload 10-20 mp4 files (i.e. 10MB each)
  2. Open Chromium browser and start watching mp4 files
  3. After watching about 10 files system almost hangs

The output of your Nextcloud log in Admin > Logging:
No special info in LOG

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 'xxxx',
  'passwordsalt' => 'xxxx',
  'secret' => 'xxxx',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'trusted_domains' => 
  array (
    0 => 'x.y.z.u',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'dbtype' => 'mysql',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost:3306',
  'dbport' => '',
  'version' => '20.0.5.2',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'xxxx',
  'dbpassword' => 'xxxx',
  'logtimezone' => 'UTC',
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'tls',
  'mail_from_address' => 'xxxx',
  'mail_domain' => 'gmail.com',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'smtp.gmail.com',
  'mail_smtpport' => '587',
  'mail_smtpname' => 'xxxxx',
  'mail_smtppassword' => 'xxxx',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 0,
  'mysql.utf8mb4' => true,
  'overwrite.cli.url' => 'https://xxxx/nextcloud',
);

@janumix I have the same “issue” but I don’t know how works nextcloud to send video flow to the web client ( web page).

If you stream 10 video files at the same time, is that perhaps just a limit for a rapsberry pi?
Do you see a iowait on top (just in case: https://bencane.com/2012/08/06/troubleshooting-high-io-wait-in-linux/)?

What I found is when you use encryption (I have a high CPU usage when watching a video via the browser) or external storage (Video playback is slowly raising the CPU load and also releases cpu ressources slowly after the video has stopped · Issue #487 · nextcloud/viewer · GitHub).

Not exactly - I play files one by one, not in the same time. And problems is on client side not server.

That is then related to the viewer app:

The browsers have the developer tools where you can extract more information that would be helpful for a bug report.

Submitted:

Thanks.