From: Wolfgang M. M. <wol...@us...> - 2004-08-12 18:54:31
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/storage In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11331/src/org/exist/storage Modified Files: NativeBroker.java Log Message: Switched back to simple LRU page replacement strategy for document data in dom.dbx. As every page is accessed at most two times during storage, the LRDCache did not work very well. Improved the LRU implementation. Index: NativeBroker.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/storage/NativeBroker.java,v retrieving revision 1.97 retrieving revision 1.98 diff -C2 -d -r1.97 -r1.98 *** NativeBroker.java 6 Aug 2004 15:24:48 -0000 1.97 --- NativeBroker.java 12 Aug 2004 18:54:22 -0000 1.98 *************** *** 2528,2531 **** --- 2528,2534 ---- public void sync() { + Runtime runtime = Runtime.getRuntime(); + LOG.debug("Memory: " + (runtime.totalMemory() / 1024) + "K total; " + + (runtime.freeMemory() / 1024) + "K free"); // uncomment this to get statistics on page buffer usage elementsDb.printStatistics(); |