Aw: Re: Lmtp Memory Limit

Thomas Manninger
Mon, 15 Jan 2018 10:02:24 -0000

<div
style="font-family: Verdana;font-size: 12.0px;">
Hi,



thanks for your response!



Now, i already solved the problem, but it's possible a
bug?



If i use the default values:

default_vsz_limit = 256M

service lmtp {

vsz_limit = $default_vsz_limit

}



After restart, i check the limits of the lmtp process:


Max data size 268435456 268435456 bytes




The limit is 256KB instead of 256MB?



If i change the value to 512MB, the process limit is
512KB.



When i set "20000M" as limit, the process limit is really
20000MB.



I am using CentOS 7.4. and dovecot 2.2.33.2 (d6601f4ec).



Who is parseing the values from the unit (MB) to Bytes? Dovecot or a
linux libary function??

Best regards,

Thomas Manninger



<div name="quote" style="margin:10px 5px 5px 10px; padding:
10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word;
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Gesendet:
Montag, 15. Januar 2018 um 08:16 Uhr
Von: "Aki Tuomi"
<aki.tuomi@dovecot.fi>
An: "Thomas Manninger" <DBGTMaster@gmx.at>,
Dovecot@dovecot.org
Betreff: Re: Lmtp Memory Limit



On 14.01.2018 09:11, Thomas Manninger wrote:
> Hi,
>
> i am using dovecot 2.2.33.2 on CentOS 7.4.
>
> Since i upgraded from CentOS 7.2. to CentOS 7.4. (without upgrading
dovecot), my dovecot sieve-pipe scripts crash with Out of memory:
> Out of memory (allocated 262144) (tried to allocate 8793 bytes)
>
> There are some memory limits in dovecot or sieve? Can i change this
value?
>
> Kernel limitks:
> [root@xxx software]# ulimit -a
> core file size (blocks, -c) 0
> data seg size (kbytes, -d) unlimited
> scheduling priority (-e) 0
> file size (blocks, -f) unlimited
> pending signals (-i) 26505
> 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) 26505
> virtual memory (kbytes, -v) unlimited
> file locks (-x) unlimited
>
>
> Dovecot is running as user mail:
> su mail
> bash-4.2$ ulimit -a
> core file size (blocks, -c) 0
> data seg size (kbytes, -d) unlimited
> scheduling priority (-e) 0
> file size (blocks, -f) unlimited
> pending signals (-i) 26505
> 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) 4096
> virtual memory (kbytes, -v) unlimited
> file locks (-x) unlimited
>
> Can someone help me?
>
> Thanks for help!
>
> Best regards
> Thomas Manninger

Check 'doveconf service/lmtp' for dovecot imposed limits. If
vsz_limit
is 18446744073709551615, it means default_vsz_limit is used. Check
out
'doveconf default_vsz_limit'. You can then decide if you want to
set
some limit for lmtp only or increase the default limit.

Aki