Closed chmeyer closed 9 years ago
Don't know exactly the cause. At least, I did similar stuff previously and didn't have
this problem. Try:
(1) query the English and German Wiktionary editions separately using
IWiktionaryEdition edition = JWKTL.openEdition..
and check if the error is the same or if there's a problem in the collection code (haven't
used that very often recently).
(2) Set an explicit cache size, e.g.,
wiktionary = JWKTL.openEdition(wiktionaryPath, 500 * 1024 * 1024L);
Sometimes, I have the impression that the BerkeleyDB makes strange things with the
available memory...
Reported by chmeyer.de
on 2013-12-04 15:56:53
I tried your both approaches in my specific scenario:
(1) Isn't working: when opening two separate Wiktionary via JWKTL.openEdition, instead
of openCollection(...), but switch after each entry, the OutOfMemoryError still can
be provoked. Reading the editions in sequential order works, but doesn't fit my problem.
(2) With 500 MB or even 200 MB the OutOfMemoryError is still occuring. I was apple
to iterate the two Wiktionary's with an ideal value of 50 MB. I tested it with 100
MB, 1MB and even less, and all of that caching sizes where working for me, but actually
the 50 MB configuration is the fastest running in my current setup. [Does anyone have
other experiences or more values to add?]
In short: the problem is still existing, but can be avoided by a sufficient small explicit
cache size value.
Reported by andreas.schulz.de
on 2013-12-10 16:44:42
Originally reported on Google Code with ID 5
Reported by
andreas.schulz.de
on 2013-12-04 11:54:41