Hello,help,thank you!

could you tell me how to get the current size of cache?
not the max or config size.which I want is the dynamic status of size.
and how to get the last/bottomest entry of a database stored in a configured max size cache?
because i want to get and put the last entry into disk database(oracle) continuously when cache is full.
and how to set to let it won't dump into disk by bdb form automatically.
thank you!

Hi,
could you tell me how to get the current size of cache?not the max or config size.which I want is the dynamic status of size.>
EnvironmentStats.getCacheTotalBytes
and how to get the last/bottomest entry of a database stored in a configured max size cache?because i want to get and put the last entry into disk database(oracle) continuously when cache is full.
and how to set to let it won't dump into disk by bdb form automatically.>
I'm not sure I understand what you're asking. My best guess is that you want to know how many records you can insert without filling the cache. Is that right?
There is no way to predict this in advance with 100% accuracy, but the DbCacheSize utility will give you an approximate number.
If you want to insert records until the cache is full, the best approach is to insert records until eviction starts, and then stop inserting records. Eviction starts when EnvironmentStats.getNEvictPasses is greater than zero.
You can get EnvironmentStats with Environment.getStats.
--mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

Maybe you are looking for

  • Inbound UMS Adapter Issues with Receiving Emails from Lotus Notes

    Hi, I have this requirement in my project where I need to read the mails from a particular Email Account which has been created in Lotus Notes. The IMAP Host and port is enabled for the same and I am setting all these in my Server's EM Console UMS Dr

  • Regarding Pen Tool

    how do i duplicate certain parts of a path? cuz i'm tryin to join curves together and they are not smooth is if i try to trace it again [IMG]http://i40.photobucket.com/albums/e227/fusioniz/Adjoining.jpg[/IMG]

  • Premiere Elements 10 Transitions not working

    I have added cross disolve transitions to Premiere Elements 10, and tried increasing duration, but does not seem to work (just vague blurring).  I have recorded to DVD to see if transitions visible, but to no avail. I have been successful in Premier

  • How to install silverlight on OS X 10.10.2

    I've just bough a second-hand MacBook Pro, 13" 2.5 GHz Intel Core i5, and I've loaded up OS X 10.10.2. Whenever I try to download Silverlight I get the message "One moment, please, while the current Silverlight installation status is determined..." a

  • Handle to Device Context

    Hi, i'm programming an application in LabView 6.1 using an ActiveX control (an image). I want to take the image (ActiveX control) and convert to a picture in Labview. A method of this ActiveX is "DrawToDc" and the syntax in C is "object.DrawToDC(hDC