You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2013/10/24 06:28:20 UTC

[Solr Wiki] Update of "SolrPerformanceFactors" by OtisGospodnetic

Dear Wiki user,

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

The "SolrPerformanceFactors" page has been changed by OtisGospodnetic:
https://wiki.apache.org/solr/SolrPerformanceFactors?action=diff&rev1=36&rev2=37

Comment:
Added references to jconsole, visualvm, and spm to OOME section. Added a reference to CloudSolrServer

  == Indexing Performance ==
  In general, adding many documents per update request is faster than one per update request.
  
- For bulk updating from a Java client, (in 3.X) consider using the [[http://lucene.apache.org/solr/api-3_6_2/index.html?org/apache/solr/client/solrj/impl/StreamingUpdateSolrServer.html|StreamingUpdateSolrServer.java]] which streams updates over multiple connections using multiple threads. '''N.B.''' In 4.X, the StreamingSolrServer has been deprecated in favour of the [[http://lucene.apache.org/solr/4_1_0/solr-solrj/index.html?org/apache/solr/client/solrj/impl/ConcurrentUpdateSolrServer.html|ConcurrentUpdateSolrServer]].
+ For bulk updating from a Java client, (in 3.X) consider using the [[http://lucene.apache.org/solr/api-3_6_2/index.html?org/apache/solr/client/solrj/impl/StreamingUpdateSolrServer.html|StreamingUpdateSolrServer.java]] which streams updates over multiple connections using multiple threads. '''N.B.''' In 4.X, the StreamingSolrServer has been deprecated in favour of the [[http://lucene.apache.org/solr/4_1_0/solr-solrj/index.html?org/apache/solr/client/solrj/impl/ConcurrentUpdateSolrServer.html|ConcurrentUpdateSolrServer]], and for SolrCloud use [[http://lucene.apache.org/solr/4_5_0/solr-solrj/org/apache/solr/client/solrj/impl/CloudSolrServer.html|CloudSolrServer]].
  
  Reducing the frequency of automatic commits or disabling them entirely may speed indexing.  Beware that this can lead to increased memory usage, which can cause performance issues of its own, such as excessive swapping or garbage collection.
  
@@ -124, +124 @@

  {{{
  java -Xms512M -Xmx1024M -jar start.jar
  }}}
+ 
+ To see how big different JVM memory pools are and how much they are utilized use tools like jconsole, visualvm, or [[http://sematext.com/spm/index.html|SPM]] for long-term monitoring.
+ 
  === Factors affecting memory usage ===
  You may also wish to try to actually reduce Solr's memory usage.