zsh-users
 help / color / mirror / code / Atom feed
From: "Heinrich Götzger" <goetzger@gmx.de>
To: zsh-users@sunsite.dk
Subject: Re: [solved] ulimit -n to small
Date: Fri, 14 Apr 2006 23:28:12 +0200	[thread overview]
Message-ID: <444013EC.3070406@gmx.de> (raw)

Heinrich Goetzger wrote:
> Hi,
> 
> my zsh 4.2.5 on gentoo has a problem with the number of file descriptors.
> They can not raise the hard limit even with the -S set as mentioned in [1]:
> 
> $ ulimit -n
> 1024
> $ ulimit -SHn 2048
> ulimit: can't raise hard limits
> $ ulimit -Sn 2048 
> ulimit: value exceeds hard limit
> 
> But I need a value for file descriptors > 5000 for some java application.
> With ksh and zsh @ root it works as expected:
> ulimit -n 1024
> # ulimit -n     
> 1024
> # ulimit -n 8192
> # ulimit -n     
> 8192
> 
> How can I change the hard limit for the file descriptors?

so, it's been quite a year since I asked this qustion. But now I've 
found some nice sollution on my gentoo box:

just add
<user>              hard    nofile          16384
<user>              soft    nofile          8192
to file: /etc/security/limits.conf

and all is fine now.

Cheers

Heinrich

> [1]: http://zsh.sunsite.dk/Doc/Release/zsh_16.html


                 reply	other threads:[~2006-04-14 21:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=444013EC.3070406@gmx.de \
    --to=goetzger@gmx.de \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).