Skip to content

[Bug]: High CPU Load Around 2:00 AM Due to Nextcloud Cron and MariaDB #62495

Description

@qibao07

⚠️ This issue respects the following points: ⚠️

Bug description

I noticed something similar.

Around 2:00 AM, my server becomes noticeably louder. Looking at the running processes, the main ones are Nextcloud cron and MariaDB, with MariaDB executing some slow queries and using much more CPU.

Checking the CPU load history, this happens almost every day between 2:00 AM and 3:00 AM.

Is there any additional Nextcloud cron job or scheduled maintenance that typically runs during this time?

Image

Steps to reproduce

I then reviewed my historical CPU load data and found that this is not a one-time event. Almost every day between 2:00 AM and 3:00 AM, the CPU load is significantly higher than during the rest of the day.

Expected behavior

Normal low CPU load.

Nextcloud Server version

33

Operating system

Debian/Ubuntu

PHP engine version

None

Web server

None

Database engine version

None

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

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

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

Configuration report

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

*/5 * * * * docker exec -u 33 my-nextcloud php -f /var/www/html/cron.php
*/10 * * * * docker exec -u 33 my-nextcloud php occ preview:pre-generate

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmap33-feedbackbug

    Type

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions