Re: Problem when try to make a bench of indexing (a dictionary with 120.000 words)

2008-04-10 Thread Toke Eskildsen
On Thu, 2008-04-10 at 15:42 -0300, Leandro wrote: > machine1: Windows XP SP2, Celerom 2.66GHz e 256MB If that is a physical machine (as opposed to virtual), then the amount of RAM if not at all well balanced against the processor speed. > [...] java.lang.OutOfMemoryError: Java heap space How muc

Re: Problem when try to make a bench of indexing (a dictionary with 120.000 words)

2008-04-10 Thread Leandro
> > If tye 16M means you're only giving the process that much memory, it > surprises > me that it runs at all. Especially since you're putting it all in a > RAMdir. > Sorry that 16M is dictonarySizeInBytes() I would imagine that it is the same size of index... Well when I start to use a Dictonary

Re: Problem when try to make a bench of indexing (a dictionary with 120.000 words)

2008-04-10 Thread Erick Erickson
If tye 16M means you're only giving the process that much memory, it surprises me that it runs at all. Especially since you're putting it all in a RAMdir. Or is that 16M referring to something else? Best Erick On Thu, Apr 10, 2008 at 2:42 PM, Leandro <[EMAIL PROTECTED]> wrote: > Hello, > > *Sam

Problem when try to make a bench of indexing (a dictionary with 120.000 words)

2008-04-10 Thread Leandro
Hello, *Sample code:* SpellChecker spell; RAMDirectory dram = new RAMDirectory(); Dicionario dic = new Dicionario(); //one implementation of spell.Dictionary spell= new SpellChecker(dram); spell.indexDictionary(dic); //indexing... *Then I got the:* machine1: Windows XP SP2, Celerom 2.66GHz e 256M