本文介绍了鸽舍工艺限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有时候我的鸽舍日志返回:

Sometimes my dovecot log return:

service(imap-login): process_limit (512) reached, client connections are being dropped

我可以在dovecot配置文件中增加process_limit,但是我不明白,它将如何影响系统.如何诊断为什么过程极限太高?我的postfix + dovecot + roundcube系统中大约有50个用户.

I can increase process_limit in dovecot config file, but i dont understand, how will it affect the system.How to diagnose why process limit is too high? I have around 50 users in my postfix+dovecot+roundcube system.

我的配置:

  • FreeBSD 10.0稳定
  • Postfix 2.10
  • 鸽舍2.2.12

推荐答案

Dovecot有两种登录过程模式.

Dovecot have two modes for login processes.

第一个称为secure mode.

当单个进程为所有客户端提供服务时,第二个称为performance mode.

Second is called performance mode when single process serve all the clients.

事实上,performance mode并不是那么不安全,但是secure mode却是偏执狂.

In fact performance mode is not so insecure, but rather secure mode is paranoid.

您必须在配置中设置所需的模式:

You have to set desired mode in the config:

service imap-login {
  inet_listener imap {
    port        = 143
  }
  inet_listener imaps {
    port        = 993
    ssl         = yes
  }
# service_count = 0 # Performance mode
  service_count = 1 # Secure mode
  process_min_avail = 1
}

在我的情况下,性能模式可为1k +用户提供服务.

In my case performance mode serve to 1k+ users.

这篇关于鸽舍工艺限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-24 01:52