Do you want to find out the service/process's own vsz_limit or another
service's vsz_limit? Own vsz_limit would be easiest to get with
getrlimit(RLIMIT_AS) as Aki said. If you want another service's vsz_limit
that's not easily possible, because those settings just aren't sent to anything
except
Dovecot master process uses setrlimit to enforce the limit, so you should be
able to get it with RLIMIT_AS or RLIMIT_DATA, iirc it depends a bit on os which
is used.
I dont think service->vsz_limit is available on the service itself.
Aki
On 21 November 2021 12.20.16 UTC, Joan Moreau wrote:
>
You could try getrlimit RLIMIT_AS.
Aki
On 20 November 2021 17.22.17 UTC, Joan Moreau wrote:
>
>
>Hello
>
>How to get, programatically (C/C++), the value of teh dovecot.conf file
>of vsz_limit and default_vsz_limit ?
>
>Thank you
There's a doveconf command that will get that for you eg
doveconf default_vsz_limit
=> default_vsz_limit = 256 M
On 21/11/2021 02.34, William Edwards wrote:
Op 20 nov. 2021 om 18:23 heeft Joan Moreau het volgende
geschreven:
Hello
How to get, programatically (C/C++), the value of teh
> Op 20 nov. 2021 om 18:23 heeft Joan Moreau het volgende
> geschreven:
>
>
> Hello
>
>
>
> How to get, programatically (C/C++), the value of teh dovecot.conf file of
> vsz_limit and default_vsz_limit ?
>
Parse doveconf?
> Thank you
>
>