Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Perl 5.32.0 Too many open files ...

by Fletch (Chancellor)
on Dec 02, 2020 at 14:51 UTC ( #11124520=note: print w/replies, xml ) Need Help??

in reply to Perl 5.32.0 Too many open files ...

On *NIX there's a notion of a per-process limit for file descriptors (among other things). There's a command ulimit built into your shell which will let you manipulate these values. Depending on the shell the exact output will vary, but running ulimit -a should dump out what the current limit is (and show you what the specific option is for file descriptors; probably -n). You can bump that value up to whatever hard limit the OS has in place (displayed with something like ulimit -H -a).

Edit: slightly related: if you ever needed to manipulate these directly from perl you can use the BSD::Resource module; your particular case though sounds like you're inheriting a small limit and you might want to bump things up in the shell you're running stuff from (child processen inherit their parent's limit settings and pass them on to their subprocessen).

The cake is a lie.
The cake is a lie.
The cake is a lie.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11124520]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2021-04-14 08:27 GMT
Find Nodes?
    Voting Booth?

    No recent polls found