jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Jackrabbit Wiki] Update of "ExamplesPage" by ThomasMueller
Date Mon, 02 Jul 2007 07:36:08 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jackrabbit Wiki" for change notification.

The following page has been changed by ThomasMueller:
http://wiki.apache.org/jackrabbit/ExamplesPage

------------------------------------------------------------------------------
  Repository repository = factory.getRepository("rmi://localhost:1100/jackrabbit");
  }}}
  
+ === Jackrabbit Cache Configuration ===
+ 
+ Use the following code to change the settings of the Jackrabbit item state cache:
+ {{{
+ CacheManager manager = ((RepositoryImpl) repository).getCacheManager();
+ manager.setMaxMemory(8 * 1024 * 1024); // default is 16 * 1024 * 1024
+ manager.setMaxMemoryPerCache(1024 * 1024); // default is 4 * 1024 * 1024
+ manager.setMinMemoryPerCache(64 * 1024); // default is 128 * 1024
+ }}}
+ 

Mime
View raw message