I noticed the same behavior on my instance.
It started when I uploaded about 2Gigs through the windows app, and now my CPU usage is constantly at 100%, (from mysql) . Now I am unable to upload any more Data, a 600mb file uploaded via the website processes about 10mb and then stalls.
When i run SHOW PROCESSLIST from mysql cli, it shows 15 queries from my nextcloud database user.
mysql> SHOW PROCESSLIST;
+-----+-----------------+-----------+-----------+---------+------+------------------------+------------------------------------------------------------------------------------------------------+
| Id | User | Host | db | Command | Time | State | Info
|
+-----+-----------------+-----------+-----------+---------+------+------------------------+------------------------------------------------------------------------------------------------------+
| 5 | event_scheduler | localhost | NULL | Daemon | 5057 | Waiting on empty queue | NULL
|
| 65 | nextclouduser | localhost | nextcloud | Query | 1 | executing | SELECT `filecache`.`fileid`, `storage`, `path`, `path_hash`, `filecache`.`parent`, `filecache`.`name |
| 66 | nextclouduser | localhost | nextcloud | Query | 1 | executing | SELECT `filecache`.`fileid`, `storage`, `path`, `path_hash`, `filecache`.`parent`, `filecache`.`name |
| 68 | nextclouduser | localhost | nextcloud | Query | 0 | executing | SELECT `filecache`.`fileid`, `storage`, `path`, `path_hash`, `filecache`.`parent`, `filecache`.`name |
| 143 | nextclouduser | localhost | nextcloud | Query | 0 | executing | SELECT `filecache`.`fileid`, `storage`, `path`, `path_hash`, `filecache`.`parent`, `filecache`.`name |
| 144 | nextclouduser | localhost | nextcloud | Query | 0 | executing | SELECT `filecache`.`fileid`, `storage`, `path`, `path_hash`, `filecache`.`parent`, `filecache`.`name |
| 146 | nextclouduser | localhost | nextcloud | Query | 0 | executing | SELECT `filecache`.`fileid`, `storage`, `path`, `path_hash`, `filecache`.`parent`, `filecache`.`name |
| 222 | nextclouduser | localhost | nextcloud | Query | 1 | executing | SELECT `filecache`.`fileid`, `storage`, `path`, `path_hash`, `filecache`.`parent`, `filecache`.`name |
| 223 | nextclouduser | localhost | nextcloud | Query | 0 | executing | SELECT `filecache`.`fileid`, `storage`, `path`, `path_hash`, `filecache`.`parent`, `filecache`.`name |
| 225 | nextclouduser | localhost | nextcloud | Query | 1 | executing | SELECT `filecache`.`fileid`, `storage`, `path`, `path_hash`, `filecache`.`parent`, `filecache`.`name |
| 286 | nextclouduser | localhost | nextcloud | Query | 0 | executing | SELECT `filecache`.`fileid`, `storage`, `path`, `path_hash`, `filecache`.`parent`, `filecache`.`name |
| 287 | nextclouduser | localhost | nextcloud | Query | 0 | executing | SELECT `filecache`.`fileid`, `storage`, `path`, `path_hash`, `filecache`.`parent`, `filecache`.`name |
| 290 | nextclouduser | localhost | nextcloud | Query | 0 | executing | SELECT `filecache`.`fileid`, `storage`, `path`, `path_hash`, `filecache`.`parent`, `filecache`.`name |
| 351 | nextclouduser | localhost | nextcloud | Query | 1 | executing | SELECT `filecache`.`fileid`, `storage`, `path`, `path_hash`, `filecache`.`parent`, `filecache`.`name |
| 353 | nextclouduser | localhost | nextcloud | Query | 0 | executing | SELECT `filecache`.`fileid`, `storage`, `path`, `path_hash`, `filecache`.`parent`, `filecache`.`name |
| 355 | nextclouduser | localhost | nextcloud | Query | 0 | executing | SELECT `filecache`.`fileid`, `storage`, `path`, `path_hash`, `filecache`.`parent`, `filecache`.`name |
| 814 | root | localhost | NULL | Query | 0 | init | SHOW PROCESSLIST |
+-----+-----------------+-----------+-----------+---------+------+------------------------+------------------------------------------------------------------------------------------------------+
17 rows in set (0.00 sec)
I am running Ubuntu 22.04 and NC 25.0.3.
Restarting the mysql, apache or the whole system did not resolve the issue.