java.lang.OutOfMemoryError: Java heap space

GitHub | nemojjh | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.

Root Cause Analysis

  1. java.lang.OutOfMemoryError

    Java heap space

    at com.norconex.commons.lang.io.ByteArrayOutputStream.toByteArray()
  2. com.norconex.commons
    CachedInputStream.read
    1. com.norconex.commons.lang.io.ByteArrayOutputStream.toByteArray(ByteArrayOutputStream.java:357)
    2. com.norconex.commons.lang.io.CachedInputStream.cacheToFile(CachedInputStream.java:527)
    3. com.norconex.commons.lang.io.CachedInputStream.realRead(CachedInputStream.java:325)
    4. com.norconex.commons.lang.io.CachedInputStream.read(CachedInputStream.java:301)
    4 frames
  3. Java RT
    InputStream.read
    1. java.io.InputStream.read(InputStream.java:101)
    1 frame
  4. Commons IO
    IOUtils.copy
    1. org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:2146)
    2. org.apache.commons.io.IOUtils.copy(IOUtils.java:2102)
    3. org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:2123)
    4. org.apache.commons.io.IOUtils.copy(IOUtils.java:2078)
    4 frames
  5. com.norconex.collector
    AbstractImporterStage.execute
    1. com.norconex.collector.http.fetch.impl.GenericDocumentFetcher.fetchDocument(GenericDocumentFetcher.java:138)
    2. com.norconex.collector.http.pipeline.importer.DocumentFetcherStage.executeStage(DocumentFetcherStage.java:50)
    3. com.norconex.collector.http.pipeline.importer.AbstractImporterStage.execute(AbstractImporterStage.java:31)
    4. com.norconex.collector.http.pipeline.importer.AbstractImporterStage.execute(AbstractImporterStage.java:24)
    4 frames
  6. com.norconex.commons
    Pipeline.execute
    1. com.norconex.commons.lang.pipeline.Pipeline.execute(Pipeline.java:90)
    1 frame
  7. com.norconex.collector
    AbstractCrawler$ProcessReferencesRunnable.run
    1. com.norconex.collector.http.crawler.HttpCrawler.executeImporterPipeline(HttpCrawler.java:300)
    2. com.norconex.collector.core.crawler.AbstractCrawler.processNextQueuedCrawlData(AbstractCrawler.java:488)
    3. com.norconex.collector.core.crawler.AbstractCrawler.processNextReference(AbstractCrawler.java:378)
    4. com.norconex.collector.core.crawler.AbstractCrawler$ProcessReferencesRunnable.run(AbstractCrawler.java:736)
    4 frames
  8. Java RT
    ThreadPoolExecutor$Worker.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    2 frames