Performance Issues

Nextcloud version (eg, 18.0.2): 18.0.4
Operating system and version (eg, Ubuntu 20.04): Ubuntu 18.0.4
Apache or nginx version (eg, Apache 2.4.25): nginx version: nginx/1.14.0 (Ubuntu)
PHP version (eg, 7.1): 7.2.24-0ubuntu0.18.04.6

The issue you are facing:

When I am uploading, or downloading files, most of the NC website becomes unresponsive – even from other computers browsing the site at the same time. For example, in the GIF below I am using NextCloud Talk and am able to send messages w/o issues. Then once I start playing back a video from a different PC, suddenly all my messages stop going through. The entire site behaves in this way, navigating pages, other uploads, ect everything just comes to a halt.

It will eventually pick back up after 15-30 seconds, but then freeze again and repeat.

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

Steps to replicate it:

  1. Begin watching a video
  2. Try to navigate, or use other features of NC
  3. Notice intermittent periods of lag that come and go

The output of your Nextcloud log in Admin > Logging:
https://pastebin.com/mf6j4zJi

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

https://pastebin.com/4UUwAqmH

The output of your Apache/nginx/system log in /var/log/____:

nginx access.log: https://share.renewalofthelordstemple.com/s/KR6RseREEZTtjeJ
nginx error.log: https://share.renewalofthelordstemple.com/s/5dbfkt2JyeTAfjo

PHP message: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 315857416 bytes)

PHP is running out of memory. You are only allowing 128 MiB for a script to use, that is the absolute minimum: https://docs.nextcloud.com/server/18/admin_manual/installation/system_requirements.html?highlight=ram#memory

First action give more RAM if you have enough available. Further steps:
https://docs.nextcloud.com/server/18/admin_manual/installation/server_tuning.html

Hey, thank you for taking a look. Someone in the NextCloud IRC also suggested this, and I’ve increased the limit. It still is having an issue though.

After hours of troubleshooting, I believe this to be a problem with the disks in Azure. When I perform an upload/download (via NextCloud or even via SCP) the disk sees r_await and w_await times in the 2000-5000ms range, which seems ludicrous. I’m doing more research, but I have 0 clue on what steps to take to remedy this.

So, after seeing those crazy high r_await and w_await times on the OS disk, I moved the NextCloud tempdirectory to another drive (same drive as the data directory), and the issue has resolved.

So I guess that’s the end of this, unless there is a reason I’m supposed to keep the data directory and tmp directory on separate drives.

This is a good benchmark, if that is not working, you don’t have to check all the details of your Nextcloud setup.