dovecot 2.2.36.4 problem with ulimit
Maciej Milaszewski
maciej.milaszewski at iq.pl
Wed Sep 16 15:45:54 EEST 2020
Hi
Thenx replay:
cat /proc/`pidof dovecot`/limits
Limit Soft Limit Hard Limit
Units
Max cpu time unlimited unlimited
seconds
Max file size unlimited unlimited
bytes
Max data size unlimited unlimited
bytes
Max stack size 8388608 unlimited
bytes
Max core file size 0 0
bytes
Max resident set unlimited unlimited
bytes
Max processes 357577 357577
processes
Max open files 65536 65536
files
Max locked memory 65536 65536
bytes
Max address space unlimited unlimited
bytes
Max file locks unlimited unlimited
locks
Max pending signals 357577 357577
signals
Max msgqueue size 819200 819200
bytes
Max nice priority 0 0
Max realtime priority 0 0
Max realtime timeout unlimited unlimited
us
Now I change in systemd
systemctl edit dovecot.service
[Service]
TasksMax=40000
LimitNOFILE=65536
LimitNPROC=357577
LimitNPROCSoft=357577
LimitSIGPENDING=357577
LimitSIGPENDINGSoft=357577
On 16.09.2020 14:17, Urban Loesch wrote:
> Hi,
>
> perhaps this?
>
> > with new debian9:
> > open files (-n) 1024
>
> Regards
> Urban
>
>
> Am 16.09.20 um 12:57 schrieb Maciej Milaszewski:
>> Hi
>> Limits:
>>
>> Where all working fine:
>>
>> core file size (blocks, -c) 0
>> data seg size (kbytes, -d) unlimited
>> scheduling priority (-e) 0
>> file size (blocks, -f) unlimited
>> pending signals (-i) 257970
>> max locked memory (kbytes, -l) 64
>> max memory size (kbytes, -m) unlimited
>> open files (-n) 65536
>> pipe size (512 bytes, -p) 8
>> POSIX message queues (bytes, -q) 819200
>> real-time priority (-r) 0
>> stack size (kbytes, -s) 8192
>> cpu time (seconds, -t) unlimited
>> max user processes (-u) 257970
>> virtual memory (kbytes, -v) unlimited
>> file locks (-x) unlimited
>>
>>
>> with new debian9:
>>
>> core file size (blocks, -c) 0
>> data seg size (kbytes, -d) unlimited
>> scheduling priority (-e) 0
>> file size (blocks, -f) unlimited
>> pending signals (-i) 257577
>> max locked memory (kbytes, -l) 64
>> max memory size (kbytes, -m) unlimited
>> open files (-n) 1024
>> pipe size (512 bytes, -p) 8
>> POSIX message queues (bytes, -q) 819200
>> real-time priority (-r) 0
>> stack size (kbytes, -s) 8192
>> cpu time (seconds, -t) unlimited
>> max user processes (-u) 257577
>> virtual memory (kbytes, -v) unlimited
>> file locks (-x) unlimited
>>
>>
>> maby systemd "something has changed"
>>
>> and add:
>>
>> echo "kernel.pid_max = 50000" >> /etc/sysctl.conf
>> sysctl -p
>> systemctl edit dovecot.service
>>
>> [Service]
>> TasksMax=40000
>> systemctl daemon-reload
>> systemctl restart dovecot.service
>>
>> cat /sys/fs/cgroup/pids/system.slice/dovecot.service/pids.max
>>
>>
>> Any idea ?
>>
>> On 16.09.2020 09:45, Maciej Milaszewski wrote:
>>> Hi
>>> I update os from debian8 to debian9
>>>
>>> # 2.2.36.4 (baf9232c1): /etc/dovecot/dovecot.conf
>>> # Pigeonhole version 0.4.24.2 (aaba65b7)
>>> # OS: Linux 4.9.0-13-amd64 x86_64 Debian 9.13
>>>
>>> All works fine but sometimes I get:
>>>
>>> Sep 16 09:17:00 dovecot4 dovecot: master: Error: service(pop3): fork()
>>> failed: Resource temporarily unavailable (ulimit -u 257577 reached?)
>>> Sep 16 09:17:00 dovecot4 dovecot: master: Error: service(imap): fork()
>>> failed: Resource temporarily unavailable (ulimit -u 257577 reached?)
>>> Sep 16 09:17:00 dovecot4 dovecot: master: Error: service(doveadm):
>>> fork() failed: Resource temporarily unavailable (ulimit -u 257577
>>> reached?)
>>> Sep 16 09:17:02 dovecot4 dovecot: master: Error: service(doveadm):
>>> fork() failed: Resource temporarily unavailable (ulimit -u 257577
>>> reached?)
>>> Sep 16 09:17:02 dovecot4 dovecot: master: Error: service(pop3): fork()
>>> failed: Resource temporarily unavailable (ulimit -u 257577 reached?)
>>> Sep 16 09:17:02 dovecot4 dovecot: master: Error: service(imap): fork()
>>> failed: Resource temporarily unavailable (ulimit -u 257577 reached?)
>>> Sep 16 09:17:04 dovecot4 dovecot: master: Error: service(imap): fork()
>>> failed: Resource temporarily unavailable (ulimit -u 257577 reached?)
>>>
>>> Other dovecot is debian8 and problem not exists - any idea ?
More information about the dovecot
mailing list