On Thu, 2003-07-17 at 18:27, Chris Kantarjiev wrote:
> err: Couldn't open temporary file './swtmplocD14751': Too many open files
> Help? Is this running into a per-process limit rather than an overall limit,
> perhaps?
Same problem was mentioned on June 21 for MacOSX. Simple problem with a
simple solution.
Economy mode (-e) uses 377 temp files simultaneously.
Probably a shell limit if you've set the hard limits. For csh look at
'unlimit' and for Bourne look at 'ulimit'
BASH under Linux:
$ ulimit -a | grep open
open files (-n) 1024
$ swish-e -e -i /usr/share/doc/swish-e/
Indexing Data Source: "File-System"
Indexing "/usr/share/doc/swish-e/"
Removing very common words...
no words removed.
Writing main index...
Sorting words ...
Sorting 3723 words alphabetically
Writing header ...
Writing index entries ...
Writing word text: Complete
Writing word hash: Complete
Writing word data: Complete
3723 unique words indexed.
4 properties sorted.
54 files indexed. 690859 total bytes. 70946 total words.
Elapsed time: 00:00:02 CPU time: 00:00:01
Indexing done!
OK that worked. Let's break it:
$ ulimit -n 375
$ ulimit -a | grep open
open files (-n) 375
$ swish-e -e -i /usr/share/doc/swish-e/
Indexing Data Source: "File-System"
Indexing "/usr/share/doc/swish-e/"
Removing very common words...
err: Couldn't open temporary file './swtmplocKVAym4': Too many open
files
.
--
David Norris
http://www.webaugur.com/dave/
ICQ - 412039
Received on Fri Jul 18 01:05:52 2003