openvpn icon indicating copy to clipboard operation
openvpn copied to clipboard

Increase systemd service process limit

Open peterfab9845 opened this issue 5 months ago • 2 comments

resolvconf ends up calling itself several times due to subscriber scripts and may go over 10 processes, resulting in the below message and ultimately an empty resolv.conf:

/bin/resolvconf: fork: retry: Resource temporarily unavailable

peterfab9845 avatar Aug 04 '25 05:08 peterfab9845

Hmm, I wonder whether it makes sense to increase this value or whether we should just remove it entirely. It is clearly a value that depends very much on the individual setup, especially which user openvpn is running under. 10 is probably a value that was chosen to be "high enough that it doesn't usually cause problems". To be fair, I haven't seen any other reports about this, so in most cases it seems indeed to work fine. (at least in older versions)

flichtenheld avatar Aug 04 '25 10:08 flichtenheld

In my case, openvpn is the only thing running under its user. However, if the decision is to increase rather than remove the limit, I suspect it should be TasksMax=N (limited per service) rather than LimitNPROC=N (per user, as you mentioned).

peterfab9845 avatar Aug 07 '25 04:08 peterfab9845