Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-10334

SOLR module eats a lot of memory

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Critical
    • None
    • 6.0
    • Search - Solr
    • None
    • Unknown

    Description

      A bug farm like myxwiki.org crashes all the time with OOM way above what it's using without SOLR or before recent changes to SOLR.

      2014-05-12 15:00:01,456 [XWiki Solr index thread] ERROR o.x.s.s.i.DefaultSolrIndexer   - Failed to commit index changes to the Solr server. Rolling back. 
      org.apache.solr.client.solrj.SolrServerException: org.apache.solr.client.solrj.SolrServerException: java.lang.IllegalStateException: this writer hit an OutOfMemoryError; cannot commit
      	at org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:223) ~[solr-core-4.0.0.jar:4.0.0 1394950 - rmuir - 2012-10-06 03:05:35]
      	at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:117) ~[solr-solrj-4.0.0.jar:4.0.0 1394950 - rmuir - 2012-10-06 03:05:44]
      	at org.apache.solr.client.solrj.SolrServer.commit(SolrServer.java:168) ~[solr-solrj-4.0.0.jar:4.0.0 1394950 - rmuir - 2012-10-06 03:05:44]
      	at org.apache.solr.client.solrj.SolrServer.commit(SolrServer.java:146) ~[solr-solrj-4.0.0.jar:4.0.0 1394950 - rmuir - 2012-10-06 03:05:44]
      	at org.xwiki.search.solr.internal.AbstractSolrInstance.commit(AbstractSolrInstance.java:101) ~[xwiki-platform-search-solr-api-5.4.5-20140506.212602-12.jar:na]
      	at org.xwiki.search.solr.internal.DefaultSolrIndexer.commit(DefaultSolrIndexer.java:441) [xwiki-platform-search-solr-api-5.4.5-20140506.212602-12.jar:na]
      	at org.xwiki.search.solr.internal.DefaultSolrIndexer.processBatch(DefaultSolrIndexer.java:429) [xwiki-platform-search-solr-api-5.4.5-20140506.212602-12.jar:na]
      	at org.xwiki.search.solr.internal.DefaultSolrIndexer.runInternal(DefaultSolrIndexer.java:374) [xwiki-platform-search-solr-api-5.4.5-20140506.212602-12.jar:na]
      	at com.xpn.xwiki.util.AbstractXWikiRunnable.run(AbstractXWikiRunnable.java:131) [xwiki-platform-legacy-oldcore-5.4.4.jar:na]
      	at java.lang.Thread.run(Thread.java:724) [na:1.7.0_40]
      Caused by: org.apache.solr.client.solrj.SolrServerException: java.lang.IllegalStateException: this writer hit an OutOfMemoryError; cannot commit
      	at org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:155) ~[solr-core-4.0.0.jar:4.0.0 1394950 - rmuir - 2012-10-06 03:05:35]
      	... 9 common frames omitted
      Caused by: java.lang.IllegalStateException: this writer hit an OutOfMemoryError; cannot commit
      

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              tmortagne Thomas Mortagne
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: