java.lang.OutOfMemoryError: Java heap space

tika-user | YukaChan | 2 years ago
  1. 0

    Re:Re: How to skip encrypted (PDF) documents

    tika-user | 2 years ago | YukaChan
    java.lang.OutOfMemoryError: Java heap space
  2. 0

    There are two problems: 1. OOM 2. Incoming email processing is blocked Looks like this is similar problem to JRA-35816, fixed in atlassian-core, but mail handler does not use atlassian-core. It affects production OnDemand, all instances. {code}java.lang.OutOfMemoryError: Java heap space Dumping heap to java_pid9943.hprof ... Heap dump file created [295513170 bytes in 1,603 secs] 2014-04-25 17:19:35,812 http-bio-8090-exec-12 ERROR admin 1039x1167x1 1vj4fgc 127.0.0.1 /rest/jira-mail-plugin/1.0/message-handlers/test [common.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: Java heap space java.lang.OutOfMemoryError: Java heap space at com.sun.imageio.plugins.png.PNGImageReader.readMetadata(PNGImageReader.java:728) at com.sun.imageio.plugins.png.PNGImageReader.getImageMetadata(PNGImageReader.java:1550) at com.atlassian.jira.plugins.mail.handlers.GeneratedAttachmentRecogniser.containsJiraMetadata(GeneratedAttachmentRecogniser.java:64) at com.atlassian.jira.plugins.mail.handlers.GeneratedAttachmentRecogniser.<init>(GeneratedAttachmentRecogniser.java:32) at com.atlassian.jira.plugins.mail.handlers.AbstractMessageHandler.isJiraGeneratedAttachment(AbstractMessageHandler.java:836) at com.atlassian.jira.plugins.mail.handlers.AbstractMessageHandler.shouldAttach(AbstractMessageHandler.java:779) at com.atlassian.jira.plugins.mail.handlers.AbstractMessageHandler$2.handlePart(AbstractMessageHandler.java:619) at com.atlassian.jira.plugins.mail.handlers.AbstractMessageHandler.handleMultipart(AbstractMessageHandler.java:691) at com.atlassian.jira.plugins.mail.handlers.AbstractMessageHandler.handleMultipart(AbstractMessageHandler.java:683) at com.atlassian.jira.plugins.mail.handlers.AbstractMessageHandler.createAttachmentsForMessage(AbstractMessageHandler.java:652) at com.atlassian.jira.plugins.mail.handlers.CreateIssueHandler.handleMessage(CreateIssueHandler.java:274) at com.atlassian.jira.plugins.mail.handlers.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:133) at com.atlassian.jira.service.services.mail.MailFetcherService$1.process(MailFetcherService.java:413) at com.atlassian.jira.service.services.mail.MailFetcherService$MessageProviderImpl.getAndProcessMail(MailFetcherService.java:306) at com.atlassian.jira.service.services.mail.MailFetcherService.runImpl(MailFetcherService.java:401) at com.atlassian.jira.service.services.file.AbstractMessageHandlingService.run(AbstractMessageHandlingService.java:257) at com.atlassian.jira.plugins.mail.rest.MessageHandlersResource$1.run(MessageHandlersResource.java:183) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) at com.atlassian.plugin.util.ContextClassLoaderSwitchingUtil.runInContext(ContextClassLoaderSwitchingUtil.java:57) at com.atlassian.plugin.util.ContextClassLoaderSwitchingUtil.runInContext(ContextClassLoaderSwitchingUtil.java:28) at com.atlassian.jira.plugins.mail.rest.MessageHandlersResource.testHandler(MessageHandlersResource.java:169) 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:597) at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205) at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) {code}

    Atlassian JIRA | 3 years ago | Grzegorz TaƄczyk
    java.lang.OutOfMemoryError: Java heap space
  3. 0

    There are two problems: 1. OOM 2. Incoming email processing is blocked Looks like this is similar problem to JRA-35816, fixed in atlassian-core, but mail handler does not use atlassian-core. It affects production OnDemand, all instances. {code}java.lang.OutOfMemoryError: Java heap space Dumping heap to java_pid9943.hprof ... Heap dump file created [295513170 bytes in 1,603 secs] 2014-04-25 17:19:35,812 http-bio-8090-exec-12 ERROR admin 1039x1167x1 1vj4fgc 127.0.0.1 /rest/jira-mail-plugin/1.0/message-handlers/test [common.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: Java heap space java.lang.OutOfMemoryError: Java heap space at com.sun.imageio.plugins.png.PNGImageReader.readMetadata(PNGImageReader.java:728) at com.sun.imageio.plugins.png.PNGImageReader.getImageMetadata(PNGImageReader.java:1550) at com.atlassian.jira.plugins.mail.handlers.GeneratedAttachmentRecogniser.containsJiraMetadata(GeneratedAttachmentRecogniser.java:64) at com.atlassian.jira.plugins.mail.handlers.GeneratedAttachmentRecogniser.<init>(GeneratedAttachmentRecogniser.java:32) at com.atlassian.jira.plugins.mail.handlers.AbstractMessageHandler.isJiraGeneratedAttachment(AbstractMessageHandler.java:836) at com.atlassian.jira.plugins.mail.handlers.AbstractMessageHandler.shouldAttach(AbstractMessageHandler.java:779) at com.atlassian.jira.plugins.mail.handlers.AbstractMessageHandler$2.handlePart(AbstractMessageHandler.java:619) at com.atlassian.jira.plugins.mail.handlers.AbstractMessageHandler.handleMultipart(AbstractMessageHandler.java:691) at com.atlassian.jira.plugins.mail.handlers.AbstractMessageHandler.handleMultipart(AbstractMessageHandler.java:683) at com.atlassian.jira.plugins.mail.handlers.AbstractMessageHandler.createAttachmentsForMessage(AbstractMessageHandler.java:652) at com.atlassian.jira.plugins.mail.handlers.CreateIssueHandler.handleMessage(CreateIssueHandler.java:274) at com.atlassian.jira.plugins.mail.handlers.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:133) at com.atlassian.jira.service.services.mail.MailFetcherService$1.process(MailFetcherService.java:413) at com.atlassian.jira.service.services.mail.MailFetcherService$MessageProviderImpl.getAndProcessMail(MailFetcherService.java:306) at com.atlassian.jira.service.services.mail.MailFetcherService.runImpl(MailFetcherService.java:401) at com.atlassian.jira.service.services.file.AbstractMessageHandlingService.run(AbstractMessageHandlingService.java:257) at com.atlassian.jira.plugins.mail.rest.MessageHandlersResource$1.run(MessageHandlersResource.java:183) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) at com.atlassian.plugin.util.ContextClassLoaderSwitchingUtil.runInContext(ContextClassLoaderSwitchingUtil.java:57) at com.atlassian.plugin.util.ContextClassLoaderSwitchingUtil.runInContext(ContextClassLoaderSwitchingUtil.java:28) at com.atlassian.jira.plugins.mail.rest.MessageHandlersResource.testHandler(MessageHandlersResource.java:169) 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:597) at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205) at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) {code}

    Atlassian JIRA | 3 years ago | Grzegorz Tanczyk
    java.lang.OutOfMemoryError: Java heap space
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    OutOfMemory Exception : java heap space

    Google Groups | 6 months ago | deepak singh
    java.lang.OutOfMemoryError: Java heap space* *java.lang.OutOfMemoryError: Java heap space*
  6. 0

    OutOfMemory Exception : java heap space

    Google Groups | 6 months ago | deepak singh
    java.lang.OutOfMemoryError: Java heap space* *java.lang.OutOfMemoryError: Java heap space*

    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 com.sun.imageio.plugins.png.PNGImageReader.readMetadata()
    2. Java RT
      PNGImageReader.getImageMetadata
      1. com.sun.imageio.plugins.png.PNGImageReader.readMetadata(PNGImageReader.java:745)
      2. com.sun.imageio.plugins.png.PNGImageReader.getImageMetadata(PNGImageReader.java:1567)
      2 frames
    3. Apache Tika parsers
      ImageParser.parse
      1. org.apache.tika.parser.image.ImageParser.parse(ImageParser.java:97)
      1 frame
    4. Apache Tika core
      ParsingEmbeddedDocumentExtractor.parseEmbedded
      1. org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:281)
      2. org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:281)
      3. org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:120)
      4. org.apache.tika.parser.DelegatingParser.parse(DelegatingParser.java:72)
      5. org.apache.tika.extractor.ParsingEmbeddedDocumentExtractor.parseEmbedded(ParsingEmbeddedDocumentExtractor.java:103)
      5 frames
    5. Apache Tika parsers
      OfficeParser.parse
      1. org.apache.tika.parser.microsoft.AbstractPOIFSExtractor.handleEmbeddedResource(AbstractPOIFSExtractor.java:126)
      2. org.apache.tika.parser.microsoft.WordExtractor.handlePictureCharacterRun(WordExtractor.java:500)
      3. org.apache.tika.parser.microsoft.WordExtractor.handleParagraph(WordExtractor.java:270)
      4. org.apache.tika.parser.microsoft.WordExtractor.handleParagraph(WordExtractor.java:197)
      5. org.apache.tika.parser.microsoft.WordExtractor.handleHeaderFooter(WordExtractor.java:170)
      6. org.apache.tika.parser.microsoft.WordExtractor.parse(WordExtractor.java:100)
      7. org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:201)
      8. org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:172)
      8 frames
    6. Apache Tika core
      Tika.parseToString
      1. org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:281)
      2. org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:281)
      3. org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:120)
      4. org.apache.tika.Tika.parseToString(Tika.java:465)
      5. org.apache.tika.Tika.parseToString(Tika.java:577)
      5 frames