[MDEV-18360] out of memory with systemd >= 240 Created: 2019-01-23  Updated: 2019-01-27  Resolved: 2019-01-27

Status: Closed
Project: MariaDB Server
Component/s: Galera, Server, wsrep
Affects Version/s: 10.3.12
Fix Version/s: 10.4.2, 10.1.38, 5.5.63, 10.0.38, 10.2.22, 10.3.13

Type: Bug Priority: Major
Reporter: Christian Hesse Assignee: Vicențiu Ciorbaru
Resolution: Fixed Votes: 0
Labels: crash
Environment:

Arch Linux



 Description   

In Arch Linux we have packages for MariaDB and Galera. Running MariaDB with Galera enabled used to work just fine, but broke with recent systemd updates. The breakage was caused with this systemd change: main: bump fs.nr_open + fs.max-file to their largest possible values

Starting mariadb.service results in an out of memory exception within seconds. This can be worked around by lowering fs.nr_open. Looks like any data structure is multiplied with the maximum open files and allocated instantly.

This has been reported to Arch Linux bugs tracker (FS#61433 - systemd-240 galera_recovery killed by OOM) and systemd isssue tracker (systemd 240 fails to start mariadb + galera on Arch Linux).



 Comments   
Comment by Vicențiu Ciorbaru [ 2019-01-23 ]

Solution proposed here: https://github.com/systemd/systemd/issues/11510#issuecomment-456999084

Generated at Thu Feb 08 08:43:31 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.