My CPU load is also very high but only if a user is logging in. According to HTOP on my terminal it is MYSQL creating that problem. I tried it with three different users nearly at the same time and the load of my CPU comes up to 100%. It takes about 2-3 minutes then all comes back to normal. REDIS, MEMCACHED is configured and working. There are 7 users on my NC and I am the only one having some files and music stored.
I am using NC 13.0.2
Ubuntu 16.04 (latest updates)
redis-server 2.2.8
mariadb 10.1.32
nginx 1.10.13
php7.0.28
memcached 1.4.25
Linux Kernel 4.13.0-39
Memory 8GB
4 Cores
My config file:
<?php
$CONFIG = array (
'instanceid' => 'oc2bcxz77sgy',
'passwordsalt' => '123567890',
'secret' => '1234567890',
'trusted_domains' =>
array (
0 => 'aaaaa',
1 => 'aaaaa',
2 => 'aaaaa',
),
'datadirectory' => '/media/cloud/nextcloud/data',
'overwrite.cli.url' => 'https:aaaaa',
'dbtype' => 'mysql',
'version' => '13.0.2.1',
'dbname' => 'nextcloud',
'dbhost' => '127.0.0.1',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'nextcloud',
'dbpassword' => 'aaaaa',
'logtimezone' => 'Europe/Berlin',
'installed' => true,
'forcessl' => true,
'default_language' => 'de',
'defaultapp' => 'files',
'knowledgebaseenabled' => true,
'enable_avatars' => true,
'allow_user_to_change_display_name' => true,
'remember_login_cookie_lifetime' => 1296000,
'session_lifetime' => 86400,
'session_keepalive' => true,
'mail_smtpmode' => 'smtp',
'mail_smtphost' => 'aaaaa',
'mail_smtpport' => 'aaaaa',
'mail_smtpauthtype' => 'aaaaa',
'mail_from_address' => 'aaaaa',
'has_internet_connection' => true,
'appstoreenabled' => true,
'appstoreurl' => 'https://apps.nextcloud.com/api/v0',
'apps_paths' =>
array (
0 =>
array (
'path' => '/var/www/nextcloud/apps',
'url' => '/apps',
'writable' => true,
),
),
'appcodechecker' => true,
'appstore.experimental.enabled' => true,
'updatechecker' => true,
'check_for_working_webdav' => true,
'check_for_working_wellknown_setup' => true,
'loglevel' => 2,
'theme' => '',
'maintenance' => false,
'overwritewebroot' => '/nextcloud',
'debug' => false,
'trashbin_retention_obligation' => 'auto',
'filelocking.enabled' => 'true',
'memcache.local' => '\OC\Memcache\Redis',
'redis' => array(
'host' => '/var/run/redis/redis.sock',
'port' => 0,
'dbindex' => 0,
'password' => 'secret',
'timeout' => 1.5,
),
'memcache.distributed' => '\OC\Memcache\Redis',
'memcache.locking' => '\OC\Memcache\Redis',
'redis' =>
array (
'host' => 'localhost',
'port' => 6379,
'timeout' => 0.0,
'dbindex' => 0,
),
'updater.release.channel' => 'stable',
'forwarded_for_headers' =>
array (
0 => 'HTTP_X_FORWARDED',
1 => 'HTTP_FORWARDED_FOR',
),
'auth.bruteforce.protection.enabled' => false,
'mail_domain' => 'outlook.de',
'mail_smtpsecure' => 'tls',
'mail_smtpauth' => 1,
'mail_smtpname' => 'aaaaa',
'mail_smtppassword' => 'aaaaa',
);