java.lang.OutOfMemoryError: Java heap space

forrest-user | Heather Phipps | 8 years ago
  1. 0

    Re: Japanese PDF rendering

    forrest-user | 8 years ago | Heather Phipps
    java.lang.OutOfMemoryError: Java heap space
  2. 0

    Re: Japanese PDF rendering

    forrest-user | 8 years ago | Heather Phipps
    java.lang.OutOfMemoryError: Java heap space
  3. 0

    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.

    Atlassian JIRA | 7 years ago | Andrew Myers [Atlassian]
    java.lang.reflect.InvocationTargetException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    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}

    Atlassian JIRA | 7 years ago | Mike Knight
    java.lang.OutOfMemoryError: Java heap space
  6. 0

    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}

    Atlassian JIRA | 7 years ago | Mike Knight
    java.lang.OutOfMemoryError: Java heap space

    8 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.io.ByteArrayOutputStream.write()
    2. Java RT
      ByteArrayOutputStream.write
      1. java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:95)
      1 frame
    3. Apache FOP
      FontFileReader.<init>
      1. org.apache.fop.tools.IOUtil.copyStream(IOUtil.java:77)
      2. org.apache.fop.tools.IOUtil.toByteArray(IOUtil.java:95)
      3. org.apache.fop.fonts.FontFileReader.init(FontFileReader.java:76)
      4. org.apache.fop.fonts.FontFileReader.<init>(FontFileReader.java:105)
      4 frames
    4. org.apache.fop
      LazyFont.getFontFile
      1. org.apache.fop.render.pdf.fonts.MultiByteFont.getFontFile(MultiByteFont.java:237)
      2. org.apache.fop.render.pdf.fonts.LazyFont.getFontFile(LazyFont.java:218)
      2 frames
    5. Apache FOP
      FOTreeBuilder.endDocument
      1. org.apache.fop.pdf.PDFDocument.makeFontDescriptor(PDFDocument.java:974)
      2. org.apache.fop.pdf.PDFDocument.makeFont(PDFDocument.java:875)
      3. org.apache.fop.render.pdf.FontSetup.addToResources(FontSetup.java:250)
      4. org.apache.fop.render.pdf.PDFRenderer.stopRenderer(PDFRenderer.java:249)
      5. org.apache.fop.apps.StreamRenderer.stopRenderer(StreamRenderer.java:204)
      6. org.apache.fop.fo.FOTreeBuilder.endDocument(FOTreeBuilder.java:246)
      6 frames
    6. org.apache.cocoon
      AbstractXMLPipe.endDocument
      1. org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:55)
      2. org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:55)
      2 frames
    7. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:585)
      3 frames
    8. org.apache.cocoon
      PoolableComponentHandler$ProxyHandler.invoke
      1. org.apache.cocoon.core.container.handler.PoolableComponentHandler$ProxyHandler.invoke(PoolableComponentHandler.java:147)
      1 frame
    9. Unknown
      $Proxy6.endDocument
      1. $Proxy6.endDocument(Unknown Source)
      1 frame
    10. org.apache.cocoon
      XMLTeePipe.endDocument
      1. org.apache.cocoon.components.sax.XMLTeePipe.endDocument(XMLTeePipe.java:67)
      1 frame
    11. GWT dev
      ToXMLSAXHandler.endDocument
      1. org.apache.xml.serializer.ToXMLSAXHandler.endDocument(ToXMLSAXHandler.java:181)
      1 frame
    12. Xalan Java
      TransformerHandlerImpl.endDocument
      1. org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1378)
      2. org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3458)
      3. org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:406)
      3 frames
    13. org.apache.cocoon
      TraxTransformer.endDocument
      1. org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:55)
      2. org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:585)
      2 frames
    14. Xerces2-j
      XMLEntityScanner.load
      1. org.apache.xerces.parsers.AbstractSAXParser.endDocument(UnknownSource)
      2. org.apache.xerces.impl.dtd.XMLDTDValidator.endDocument(UnknownSource)
      3. org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(UnknownSource)
      4. org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)
      5. org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
      5 frames