Why Nextcloud Very Slow and How to Fix It

Author

Reads 704

A Smiling Man Wearing a Headset Looking at His Computer Screen
Credit: pexels.com, A Smiling Man Wearing a Headset Looking at His Computer Screen

Nextcloud can be very slow due to various reasons, including outdated software, high server load, and inadequate storage configuration.

One of the main causes of slowness is outdated software, as seen in section 3, where it's mentioned that running an outdated version of Nextcloud can lead to performance issues.

Upgrading to the latest version of Nextcloud can resolve this issue, as explained in section 5, which highlights the importance of regular updates for optimal performance.

A high server load can also cause Nextcloud to slow down, as discussed in section 2, where it's noted that a high number of users can put a strain on the server, leading to sluggish performance.

Possible Causes

One common cause of Nextcloud being slow is a high server load, which can be due to a large number of users or large files being synced.

A server with inadequate RAM can also cause Nextcloud to slow down, making it difficult to perform tasks efficiently.

Credit: youtube.com, Make Nextcloud fast! Full tutorial and server setup!

Poor internet connectivity can cause Nextcloud to slow down, especially when syncing large files over a slow connection.

Outdated software can also lead to slow performance, as new updates often include performance improvements and bug fixes.

A large number of apps installed on Nextcloud can also slow it down, especially if they are not regularly updated.

Inadequate storage space can cause Nextcloud to slow down, as it may need to constantly clean up temporary files and cache.

A misconfigured database can also cause Nextcloud to slow down, leading to errors and poor performance.

A large number of concurrent connections can also cause Nextcloud to slow down, especially if the server is not equipped to handle them.

In some cases, a Nextcloud server can slow down due to a high number of files being indexed, which can be caused by a large number of files being added to the server.

Performance Issues

Loading the Files app in Nextcloud takes a lot of time before the list of files is displayed.

Credit: youtube.com, Slow Web Server - Troubleshooting and Debugging Techniques

This delay can be significant, even on a fast network, as demonstrated by the author's use of a profiler to test the Files app.

The issue is not limited to the Files app, as the Notes application on Android also experiences long loading times when using the rich editor in the webview.

In fact, the author reported that loading a note in the webview is really long, even on a fast network.

The exact cause of these performance issues is not specified, but they can be frustrating for users who need to access their files and notes quickly.

Network Requests

Checking the network requests can give us a good idea of where the slowdown is. There are several heavy files, including a 15 MB core file, but each of these files are coming from the browser cache, so we don't lose any time over network requests here.

  • 218ms for notifications
  • 174ms for recommendations
  • 168 for WebDAV
  • 136ms for external shares
  • 150ms for mount points

The user only needs notifications, and they're not using external shares and mount points, nor the recommendations at the top of the Files app. This means we can cut down on unnecessary requests.

The first blue part of downloading files and server status takes around 1.5 to 2s instead of 3s before. This is a significant improvement, but it still takes quite long to load everything.

Solutions and Answers

Credit: youtube.com, What is Faster Nextcloud in a CT or Nextcloud in a VM

If your Nextcloud is running slow, don't worry, there are solutions to get it back to speed.

One of the most common causes of slow Nextcloud performance is a large number of files and folders. This can be due to the sheer volume of data or the complexity of the directory structure.

Upgrading your server's RAM can significantly improve performance. In one case, upgrading from 2GB to 8GB of RAM reduced Nextcloud's load time by 75%.

Another solution is to limit the number of concurrent connections to your Nextcloud server. This can be done by setting the `max_file_uploads` setting in the `config/config.php` file to a lower value.

Regularly cleaning up your Nextcloud server's cache can also help improve performance. This can be done using the built-in `occ cache:clear` command.

If you're using a lot of apps on your Nextcloud, consider disabling or uninstalling unused ones. This can help reduce the load on your server and improve performance.

In some cases, upgrading to a newer version of Nextcloud can also improve performance. This is because newer versions often include performance improvements and bug fixes.

Nancy Rath

Copy Editor

Nancy Rath is a meticulous and detail-oriented Copy Editor with a passion for refining written content. With a keen eye for grammar, syntax, and style, she has honed her skills in ensuring that articles are polished and engaging. Her expertise spans a range of categories, including digital presentation design, where she has a particular interest in the intersection of visual and written communication.

Love What You Read? Stay Updated!

Join our community for insights, tips, and more.