### ⚠️ This issue respects the following points: ⚠️
- [X] This is a **bug**, no…t a question or a configuration/webserver/proxy issue.
- [X] This issue is **not** already reported on [Github](https://github.com/nextcloud/server/issues?q=is%3Aopen+is%3Aissue+label%3Abug) OR [Nextcloud Community Forum](https://help.nextcloud.com/) _(I've searched it)_.
- [X] Nextcloud Server **is** up to date. See [Maintenance and Release Schedule](https://github.com/nextcloud/server/wiki/Maintenance-and-Release-Schedule) for supported versions.
- [X] I agree to follow Nextcloud's [Code of Conduct](https://nextcloud.com/contribute/code-of-conduct/).
### Bug description
Every few cron runs I see the warning `Used memory grew by more than 10 MB when executing job OCA\\Files_Trashbin\\BackgroundJob\\ExpireTrash` in the log. Running with loglevel 0 does not reveal any more details:
```
{
"reqId": "ai9MUjylJUXj6YXlKtXv",
"level": 0,
"time": "2024-05-05T19:41:34+02:00",
"remoteAddr": "",
"user": "--",
"app": "cron",
"method": "",
"url": "--",
"message": "CLI cron call has selected job OCA\\Files_Trashbin\\BackgroundJob\\ExpireTrash (id: 5, arguments: null)",
"userAgent": "--",
"version": "29.0.0.19",
"data": {
"app": "cron"
}
}
{
"reqId": "ai9MUjylJUXj6YXlKtXv",
"level": 0,
"time": "2024-05-05T19:41:34+02:00",
"remoteAddr": "",
"user": "--",
"app": "cron",
"method": "",
"url": "--",
"message": "Starting job OCA\\Files_Trashbin\\BackgroundJob\\ExpireTrash (id: 5, arguments: null)",
"userAgent": "--",
"version": "29.0.0.19",
"data": {
"app": "cron"
}
}
{
"reqId": "ai9MUjylJUXj6YXlKtXv",
"level": 0,
"time": "2024-05-05T19:41:36+02:00",
"remoteAddr": "",
"user": "--",
"app": "cron",
"method": "",
"url": "--",
"message": "Finished job OCA\\Files_Trashbin\\BackgroundJob\\ExpireTrash (id: 5, arguments: null) in 2 seconds",
"userAgent": "--",
"version": "29.0.0.19",
"data": {
"app": "cron"
}
}
{
"reqId": "ai9MUjylJUXj6YXlKtXv",
"level": 2,
"time": "2024-05-05T19:41:36+02:00",
"remoteAddr": "",
"user": "--",
"app": "cron",
"method": "",
"url": "--",
"message": "Used memory grew by more than 10 MB when executing job OCA\\Files_Trashbin\\BackgroundJob\\ExpireTrash (id: 5, arguments: null): 48.7 MB (before: 33 MB)",
"userAgent": "--",
"version": "29.0.0.19",
"data": {
"app": "cron"
}
}
```
### Steps to reproduce
Wait for cron to run
### Expected behavior
No error.
### Installation method
Community Manual installation with Archive
### Nextcloud Server version
29
### 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?
None
### Are you using the Nextcloud Server Encryption module?
None
### What user-backends are you using?
- [X] Default user-backend _(database)_
- [ ] LDAP/ Active Directory
- [ ] SSO - SAML
- [ ] Other
### Configuration report
```shell
{
"system": {
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"...",
"..."
],
"trusted_proxies": "***REMOVED SENSITIVE VALUE***",
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"overwrite.cli.url": "...",
"htaccess.RewriteBase": "\/",
"dbtype": "mysql",
"version": "29.0.0.19",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"mail_smtpmode": "sendmail",
"mail_smtpauthtype": "LOGIN",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "25",
"log_type": "syslog",
"logtimezone": "Europe\/Berlin",
"logfile": "",
"loglevel": 2,
"enabledPreviewProviders": [
"OC\\Preview\\PNG",
"OC\\Preview\\JPEG",
"OC\\Preview\\GIF",
"OC\\Preview\\BMP",
"OC\\Preview\\XBitmap",
"OC\\Preview\\MP3",
"OC\\Preview\\TXT",
"OC\\Preview\\MarkDown",
"OC\\Preview\\TIFF"
],
"maintenance": false,
"theme": "",
"memcache.local": "\\OC\\Memcache\\APCu",
"memcache.locking": "\\OC\\Memcache\\Redis",
"memcache.distributed": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 0,
"timeout": 0
},
"preview_max_x": 1024,
"preview_max_y": 1024,
"preview_max_scale_factor": 1,
"skeletondirectory": "",
"updater.release.channel": "stable",
"default_language": "de",
"app_install_overwrite": [
"tasks",
"polls",
"previewgenerator",
"forms",
"spreed",
"groupfolders"
],
"trashbin_retention_obligation": "auto, 30",
"default_phone_region": "DE",
"allow_local_remote_servers": true,
"debug": false,
"defaultapp": "files,dashboard"
}
}
```
### List of activated Apps
_No response_
### Nextcloud Signing status
_No response_
### Nextcloud Logs
_No response_
### Additional info
_No response_