AnsweredAssumed Answered

java.lang.OutOfMemoryError: Java heap space

Question asked by emerson on Jul 4, 2013
Latest reply on Oct 30, 2015 by gonial
Hola a todos,

Mi alfresco está súper lento,

Validando los logs, me same una error como este:

java.lang.OutOfMemoryError: Java heap space
Exception in thread "SolrTrackingPool-alfresco4" java.lang.OutOfMemoryError: Java heap space
Exception in thread "SolrTrackingPool-alfresco5" java.lang.IllegalStateException: this writer hit an OutOfMemoryError; cannot flush
   at org.apache.lucene.index.IndexWriter.doFlushInternal(IndexWriter.java:4279)
   at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:4264)
   at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:4255)
   at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:2701)
   at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:2655)
   at org.alfresco.solr.AlfrescoUpdateHandler.addDoc(AlfrescoUpdateHandler.java:323)
   at org.alfresco.solr.tracker.CoreTracker.indexNode(CoreTracker.java:2503)
   at org.alfresco.solr.tracker.MultiThreadedCoreTracker$NodeIndexWorkerRunnable.doWork(MultiThreadedCoreTracker.java:758)
   at org.alfresco.solr.tracker.MultiThreadedCoreTracker$AbstractWorkerRunnable.run(MultiThreadedCoreTracker.java:699)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
   at java.lang.Thread.run(Thread.java:722)
Exception in thread "SolrTrackingPool-alfresco6" java.lang.IllegalStateException: this writer hit an OutOfMemoryError; cannot flush
   at org.apache.lucene.index.IndexWriter.doFlushInternal(IndexWriter.java:4279)
   at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:4264)
   at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:4255)
   at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:2701)
   at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:2655)
   at org.alfresco.solr.AlfrescoUpdateHandler.addDoc(AlfrescoUpdateHandler.java:323)
   at org.alfresco.solr.tracker.CoreTracker.indexNode(CoreTracker.java:2503)
   at org.alfresco.solr.tracker.MultiThreadedCoreTracker$NodeIndexWorkerRunnable.doWork(MultiThreadedCoreTracker.java:758)
   at org.alfresco.solr.tracker.MultiThreadedCoreTracker$AbstractWorkerRunnable.run(MultiThreadedCoreTracker.java:699)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
   at java.lang.Thread.run(Thread.java:722)
Exception in thread "SolrTrackingPool-alfresco2" java.lang.IllegalStateException: this writer hit an OutOfMemoryError; cannot flush
   at org.apache.lucene.index.IndexWriter.doFlushInternal(IndexWriter.java:4279)
   at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:4264)
   at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:4255)
   at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:2701)
   at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:2655)
   at org.alfresco.solr.AlfrescoUpdateHandler.addDoc(AlfrescoUpdateHandler.java:323)
   at org.alfresco.solr.tracker.CoreTracker.indexNode(CoreTracker.java:2503)
   at org.alfresco.solr.tracker.MultiThreadedCoreTracker$NodeIndexWorkerRunnable.doWork(MultiThreadedCoreTracker.java:758)
   at org.alfresco.solr.tracker.MultiThreadedCoreTracker$AbstractWorkerRunnable.run(MultiThreadedCoreTracker.java:699)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
   at java.lang.Thread.run(Thread.java:722)



He leído variis links, y apuntan a aumentar estos valores que tengo:

-Xms24m
-Xmx256m
-XX:MaxPermSize=96m


Servirá si los aumento?

Agradezco su valiosa ayuda.

Outcomes