java.lang.OutOfMemoryError: Java heap space

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.

  • CSV Imports With JDBC
    via hsqldb by danap_n_mt
    ,
  • Java heap Space - OutOfMemory Error
    via by Unknown author,
  • GWT Test
    via by fabiof...@gmail.com,
  • GWT Test
    via by fabiof...@gmail.com,
  • With artifactory running on default settings i tried to deploy a 60M zip file and got an error message (see screen-shot) and the following exception in the log : java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.mortbay.log.Slf4jLog.warn(Slf4jLog.java:126) at org.mortbay.log.Log.warn(Log.java:181) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:449) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451) Caused by: java.lang.OutOfMemoryError: Java heap space at java.util.jar.Manifest$FastInputStream.<init>(Manifest.java:300) at java.util.jar.Manifest$FastInputStream.<init>(Manifest.java:295) at java.util.jar.Manifest.read(Manifest.java:163) at java.util.jar.Manifest.<init>(Manifest.java:52) at java.util.jar.JarFile.getManifestFromReference(JarFile.java:163) at java.util.jar.JarFile.getManifest(JarFile.java:145) at sun.misc.URLClassPath$JarLoader$1.getManifest(URLClassPath.java:624) at java.net.URLClassLoader.defineClass(URLClassLoader.java:221) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at ch.qos.logback.classic.spi.LoggingEvent.<init>(LoggingEvent.java:111) at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:501) at ch.qos.logback.classic.Logger.filterAndLog(Logger.java:495) at ch.qos.logback.classic.Logger.error(Logger.java:561) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.mortbay.log.Slf4jLog.warn(Slf4jLog.java:126) at org.mortbay.log.Log.warn(Log.java:181) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:449) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) 2008-12-11 10:46:02,179 [ERROR] (o.a.w.RequestCycle :1437) - Method onFormSubmitted of interface org.apache.wicket.markup.html.form.IFormSubmitListener targeted at component [MarkupContainer [Component id = deployForm]] threw an exception org.apache.wicket.WicketRuntimeException: Method onFormSubmitted of interface org.apache.wicket.markup.html.form.IFormSubmitListener targeted at component [MarkupContainer [Component id = deployForm]] threw an exception at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:194) [wicket-1.3.5.jar:1.3.5] at org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73) [wicket-1.3.5.jar:1.3.5] at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91) [wicket-1.3.5.jar:1.3.5] at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1175) [wicket-1.3.5.jar:1.3.5] at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252) [wicket-1.3.5.jar:1.3.5] at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353) [wicket-1.3.5.jar:1.3.5] at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) [wicket-1.3.5.jar:1.3.5] at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355) [wicket-1.3.5.jar:1.3.5] at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200) [wicket-1.3.5.jar:1.3.5] at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) [jetty-6.1.14.jar:6.1.14] at org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:145) [classes/:na] at org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:73) [classes/:na] at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) [jetty-6.1.14.jar:6.1.14] at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:124) [classes/:na] at org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:90) [classes/:na] at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) [jetty-6.1.14.jar:6.1.14] at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:361) [jetty-6.1.14.jar:6.1.14] at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) [jetty-6.1.14.jar:6.1.14] at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) [jetty-6.1.14.jar:6.1.14] at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) [jetty-6.1.14.jar:6.1.14] at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) [jetty-6.1.14.jar:6.1.14] at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) [jetty-6.1.14.jar:6.1.14] at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) [jetty-6.1.14.jar:6.1.14] at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) [jetty-6.1.14.jar:6.1.14] at org.mortbay.jetty.Server.handle(Server.java:324) [jetty-6.1.14.jar:6.1.14] at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) [jetty-6.1.14.jar:6.1.14] at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:879) [jetty-6.1.14.jar:6.1.14] at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:741) [jetty-6.1.14.jar:6.1.14] at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:213) [jetty-6.1.14.jar:6.1.14] at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403) [jetty-6.1.14.jar:6.1.14] at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) [jetty-6.1.14.jar:6.1.14] at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451) [jetty-util-6.1.14.jar:6.1.14] Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.5.0_16] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.5.0_16] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.5.0_16] at java.lang.reflect.Method.invoke(Method.java:585) [na:1.5.0_16] at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:183) [wicket-1.3.5.jar:1.3.5] ... 31 common frames omitted Caused by: java.lang.OutOfMemoryError: Java heap space at java.lang.String.<init>(String.java:208) [na:1.5.0_16] at java.lang.StringBuilder.toString(StringBuilder.java:431) [na:1.5.0_16] at java.io.UnixFileSystem.resolve(UnixFileSystem.java:93) [na:1.5.0_16] at java.io.File.<init>(File.java:284) [na:1.5.0_16] at de.schlichtherle.io.File.<init>(File.java:547) [truezip-6.6.jar:6.6] at de.schlichtherle.io.AbstractArchiveDetector.createFile(AbstractArchiveDetector.java:56) [truezip-6.6.jar:6.6] at de.schlichtherle.io.ArchiveEntryMetaData.listFiles(ArchiveEntryMetaData.java:176) [truezip-6.6.jar:6.6] at de.schlichtherle.io.ArchiveFileSystem.listFiles(ArchiveFileSystem.java:875) [truezip-6.6.jar:6.6] at de.schlichtherle.io.ArchiveController.listFiles0(ArchiveController.java:1003) [truezip-6.6.jar:6.6] at de.schlichtherle.io.ArchiveController.listFiles(ArchiveController.java:983) [truezip-6.6.jar:6.6] at de.schlichtherle.io.File.listFiles(File.java:2569) [truezip-6.6.jar:6.6] at de.schlichtherle.io.File.listFiles(File.java:2538) [truezip-6.6.jar:6.6] at org.apache.commons.io.FileUtils.innerListFiles(FileUtils.java:253) [commons-io-1.4.jar:1.4] at org.apache.commons.io.FileUtils.innerListFiles(FileUtils.java:257) [commons-io-1.4.jar:1.4] at org.apache.commons.io.FileUtils.innerListFiles(FileUtils.java:257) [commons-io-1.4.jar:1.4] at org.apache.commons.io.FileUtils.innerListFiles(FileUtils.java:257) [commons-io-1.4.jar:1.4] at org.apache.commons.io.FileUtils.innerListFiles(FileUtils.java:257) [commons-io-1.4.jar:1.4] at org.apache.commons.io.FileUtils.innerListFiles(FileUtils.java:257) [commons-io-1.4.jar:1.4] at org.apache.commons.io.FileUtils.innerListFiles(FileUtils.java:257) [commons-io-1.4.jar:1.4] at org.apache.commons.io.FileUtils.innerListFiles(FileUtils.java:257) [commons-io-1.4.jar:1.4] at org.apache.commons.io.FileUtils.innerListFiles(FileUtils.java:257) [commons-io-1.4.jar:1.4] at org.apache.commons.io.FileUtils.innerListFiles(FileUtils.java:257) [commons-io-1.4.jar:1.4] at org.apache.commons.io.FileUtils.innerListFiles(FileUtils.java:257) [commons-io-1.4.jar:1.4] at org.apache.commons.io.FileUtils.innerListFiles(FileUtils.java:257) [commons-io-1.4.jar:1.4] at org.apache.commons.io.FileUtils.innerListFiles(FileUtils.java:257) [commons-io-1.4.jar:1.4] at org.apache.commons.io.FileUtils.innerListFiles(FileUtils.java:257) [commons-io-1.4.jar:1.4] at org.apache.commons.io.FileUtils.innerListFiles(FileUtils.java:257) [commons-io-1.4.jar:1.4] at org.apache.commons.io.FileUtils.innerListFiles(FileUtils.java:257) [commons-io-1.4.jar:1.4] at org.apache.commons.io.FileUtils.innerListFiles(FileUtils.java:257) [commons-io-1.4.jar:1.4] at org.apache.commons.io.FileUtils.innerListFiles(FileUtils.java:257) [commons-io-1.4.jar:1.4] at org.apache.commons.io.FileUtils.innerListFiles(FileUtils.java:257) [commons-io-1.4.jar:1.4] at org.apache.commons.io.FileUtils.listFiles(FileUtils.java:315) [commons-io-1.4.jar:1.4]
    via by Tal Abramson,
  • Out of memory Error
    via by 843810,
    • java.lang.OutOfMemoryError: Java heap space at java.util.zip.InflaterInputStream.<init>(Unknown Source) at java.util.zip.ZipFile$1.<init>(Unknown Source) at java.util.zip.ZipFile.getInputStream(Unknown Source) at java.util.zip.ZipFile.getInputStream(Unknown Source) at java.util.jar.JarFile.getManifestFromReference(Unknown Source) at java.util.jar.JarFile.getManifest(Unknown Source) at sun.misc.URLClassPath$JarLoader$2.getManifest(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$000(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at org.hsqldb.jdbc.JDBCStatement.fetchResult(Unknown Source) at org.hsqldb.jdbc.JDBCStatement.executeUpdate(Unknown Source) at com.dandymadeproductions.myjsqlview.CSVDataImportThread.importCSVFile(CSVDataImportThread.java:597) at com.dandymadeproductions.myjsqlview.CSVDataImportThread.run(CSVDataImportThread.java:222) at java.lang.Thread.run(Unknown Source)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,