java.lang.OutOfMemoryError

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • An unknown compilation problem occurred
    via by Kevin Simonson,
  • Scanning for projects... hangs
    via by Mahdi Yusuf,
  • I am running a build on a hudson slave and i got the following error log in hudson.err.log ARNING: Publisher hudson.plugins.warnings.WarningsPublisher aborted due to exception hudson.util.IOException2: remote file operation failed: WORKSPACE at hudson.remoting.Channel@1c7aa1d:HOSTNAME at hudson.FilePath.act(FilePath.java:752) at hudson.FilePath.act(FilePath.java:738) at hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:199) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:207) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:580) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:558) at hudson.model.Build$RunnerImpl.post2(Build.java:158) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528) at hudson.model.Run.run(Run.java:1264) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:122) Caused by: java.io.IOException: Remote call on HOSTNAME failed at hudson.remoting.Channel.call(Channel.java:560) at hudson.FilePath.act(FilePath.java:745) ... 13 more Caused by: java.lang.OutOfMemoryError: Java heap space at java.lang.String.toCharArray(Unknown Source) at org.apache.tools.ant.types.selectors.SelectorUtils.match(SelectorUtils.java:327) at org.apache.tools.ant.types.selectors.SelectorUtils.matchPath(SelectorUtils.java:217) at org.apache.tools.ant.DirectoryScanner.matchPath(DirectoryScanner.java:454) at org.apache.tools.ant.DirectoryScanner.isIncluded(DirectoryScanner.java:1173) at org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:1107) at org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:1100) at org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:1100) at org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:1100) at org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:1100) at org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:1100) at org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:1100) at org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:1100) at org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:1100) at org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:1100) at org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:1100) at org.apache.tools.ant.DirectoryScanner.checkIncludePatterns(DirectoryScanner.java:856) at org.apache.tools.ant.DirectoryScanner.scan(DirectoryScanner.java:817) at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:435) at hudson.plugins.analysis.util.FileFinder.find(FileFinder.java:76) at hudson.plugins.analysis.util.ModuleDetector.find(ModuleDetector.java:162) at hudson.plugins.analysis.util.ModuleDetector.findMavenModules(ModuleDetector.java:139) at hudson.plugins.analysis.util.ModuleDetector.createFilesToModuleMapping(ModuleDetector.java:87) at hudson.plugins.analysis.util.ModuleDetector.<init>(ModuleDetector.java:65) at hudson.plugins.analysis.util.ModuleDetector.<init>(ModuleDetector.java:52) at hudson.plugins.analysis.core.AnnotationsClassifier.invoke(AnnotationsClassifier.java:47) at hudson.plugins.analysis.core.AnnotationsClassifier.invoke(AnnotationsClassifier.java:24) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2028) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    via by flaviavela,
  • While doing ant dbinit and regular running of uPortal HSQL / Hypersonic shuts down due to the following 2 Exceptions: 1. [java] Exception in thread "HSQLDB Connection @76dff374" java.lang.OutOfMemoryError: Java heap space [java] [Server@75cb1d37]: Initiating shutdown sequence... [java] Exception in thread "HSQLDB Server @75cb1d37" java.lang.NoClassDefFoundError: Could not initialize class java.util.concurrent.locks.LockSupport [java] at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:834) [java] at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:867) [java] at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1197) [java] at java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.lock(ReentrantReadWriteLock.java:945) [java] at org.hsqldb.TransactionManagerMVCC.rollback(Unknown Source) [java] at org.hsqldb.Session.rollback(Unknown Source) [java] at org.hsqldb.Session.close(Unknown Source) [java] at org.hsqldb.server.ServerConnection.close(Unknown Source) [java] at org.hsqldb.server.ServerConnection.signalClose(Unknown Source) [java] at org.hsqldb.server.Server.releaseDatabase(Unknown Source) [java] at org.hsqldb.server.Server.shutdown(Unknown Source) [java] at org.hsqldb.server.Server.run(Unknown Source) [java] at org.hsqldb.server.Server.access$000(Unknown Source) [java] at org.hsqldb.server.Server$ServerThread.run(Unknown Source) 2. [java] java.lang.OutOfMemoryError: GC overhead limit exceeded [java] at java.lang.String.toCharArray(String.java:2753) [java] at org.hsqldb.lib.StringConverter.stringToUnicodeBytes(Unknown Source) [java] at org.hsqldb.rowio.RowOutputTextLog.writeString(Unknown Source) [java] at org.hsqldb.rowio.RowOutputBase.writeData(Unknown Source) [java] at org.hsqldb.rowio.RowOutputTextLog.writeData(Unknown Source) [java] at org.hsqldb.scriptio.ScriptWriterText.writeDeleteStatement(Unknown Source) [java] at org.hsqldb.persist.Log.writeDeleteStatement(Unknown Source) [java] at org.hsqldb.persist.Logger.writeDeleteStatement(Unknown Source) [java] at org.hsqldb.persist.RowStoreAVLMemory.commitRow(Unknown Source) [java] at org.hsqldb.TransactionManagerCommon.persistCommit(Unknown Source) [java] at org.hsqldb.TransactionManagerMVCC.commitTransaction(Unknown Source) [java] at org.hsqldb.Session.commit(Unknown Source) [java] at org.hsqldb.Session.executeCompiledStatement(Unknown Source) [java] at org.hsqldb.Session.executeDirectStatement(Unknown Source) [java] at org.hsqldb.Session.execute(Unknown Source) [java] at org.hsqldb.server.ServerConnection.receiveResult(Unknown Source) [java] at org.hsqldb.server.ServerConnection.run(Unknown Source) [java] at java.lang.Thread.run(Thread.java:724) Adjusting the -Xmx parameter to have more memory does clear the issue.
    via by Shawn Connolly,
    • java.lang.OutOfMemoryError: GC overhead limit exceeded" The mentioned stack trace begins with: at java.lang.String.toCharArray(String.java:2746) at com.sun.tools.javac.util.Name$Table.fromString(Name.java:203) at com.sun.tools.javac.util.Names.fromString(Names.java:288) at com.sun.tools.javac.comp.Lower.accessName(Lower.java:876) at com.sun.tools.javac.comp.Lower.accessSymbol(Lower.java:960) at com.sun.tools.javac.comp.Lower.access(Lower.java:1126) at com.sun.tools.javac.comp.Lower.visitIdent(Lower.java:3135) at com.sun.tools.javac.tree.JCTree$JCIdent.accept(JCTree.java:1705) at com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,