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.

  • Re: Japanese PDF rendering
    via by Heather Phipps,
  • Re: Japanese PDF rendering
    via by Heather Phipps,
  • When trying to startup fisheye 2.1 it crashes with an out of memory error unless you adjust the max heap size in FISHEYE_OPTS: {noformat}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 com.cenqua.fisheye.FishEyeCtl.mainImpl(FishEyeCtl.java:106) at com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:39) Caused by: java.lang.OutOfMemoryError: Java heap space at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:95) at com.atlassian.modzdetector.IOUtils.copyLarge(IOUtils.java:53) at com.atlassian.modzdetector.IOUtils.copy(IOUtils.java:37) at com.atlassian.modzdetector.IOUtils.toByteArray(IOUtils.java:31) at com.atlassian.modzdetector.MD5HashAlgorithm.getHash(MD5HashAlgorithm.java:17) at com.atlassian.modzdetector.ModzDetector.checkResource(ModzDetector.java:153) at com.atlassian.modzdetector.ModzDetector.checkResource(ModzDetector.java:201) at com.atlassian.modzdetector.ModzDetector.checkRegistry(ModzDetector.java:77) at com.atlassian.modzdetector.ModzDetector.getModifiedFiles(ModzDetector.java:53) at com.atlassian.modzdetector.ModzDetector.getModifiedFiles(ModzDetector.java:36) at com.cenqua.fisheye.support.ModzDetectorCache.getModifications(ModzDetectorCache.java:49) at com.cenqua.fisheye.ctl.Run.printSystemInfo(Run.java:421) at com.cenqua.fisheye.ctl.Run.mainImpl(Run.java:285) at com.cenqua.fisheye.ctl.Run.main(Run.java:71){noformat} Related issue is [MODZ-2|https://studio.atlassian.com/browse/MODZ-2] which was fixed in Modz Detector 0.8 so we should upgrade from 0.6.
    via by Andrew Myers [Atlassian],
  • If there is a large (e.g. 1GB) binary file in the Subversion repository and the 'raw' link is clicked to download it, FishEye may run out of heap space. In the browser, a 500 error is given with the following text: {panel} Additionally, an error occured trying to render this page. java.lang.IllegalStateException: Context not available, filter already exited {panel} In the logs: {panel}java.lang.OutOfMemoryError: Java heap space Dumping heap to java_pid26274.hprof ... Heap dump file created [307441037 bytes in 2.875 secs] ERROR - Error for /source/browse/~raw,r=2375/PROJ/branches/dist/example_big_file.exe java.lang.OutOfMemoryError: Java heap space at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:95) at org.tmatesoft.svn.core.internal.wc.SVNCancellableOutputStream.write(SVNCancellableOutputStream.java:44) at org.tmatesoft.svn.core.internal.io.fs.FSRepositoryUtil.copy(FSRepositoryUtil.java:111) at org.tmatesoft.svn.core.internal.io.fs.FSRepository.getFile(FSRepository.java:222) at org.tmatesoft.svn.core.wc.SVNWCClient.doGetFileContents(SVNWCClient.java:443) at org.tmatesoft.svn.core.javahl.SVNClientImpl.fileContent(SVNClientImpl.java:1392) at org.tigris.subversion.javahl.SVNClient.fileContent(SVNClient.java:295) at com.cenqua.fisheye.svn.SvnThrottledClient.fileContent(SvnThrottledClient.java:208) at com.cenqua.fisheye.svn.SvnCache.getBinaryRevision(SvnCache.java:366) at com.cenqua.fisheye.web.ViewFileAction.doRawRequest(ViewFileAction.java:535) at com.cenqua.fisheye.web.ViewFileAction.handleRequest(ViewFileAction.java:104) at com.cenqua.fisheye.web.BaseAction.processRequest(BaseAction.java:149) at com.cenqua.fisheye.web.ActionDispatcherServlet.doIt(ActionDispatcherServlet.java:240) at com.cenqua.fisheye.web.ActionDispatcherServlet.doGet(ActionDispatcherServlet.java:67) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1144) at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1136) at com.cenqua.crucible.filters.CrucibleFilter.doFilter(CrucibleFilter.java:140) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1136) at com.cenqua.fisheye.web.filters.TotalityFilter.doFilter(TotalityFilter.java:192) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1136) at com.atlassian.studio.fisheye.web.SeraphRememberMeFilter.doFilter(SeraphRememberMeFilter.java:99) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1136) at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:98) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1136) at com.cenqua.fisheye.web.filters.ProductInfoFilter.doFilter(ProductInfoFilter.java:32) {panel}
    via by Mike Knight,
  • If there is a large (e.g. 1GB) binary file in the Subversion repository and the 'raw' link is clicked to download it, FishEye may run out of heap space. In the browser, a 500 error is given with the following text: {panel} Additionally, an error occured trying to render this page. java.lang.IllegalStateException: Context not available, filter already exited {panel} In the logs: {panel}java.lang.OutOfMemoryError: Java heap space Dumping heap to java_pid26274.hprof ... Heap dump file created [307441037 bytes in 2.875 secs] ERROR - Error for /source/browse/~raw,r=2375/PROJ/branches/dist/example_big_file.exe java.lang.OutOfMemoryError: Java heap space at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:95) at org.tmatesoft.svn.core.internal.wc.SVNCancellableOutputStream.write(SVNCancellableOutputStream.java:44) at org.tmatesoft.svn.core.internal.io.fs.FSRepositoryUtil.copy(FSRepositoryUtil.java:111) at org.tmatesoft.svn.core.internal.io.fs.FSRepository.getFile(FSRepository.java:222) at org.tmatesoft.svn.core.wc.SVNWCClient.doGetFileContents(SVNWCClient.java:443) at org.tmatesoft.svn.core.javahl.SVNClientImpl.fileContent(SVNClientImpl.java:1392) at org.tigris.subversion.javahl.SVNClient.fileContent(SVNClient.java:295) at com.cenqua.fisheye.svn.SvnThrottledClient.fileContent(SvnThrottledClient.java:208) at com.cenqua.fisheye.svn.SvnCache.getBinaryRevision(SvnCache.java:366) at com.cenqua.fisheye.web.ViewFileAction.doRawRequest(ViewFileAction.java:535) at com.cenqua.fisheye.web.ViewFileAction.handleRequest(ViewFileAction.java:104) at com.cenqua.fisheye.web.BaseAction.processRequest(BaseAction.java:149) at com.cenqua.fisheye.web.ActionDispatcherServlet.doIt(ActionDispatcherServlet.java:240) at com.cenqua.fisheye.web.ActionDispatcherServlet.doGet(ActionDispatcherServlet.java:67) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1144) at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1136) at com.cenqua.crucible.filters.CrucibleFilter.doFilter(CrucibleFilter.java:140) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1136) at com.cenqua.fisheye.web.filters.TotalityFilter.doFilter(TotalityFilter.java:192) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1136) at com.atlassian.studio.fisheye.web.SeraphRememberMeFilter.doFilter(SeraphRememberMeFilter.java:99) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1136) at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:98) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1136) at com.cenqua.fisheye.web.filters.ProductInfoFilter.doFilter(ProductInfoFilter.java:32) {panel}
    via by Mike Knight,
  • When trying to startup fisheye 2.1 it crashes with an out of memory error unless you adjust the max heap size in FISHEYE_OPTS: {noformat}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 com.cenqua.fisheye.FishEyeCtl.mainImpl(FishEyeCtl.java:106) at com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:39) Caused by: java.lang.OutOfMemoryError: Java heap space at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:95) at com.atlassian.modzdetector.IOUtils.copyLarge(IOUtils.java:53) at com.atlassian.modzdetector.IOUtils.copy(IOUtils.java:37) at com.atlassian.modzdetector.IOUtils.toByteArray(IOUtils.java:31) at com.atlassian.modzdetector.MD5HashAlgorithm.getHash(MD5HashAlgorithm.java:17) at com.atlassian.modzdetector.ModzDetector.checkResource(ModzDetector.java:153) at com.atlassian.modzdetector.ModzDetector.checkResource(ModzDetector.java:201) at com.atlassian.modzdetector.ModzDetector.checkRegistry(ModzDetector.java:77) at com.atlassian.modzdetector.ModzDetector.getModifiedFiles(ModzDetector.java:53) at com.atlassian.modzdetector.ModzDetector.getModifiedFiles(ModzDetector.java:36) at com.cenqua.fisheye.support.ModzDetectorCache.getModifications(ModzDetectorCache.java:49) at com.cenqua.fisheye.ctl.Run.printSystemInfo(Run.java:421) at com.cenqua.fisheye.ctl.Run.mainImpl(Run.java:285) at com.cenqua.fisheye.ctl.Run.main(Run.java:71){noformat} Related issue is [MODZ-2|https://studio.atlassian.com/browse/MODZ-2] which was fixed in Modz Detector 0.8 so we should upgrade from 0.6.
    via by Andrew Myers [Atlassian],
  • exception OutOfMemoryError POP3
    via by 843834,
  • Android Studio Upgrade Issue 2.2.3
    via Stack Overflow by Spindoctor
    ,
    • java.lang.OutOfMemoryError: Java heap space at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:95) at org.apache.fop.tools.IOUtil.copyStream(IOUtil.java:77) at org.apache.fop.tools.IOUtil.toByteArray(IOUtil.java:95) at org.apache.fop.fonts.FontFileReader.init(FontFileReader.java:76) at org.apache.fop.fonts.FontFileReader.<init>(FontFileReader.java:105) at org.apache.fop.render.pdf.fonts.MultiByteFont.getFontFile(MultiByteFont.java:237) at org.apache.fop.render.pdf.fonts.LazyFont.getFontFile(LazyFont.java:218) at org.apache.fop.pdf.PDFDocument.makeFontDescriptor(PDFDocument.java:974) at org.apache.fop.pdf.PDFDocument.makeFont(PDFDocument.java:875) at org.apache.fop.render.pdf.FontSetup.addToResources(FontSetup.java:250) at org.apache.fop.render.pdf.PDFRenderer.stopRenderer(PDFRenderer.java:249) at org.apache.fop.apps.StreamRenderer.stopRenderer(StreamRenderer.java:204) at org.apache.fop.fo.FOTreeBuilder.endDocument(FOTreeBuilder.java:246) at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:55) at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:55) at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.cocoon.core.container.handler.PoolableComponentHandler$ProxyHandler.invoke(PoolableComponentHandler.java:147) at $Proxy6.endDocument(Unknown Source) at org.apache.cocoon.components.sax.XMLTeePipe.endDocument(XMLTeePipe.java:67) at org.apache.xml.serializer.ToXMLSAXHandler.endDocument(ToXMLSAXHandler.java:181) at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1378) at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3458) at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:406) at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:55) at org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:585) at org.apache.xerces.parsers.AbstractSAXParser.endDocument(UnknownSource) at org.apache.xerces.impl.dtd.XMLDTDValidator.endDocument(UnknownSource) at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(UnknownSource) at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor2 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    3 more bugmates