V11 memory leak

Hi all,

Twice in the past couple of weeks NextCloud has brought my server down due to a memory leak; the server becomes unresponsive and when I log in to via the VNC terminal at my hosting company the server is reporting out of swap space and my only option is a reboot. I’m running NC on a VPS with 1GB memory and 1.7GB of swap space. I can’t replicate the issue because I obviously don’t know what process is leaking memory.

Any thoughts on why this might be happening and how I might prevent it?

Nextcloud version 11.0.1
Operating system and version FreeBSD v11.0-RELEASE-P7
Apache version 2.4.25_1
PHP version 5.6.30

~/www/nextcloud $ sudo cat config/config.php

<?php $CONFIG = array ( 'instanceid' => 'xxx', 'passwordsalt' => 'xxx', 'datadirectory' => '/mnt/disk10/data', 'dbtype' => 'mysql', 'version' => '11.0.1.2', 'dbname' => 'owncloud', 'dbhost' => '127.0.0.1', 'dbtableprefix' => 'oc_', 'dbuser' => 'owncloud', 'dbpassword' => 'xxx', 'installed' => true, 'maintenance' => false, 'theme' => '', 'forcessl' => true, 'trusted_domains' => array ( 0 => 'xxx', 1 => 'xxx, ), 'mail_from_address' => 'root', 'mail_smtpmode' => 'smtp', 'mail_smtphost' => '127.0.0.1', 'mail_smtpport' => 10026, 'mail_domain' => 'xxx', 'secret' => 'xxx', 'logfile' => '/var/log/nextcloud.log', 'logtimezone' => 'Europe/Amsterdam', 'trashbin_retention_obligation' => '180, auto', 'overwrite.cli.url' => '/nextcloud', 'overwritewebroot' => '/nextcloud', 'loglevel' => 0, 'memcache.local' => '\\OC\\Memcache\\APCu', );

Please use the issue tracker :wink: https://github.com/nextcloud/server/