having trouble with Database.preload() -
11-14-2005
, 05:35 AM
Hi experts,
I'm using BDB-JE, and I want to preload the databases into memory when
my applicationloads up... However, I can't seem to get
Database.preload() to work.
I have over 1Gig of data the files in my bdb environment --but when I
call Database.preload(), the memory footprint of my process barely goes
up (only a few MB), whereas I was expecting the memory to max out.
I'm running my java process using -Xmx1500m option, and also have set
my environment config to use cachePercent=80%.
I've tried calling preload(0,0), which according to my interpretation
of the javadocs, should cause BDB to load as much of the indexes into
memory as possible.
I've also tried to call preload(1000000000, 1000000000), but that
doesn't seem to behave any differently.
Any ideas of what might be causing my problems?
Thanks!
~Heng |