Where is the correct place to increase the number of open file descriptors for a Rabbit server?

130 views
Skip to first unread message

Poky

unread,
Sep 5, 2023, 4:06:59 PM9/5/23
to rabbitmq-users

I'm trying to do everything the documentation suggests to increase RabbitMQ's open file descriptor, but it has no effect.

I have already made all the changes below and the result of rabbitmqctl status does not change.

sudo nano /etc/sysctl.conf
fs.file-max=1048576
sudo nano /etc/default/rabbitmq-server
ulimit -S -n 1048576
sudo nano /etc/rabbitmq/rabbitmq-env.conf
ulimit -S -n 1048576
#This action causes the server not to start

This directory and file does not exist: /etc/systemd/system/rabbitmq-server.service.d/limits.conf

And the result of rabbitmqctl status always looks like it always does:

File Descriptors
Total: 6, limit: 32671
Sockets: 0, limit: 29401

And my ulimit is like this:

$ulimit -Sn
1048576
$ulimit -Hn

Poky

unread,
Sep 5, 2023, 4:44:12 PM9/5/23
to rabbitmq-users
I fixed the problem by doing the following:

$ mkdir /etc/systemd/system/rabbitmq-server.service.d
$ touch /etc/systemd/system/rabbitmq-server.service.d/limits.conf
$ nano /etc/systemd/system/rabbitmq-server.service.d/limits.conf
$ systemctl daemon-reload
$ systemctl restart rabbitmq-server.service

Luke Bakken

unread,
Sep 7, 2023, 11:13:48 AM9/7/23
to rabbitmq-users
Reply all
Reply to author
Forward
0 new messages