[Plucene] Problem with too many open files
J Robinson
jrobinson852 at yahoo.com
Mon Mar 8 13:39:20 GMT 2004
I've run into that "too many open files" problem with
other software on OS X, and a line like the following
seemed to be the solution: (this is for bash)
ulimit -n 2000
hope this helps
jrobinson
--- Florian Helmberger <fh at laudatio.com> wrote:
> Hi.
>
> I'm just looking into Plucene (on a workstation
> running Mac OS 10.3)
> and ran into an error thrown by t/stress.t:
>
> ===
> Plucene::Store::InputStream, r:
> t/homer_index/foo/_21.frq Too many open
> files at lib/Plucene/Store/InputStream.pm line 41.
> 1..48
> ===
>
> I think this leads to a problem with the file
> handling which just pops
> up earlier on Mac OS X (which has a limit of 256
> open files). I
> switched to a box running AIX 4.3 and used the index
> generated by the
> t/stress.t and searched for 'dark wine' with this
> loop:
>
> for (1 .. 100) {
> my $index =
> Plucene::Simple->open("./homer_index");
> @ids = $index->search($query);
> }
>
> This works fine until I loop 165 times, resulting in
> the mentioned
> error (sorry, I don't know what the limit of open
> files under AIX is).
>
> One might think that this problem exists since 1.04
> as there has been
> the first error report showing this behaviour:
>
http://nntp.x.perl.org/group/perl.cpan.testers/121536
> .
>
> Nevertheless I'm very impressed by Plucene - many
> thanks to you guys :)
>
> Florian
>
> _______________________________________________
> Plucene mailing list
> Plucene at kasei.com
> http://www.kasei.com/mailman/listinfo/plucene
__________________________________
Do you Yahoo!?
Yahoo! Search - Find what youre looking for faster
http://search.yahoo.com
More information about the Plucene
mailing list