How to adjust socket descriptors?

后端 未结 5 697
盖世英雄少女心
盖世英雄少女心 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:17

    I noticed the other answers here do answer the question of how to raise the limit of socket descriptors (setting ulimit -n in /etc/default/rabbitmq-server), but none of them answered your other question (Why 829 socket descriptors when the file descriptor limit is 1024?)

    This is due to the number of other file handles that RabbitMQ is using. You will always have a lower number of socket descriptors by some degree (From my own usage, it's around 90-95% of the file descriptor limit). RabbitMQ's documentation provides the recommendation that you set your file descriptor limit to 1.5 times the number of connections you expect to have at a maximum: Tuning For A Large Number of Connections

提交回复
热议问题