How to adjust socket descriptors?

后端 未结 5 717
盖世英雄少女心
盖世英雄少女心 2021-02-02 11:15

\"enter

I want to know who to adjust quantity of the socket descriptors?

In additi

5条回答
  •  星月不相逢
    2021-02-02 12:09

    I am running RabbitMQ 3.6.3 on Ubuntu 16.04 and with those newer versions the answer given here (using ulimit in the rabbitmq-server file) no longer worked for me.

    The solution for me was to configure the limits for systemd in this file

    /etc/systemd/system/rabbitmq-server.service.d/override.conf

    In that file, put this configuration

    [Service] LimitNOFILE=32768

    Where 32768 is the number of file handles you want to configure.

    If you edit that file directly, you'll need to reload the systemd configuration with

    sudo systemctl daemon-reload

    But you can also use systemctl to edit the file, in which case it reloads the configuration automatically

    sudo systemctl edit rabbitmq-server

提交回复
热议问题