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

Path csiph.com!feeder.erje.net!2.eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
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 Wed, 08 Feb 2017 14:30:03 +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>
X-Mailbox-Line From debian-user-request@lists.debian.org Wed Feb 8 13:20:18 2017
Old-Return-Path <wooledg@eeg.ccf.org>
X-Amavis-Spam-Status No, score=-10.199 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5, RP_MATCHES_RCVD=-3.199] autolearn=ham autolearn_force=no
X-Policyd-Weight using cached result; rate: -6.1
Mail-Followup-To debian-user@lists.debian.org
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent Mutt/1.4.2.3i
X-Mailing-List <debian-user@lists.debian.org> archive/latest/717157
List-ID <debian-user.lists.debian.org>
List-URL <https://lists.debian.org/debian-user/>
List-Archive https://lists.debian.org/msgid-search/20170208132002.GD7168@eeg.ccf.org
Approved robomod@news.nic.it
Lines 10
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Wed, 8 Feb 2017 08:20:02 -0500
X-Original-Message-ID <20170208132002.GD7168@eeg.ccf.org>
X-Original-References <9f43e085-36a7-0883-770b-7dce3f83e439@gmx.net> <20170208114213.GA10630@tuxteam.de> <80a55aa2-2bc3-420f-8f0b-5ecd7df8cdea@gmx.net>
Xref csiph.com linux.debian.user:177555

Show key headers only | 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