We patched our 1.4.1 build with SOLR-1969<https://issues.apache.org/jira/browse/SOLR-1969>(making MMapDirectory configurable) and realized a 64% search performance boost on our Linux hosts.
On Mon, Aug 8, 2011 at 10:05 AM, Dyer, James <james.d...@ingrambook.com>wrote: > If you want to try MMapDirectory with Solr 1.4, then copy the class > org.apache.solr.core.MMapDirectoryFactory from 3.x or Trunk, and either add > it to the .war file (you can just add it under "src/java" and re-package the > war), or you can put it in its own .jar file in the "lib" directory under > "solr_home". Then, in solrconfig.xml, add this entry under the root > "config" element: > > <directoryFactory class="org.apache.solr.core.MMapDirectoryFactory" /> > > I'm not sure if MMapDirectory will perform better for you with Linux over > NIOFSDir. I'm pretty sure in Trunk/4.0 it's the default for Windows and > maybe Solaris. In Windows, there is a definite advantage for using > MMapDirectory on a 64-bit system. > > James Dyer > E-Commerce Systems > Ingram Content Group > (615) 213-4311 > > > -----Original Message----- > From: Li Li [mailto:fancye...@gmail.com] > Sent: Monday, August 08, 2011 4:09 AM > To: solr-user@lucene.apache.org > Subject: how to enable MMapDirectory in solr 1.4? > > hi all, > I read Apache Solr 3.1 Released Note today and found that > MMapDirectory is now the default implementation in 64 bit Systems. > I am now using solr 1.4 with 64-bit jvm in Linux. how can I use > MMapDirectory? will it improve performance? >