Skip to content

LimitNPROC=10 is too tight. #929

@Rombobeorn

Description

@Rombobeorn

LimitNPROC=10 is set in distro/systemd/[email protected] and distro/systemd/[email protected]. As I understand the documentation, that limit applies collectively to all the processes and threads that run in the openvpn account.

I have a box with three OpenVPN tunnels, and a so-called external script that is invoked when the tunnels go up or down. The script invokes a few other programs to notify some things of the state change, and some of those processes happen to start a second thread. When all three tunnels restart in parallel, they easily run into the ten-thread limit, even though the system resources consumed are negligible.

LimitNPROC=100 would be much less likely to cause problems, while still being low enough to serve its purpose. Things like fork bombs would have to start way more than 100 processes to do any damage on any modern computer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions