server icon indicating copy to clipboard operation
server copied to clipboard

[Bug]: Nextcloud 27 very slow

Open c-prompt opened this issue 2 years ago • 3 comments

⚠️ This issue respects the following points: ⚠️

Bug description

Just upgraded to Nextcloud 27 (PHP 8.2.7) and all pages are deathly slow. Nextcloud 26 had some lag but was generally snappy.

Based on troubleshooting, it seems to be related to the size of these Javascript files. For example, /dist/core-common.js?v=7308632d-22 seems to be downloading 16.1 MB on all pages (this is on the login screen):

Nextcloud 27 slow - login screen

In fact, /dist/core-common.js?v=7308632d-22 is redownloading on every new page no matter the browser (i.e., even if the file has to be that big, it's not caching locally).

There are other files that seem huge as well. For example, once I login, file /apps/calendar/js/calendar-main.js?v=7308632d-22 is 9.9 MB:

Nextcloud 27 slow - after login

I'm not seeing any errors on the Admin Overview page:

Nextcloud 27 Settings Admin Overview

Nothing in the logs suggesting any other hang-up. Perhaps this is a header problem? (Ignore the check in Chrome's Disable Cache box - same problem occurs even when cache is enabled/that check isn't there.)

Steps to reproduce

  1. Upgrade to Nextcloud 27.
  2. Click on any Nextcloud page.

Expected behavior

Better than each page taking 2-4 minutes to download.

Installation method

None

Nextcloud Server version

27

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.2

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Upgraded to a MAJOR version (ex. 22 to 23)

Are you using the Nextcloud Server Encryption module?

Encryption is Enabled

What user-backends are you using?

  • [ ] Default user-backend (database)
  • [ ] LDAP/ Active Directory
  • [ ] SSO - SAML
  • [ ] Other

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

c-prompt avatar Jun 14 '23 16:06 c-prompt

With this, files will certainly be redownloaded. image

solracsf avatar Jun 14 '23 17:06 solracsf

With this, files will certainly be redownloaded. image

As I mentioned but probably wasn't clear, the screen print was taken with "Disable cache" checked. However, I've also tried it without it checked and I have the same problem.

c-prompt avatar Jun 14 '23 17:06 c-prompt

Not directly related (as the file should still be cached in the browser) but linking to #38502 and https://help.nextcloud.com/t/public-library-dist-core-common-js-is-very-large/162339 as the size of the file has grown from v25.

Edit: See also https://help.nextcloud.com/t/slow-page-load-super-large-assets/161001/3.

c-prompt avatar Jun 14 '23 18:06 c-prompt

After fiddling a lot, the issue seems to be gone. Sadly, I can't tell what I changed that made the difference. Closing.

c-prompt avatar Jun 14 '23 18:06 c-prompt