P
P
Pista2022-03-20 10:01:34
linux
Pista, 2022-03-20 10:01:34

How to increase open file limits for Mariadb?

Mar 20 09:59:54 localhost mariadbd: 2022-03-20  9:59:54 0 [Note] /usr/sbin/mariadbd (server 10.7.3-MariaDB-log) starting as process 46091 ...
Mar 20 09:59:54 localhost mariadbd: 2022-03-20  9:59:54 0 [Warning] Could not increase number of max_open_files to more than 32768 (request: 33035)

Help, how to increase the limit of open files for Mariadb?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Karabanov, 2022-03-20
@Pista

mkdir -p /etc/systemd/system/mariadb.service.d

cat > /etc/systemd/system/mariadb.service.d/override.conf <<EOF
LimitNOFILE=65535
LimitMEMLOCK=65535
EOF

systemctl daemon-reload

systemctl restart mariadb

S
Slava Rozhnev, 2022-03-20
@rozhnev

Using ulimits you can increase the limit of open files

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question