moof1138 has asked for the wisdom of the Perl Monks concerning the following question:
Second when I run this I seem to be running into an open file limit of 250 files per process. I have set ulimit to unlimited, and tried running as root but didn't get past this. I looked in the docs to see if I could find anything on open file limits, but didn't find anything. Does anyone know what might be going on here? Here is the error:mkdir "/tmp/lotsofopenfiles$$"; open (FILE1, ">>/tmp/lotsofopenfiles$$/1") || warn "$!"; print FILE1 "0"; open (FILE2, ">>/tmp/lotsofopenfiles$$/2") || warn "$!"; print FILE2 "0"; #etc...
Any advice in terms of alternate approaches etc. would be appreciated.Too many open files at openlotsoffiles.pl line 510. print() on closed filehandle FILE252 at openlotsoffiles.pl line 511. Too many open files at openlotsoffiles.pl line 512. print() on closed filehandle FILE253 at openlotsoffiles.pl line 513.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl limits on number of open files?
by theorbtwo (Prior) on May 14, 2004 at 23:17 UTC | |
|
Re: Perl limits on number of open files?
by dave_the_m (Monsignor) on May 14, 2004 at 23:20 UTC | |
|
Re: Perl limits on number of open files?
by moof1138 (Curate) on May 15, 2004 at 00:00 UTC | |
|
Re: Perl limits on number of open files?
by jonadab (Parson) on May 14, 2004 at 23:51 UTC | |
|
Re: Perl limits on number of open files?
by tilly (Archbishop) on May 16, 2004 at 20:30 UTC |