Open GoogleCodeExporter opened 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...
Original comment by chmeyer.de
on 4 Dec 2013 at 3:56
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.
Original comment by andreas....@googlemail.com
on 10 Dec 2013 at 4:44
Original issue reported on code.google.com by
andreas....@googlemail.com
on 4 Dec 2013 at 11:54