java.lang.OutOfMemoryError: Java heap space

JFrog JIRA | Yoav Hakman | 10 years ago
  1. 0

    I'm receiving the OutOfMemoryError bellow while repairing repository indexes using the default memory configuration. I've increased the maximum memory size to 256MB and the problem disappeared. Stack trace: java.lang.OutOfMemoryError: Java heap space at java.util.HashMap.resize(HashMap.java:462) at java.util.HashMap.addEntry(HashMap.java:755) at java.util.HashMap.put(HashMap.java:385) at java.util.HashSet.add(HashSet.java:200) at org.apache.maven.index.DefaultScannerListener.initialize(DefaultScannerListener.java:222) at org.apache.maven.index.DefaultScannerListener.scanningStarted(DefaultScannerListener.java:82) at org.apache.maven.index.DefaultScanner.scan(DefaultScanner.java:49) at org.apache.maven.index.DefaultNexusIndexer.scan(DefaultNexusIndexer.java:290) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:903) at org.sonatype.nexus.index.DefaultIndexerManager.reindexAllRepositories(DefaultIndexerManager.java:810) at org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexAllRepositories(ReindexTaskHandlerLegacy.java:47) at org.sonatype.nexus.tasks.AbstractIndexerTask.doRun(AbstractIndexerTask.java:80) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:192) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:338) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:637)

    Sonatype JIRA | 6 years ago | Henrique Prange
    java.lang.OutOfMemoryError: Java heap space
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    I'm receiving the OutOfMemoryError bellow while repairing repository indexes using the default memory configuration. I've increased the maximum memory size to 256MB and the problem disappeared. Stack trace: java.lang.OutOfMemoryError: Java heap space at java.util.HashMap.resize(HashMap.java:462) at java.util.HashMap.addEntry(HashMap.java:755) at java.util.HashMap.put(HashMap.java:385) at java.util.HashSet.add(HashSet.java:200) at org.apache.maven.index.DefaultScannerListener.initialize(DefaultScannerListener.java:222) at org.apache.maven.index.DefaultScannerListener.scanningStarted(DefaultScannerListener.java:82) at org.apache.maven.index.DefaultScanner.scan(DefaultScanner.java:49) at org.apache.maven.index.DefaultNexusIndexer.scan(DefaultNexusIndexer.java:290) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:903) at org.sonatype.nexus.index.DefaultIndexerManager.reindexAllRepositories(DefaultIndexerManager.java:810) at org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexAllRepositories(ReindexTaskHandlerLegacy.java:47) at org.sonatype.nexus.tasks.AbstractIndexerTask.doRun(AbstractIndexerTask.java:80) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:192) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:338) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:637)

    Sonatype JIRA | 6 years ago | Henrique Prange
    java.lang.OutOfMemoryError: Java heap space

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.OutOfMemoryError

      Java heap space

      at java.util.HashMap.resize()
    2. Java RT
      HashSet.add
      1. java.util.HashMap.resize(HashMap.java:462)
      2. java.util.HashMap.addEntry(HashMap.java:755)
      3. java.util.HashMap.put(HashMap.java:385)
      4. java.util.HashSet.add(HashSet.java:200)
      4 frames
    3. Jackrabbit Core
      SessionImpl.save
      1. org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1089)
      2. org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:821)
      2 frames
    4. org.artifactory.jcr
      JcrHelper.unbindSession
      1. org.artifactory.jcr.JcrHelper.closeSession(JcrHelper.java:339)
      2. org.artifactory.jcr.JcrHelper.unbindSession(JcrHelper.java:119)
      2 frames
    5. org.artifactory.webapp
      RepoFilter.doFilter
      1. org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:82)
      1 frame