Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #177555

Re: Best way to set maximum number of open descriptors for a process

From Greg Wooledge <wooledg@eeg.ccf.org>
Newsgroups linux.debian.user
Subject Re: Best way to set maximum number of open descriptors for a process
Date 2017-02-08 14:30 +0100
Message-ID <t8AtR-Rq-39@gated-at.bofh.it> (permalink)
References <t8yBH-88n-11@gated-at.bofh.it> <t8yV4-8fB-15@gated-at.bofh.it> <t8zxM-h3-31@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Feb 08, 2017 at 09:26:14AM -0300, Daniel Bareiro wrote:
> The process starts as a service, so it does not require a shell:

> I had thought that I could add something to the script that starts the
> process, but I'm not sure if it's the best idea from the point of view
> of maintainability because a package update could eliminate that change.

I believe the correct approach is to add one of the limitXXXX= directives
to the systemd unit.  See systemd.exec(5) for details.  Searching for
the word "limit" gets you to the correct section.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Best way to set maximum number of open descriptors for a process Daniel Bareiro <daniel-listas@gmx.net> - 2017-02-08 12:30 +0100
  Re: Best way to set maximum number of open descriptors for a process <tomas@tuxteam.de> - 2017-02-08 12:50 +0100
    Re: Best way to set maximum number of open descriptors for a process Daniel Bareiro <daniel-listas@gmx.net> - 2017-02-08 13:30 +0100
      Re: Best way to set maximum number of open descriptors for a process Greg Wooledge <wooledg@eeg.ccf.org> - 2017-02-08 14:30 +0100
        Re: Best way to set maximum number of open descriptors for a process Daniel Bareiro <daniel-listas@gmx.net> - 2017-02-08 16:40 +0100
          Re: Best way to set maximum number of open descriptors for a process Sven Hartge <sven@svenhartge.de> - 2017-02-08 18:40 +0100
            Re: Best way to set maximum number of open descriptors for a process Daniel Bareiro <daniel-listas@gmx.net> - 2017-02-09 00:30 +0100

csiph-web