java.lang.OutOfMemoryError: GC overhead limit exceeded

newrelic.com | 2 months ago
  1. 0

    huge data insert

    Google Groups | 7 years ago | uyeee
    java.lang.OutOfMemoryError: Java heap space
  2. 0

    Hello, I am trying to create a project via the SOAP API for Jira. I am working with a python SOAP CLI script to perform the project creation. The class JiraCreateProject contains: key = args[0] name = args[1] description = args[2] url = args[3] lead = args[4] permissionScheme = args[5] try: soap.service.createProject(auth, key, name, description, url, lead, permissionScheme) All works well, except for the permissionScheme portion -which I pass as either a string ("Default Permission Scheme") or a id number ("0"). As a result, the Project does in fact get created, but only visible under the Administration -> Projects list. It is not browsable via normal users or even have to ability to be queried when I want to do a listing of Projects using the API. I can't add issues to it as well ...so it's pretty much worthless. If I go to the project's summary page, I see Scheme: None (under Permissions) and when I go to change this via the web UI (by clicking on "None"), I get a System Error page with a java.lang.NullPointerException: java.lang.NullPointerException at com.atlassian.jira.projectconfig.contextproviders.ProjectPermissionContextProvider.getContextMap(ProjectPermissionContextProvider.java:85) at com.atlassian.jira.plugin.webfragment.CacheableContextProviderDecorator.initContextMap(CacheableContextProviderDecorator.java:70) at com.atlassian.jira.plugin.webfragment.CacheableContextProviderDecorator.getContextMap(CacheableContextProviderDecorator.java:46) at com.atlassian.plugin.web.descriptors.DefaultWebPanelModuleDescriptor$ContextAwareWebPanel.getHtml(DefaultWebPanelModuleDescriptor.java:141) at com.atlassian.jira.projectconfig.tab.WebPanelTab.getTab(WebPanelTab.java:75) at com.atlassian.jira.projectconfig.servlet.PanelServlet.outputTab(PanelServlet.java:163) at com.atlassian.jira.projectconfig.servlet.PanelServlet.doGet(PanelServlet.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at com.atlassian.plugin.servlet.DelegatingPluginServlet.service(DelegatingPluginServlet.java:42) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at com.atlassian.plugin.servlet.ServletModuleContainerServlet.service(ServletModuleContainerServlet.java:52) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.jira.web.filters.steps.ChainedFilterStepRunner.doFilter(ChainedFilterStepRunner.java:74) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.core.filters.HeaderSanitisingFilter.doFilter(HeaderSanitisingFilter.java:44) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66) at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.jira.web.filters.accesslog.AccessLogFilter.executeRequest(AccessLogFilter.java:103) at com.atlassian.jira.web.filters.accesslog.AccessLogFilter.doFilter(AccessLogFilter.java:87) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.jira.security.xsrf.XsrfTokenAdditionRequestFilter.doFilter(XsrfTokenAdditionRequestFilter.java:54) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129) at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:211) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:98) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.seraph.filter.BaseLoginFilter.doFilter(BaseLoginFilter.java:150) at com.atlassian.jira.web.filters.JiraLoginFilter.doFilter(JiraLoginFilter.java:70) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66) at com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:71) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.util.profiling.filters.ProfilingFilter.doFilter(ProfilingFilter.java:99) at com.atlassian.jira.web.filters.JIRAProfilingFilter.doFilter(JIRAProfilingFilter.java:19) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.johnson.filters.AbstractJohnsonFilter.doFilter(AbstractJohnsonFilter.java:71) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:350) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.gzipfilter.GzipFilter.doFilterInternal(GzipFilter.java:75) at com.atlassian.gzipfilter.GzipFilter.doFilter(GzipFilter.java:51) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66) at com.sysbliss.jira.plugins.workflow.servlet.JWDSendRedirectFilter.doFilter(JWDSendRedirectFilter.java:25) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.jira.web.filters.steps.ChainedFilterStepRunner.doFilter(ChainedFilterStepRunner.java:74) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.core.filters.cache.AbstractCachingFilter.doFilter(AbstractCachingFilter.java:33) at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.core.filters.encoding.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:41) at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31) at com.atlassian.jira.web.filters.PathMatchingEncodingFilter.doFilter(PathMatchingEncodingFilter.java:49) at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.jira.web.monitor.ActiveRequestsFilter$PassToChainFilterFunc.doFilter(ActiveRequestsFilter.java:346) at com.atlassian.jira.web.monitor.ActiveRequestsFilter$DebugLogFilterFunc.doFilter(ActiveRequestsFilter.java:463) at com.atlassian.jira.web.monitor.ActiveRequestsFilter.doFilter(ActiveRequestsFilter.java:173) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.jira.startup.JiraStartupChecklistFilter.doFilter(JiraStartupChecklistFilter.java:75) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.multitenant.servlet.MultiTenantServletFilter.doFilter(MultiTenantServletFilter.java:91) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.jira.web.filters.steps.ChainedFilterStepRunner.doFilter(ChainedFilterStepRunner.java:74) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:554) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:662) As an alternative, I've tried using the jira-cli-3.1.0 tool, but unfortunately we are having issues with that as well: ./jira.sh --action createProject --project "FLUF" --lead "formation" --name "Fluffy" --description "Automated Test Proj" --url "http://example.com" --defaultAssignee "Project Lead" --permissionScheme "Default Permission Scheme" -s https://matrix.corpit.vrsn.com/jira -u formation -p xxxxxxx --verbose --debug User parameters (non-blank): Property path . . . . . . . . : META-INF/maven/org.swift.jira.cli/jira-cli/pom.properties Java arguments . . . . . . . : [] Used memory (MB) . . . . . . : 4 Free memory (MB) . . . . . . : 54 Total memory (MB) . . . . . . : 58 Max memory (MB) . . . . . . . : 864 clientInfo . . . . . . . . . : Client version: 3.1.0, Java: Java HotSpot(TM) 64-Bit Server VM 1.6.0_26, OS: Linux 3.0.0-26-generic action . . . . . . . . . . . : createProject debug . . . . . . . . . . . . : true verbose . . . . . . . . . . . : true url . . . . . . . . . . . . . : http://example.com server . . . . . . . . . . . : https://matrix.corpit.vrsn.com/jira user . . . . . . . . . . . . : formation password . . . . . . . . . . : *** project . . . . . . . . . . . : FLUF name . . . . . . . . . . . . : Fluffy description . . . . . . . . . : Automated Test Proj lead . . . . . . . . . . . . : formation defaultAssignee . . . . . . . : Project Lead permissionScheme . . . . . . : Default Permission Scheme Default parameters (non-blank): quiet . . . . . . . . . . . . : false outputFormat . . . . . . . . : 1 host . . . . . . . . . . . . : localhost continue . . . . . . . . . . : false simulate . . . . . . . . . . : false service . . . . . . . . . . . : /rpc/soap/jirasoapservice-v2 loginFromStandardInput . . . : false requestType . . . . . . . . . : GET count . . . . . . . . . . . . : 2147483647 api . . . . . . . . . . . . . : 0 autoVersion . . . . . . . . . : false autoComponent . . . . . . . . : false autoGroup . . . . . . . . . . : false autoAdjust . . . . . . . . . : false asVersion . . . . . . . . . . : false asComponent . . . . . . . . . : false asCascadeSelect . . . . . . . : false append . . . . . . . . . . . : false appendText . . . . . . . . . : false copyLinks . . . . . . . . . . : false copyAttachments . . . . . . . : false copyComments . . . . . . . . : false copyWatchers . . . . . . . . : false copySubtasks . . . . . . . . : false copySubtaskEstimates . . . . : false useParentVersions . . . . . . : false cloneIssues . . . . . . . . . : false copyVersions . . . . . . . . : false copyComponents . . . . . . . : false copyRoleActors . . . . . . . : false replace . . . . . . . . . . . : false help . . . . . . . . . . . . : false Server address: https://matrix.corpit.vrsn.com/jira/rpc/soap/jirasoapservice-v2 Successful login to: https://matrix.corpit.vrsn.com/jira/rpc/soap/jirasoapservice-v2 by user: formation. Token is q6PRV8nz7X Successful login to: https://matrix.corpit.vrsn.com/jira/rpc/soap/jirasoapservice-v2 by user: formation Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOfRange(Arrays.java:3209) at java.lang.String.<init>(String.java:215) at java.lang.StringBuffer.toString(StringBuffer.java:585) at java.text.MessageFormat.applyPattern(MessageFormat.java:478) at java.text.MessageFormat.<init>(MessageFormat.java:350) at java.text.MessageFormat.format(MessageFormat.java:811) at org.apache.axis.i18n.MessageBundle.getMessage(MessageBundle.java:203) at org.apache.axis.i18n.MessageBundle.getMessage(MessageBundle.java:101) at org.apache.axis.utils.Messages.getMessage(Messages.java:80) at org.apache.axis.configuration.FileProvider.getService(FileProvider.java:233) at org.apache.axis.AxisEngine.getService(AxisEngine.java:311) at org.apache.axis.MessageContext.setTargetService(MessageContext.java:756) at org.apache.axis.client.Call.invoke(Call.java:2690) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at org.swift.common.soap.jira.JirasoapserviceV2SoapBindingStub.logout(JirasoapserviceV2SoapBindingStub.java:5763) at org.swift.jira.cli.JiraClient.serviceLogout(JiraClient.java:432) at org.swift.common.cli.AbstractRemoteClient.remoteLogout(AbstractRemoteClient.java:254) at org.swift.common.cli.AbstractRemoteClient.logout(AbstractRemoteClient.java:396) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:142) at org.swift.common.cli.CliClient.doWork(CliClient.java:313) at org.swift.jira.cli.JiraClient.main(JiraClient.java:165) Even when omitting permissionScheme, I expect just to get the Default anyway ...but I don't. I actually end up in the same spot as before, with no permission schemes at all. BTW, I am also unable to clone or update the project after the fact. This is JIRA version: 4.4.4, build: 664

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

    Automated exception search integrated into your IDE

  4. 0

    OutOfMemoryError with streaming

    Google Groups | 11 months ago | Richard Rodseth
    java.lang.OutOfMemoryError: Java heap space
  5. 0

    GitHub comment 51#259524188

    GitHub | 4 weeks ago | pbinkley
    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

      GC overhead limit exceeded

      at java.lang.String.substring()
    2. Java RT
      MessageFormat.format
      1. java.lang.String.substring(String.java:1913)
      2. java.text.MessageFormat.subformat(MessageFormat.java:1233)
      3. java.text.MessageFormat.format(MessageFormat.java:860)
      4. java.text.Format.format(Format.java:157)
      5. java.text.MessageFormat.format(MessageFormat.java:836)
      5 frames
    3. com.newrelic.agent
      WrapMethodClassVisitor$MethodWrapMethodVisitor.visitMethodInsn
      1. com.newrelic.agent.compile.ClassRemapperConfig.getCallSiteReplacements(ClassRemapperConfig.java:39)
      2. com.newrelic.agent.compile.InstrumentationContext.getCallSiteReplacements(InstrumentationContext.java:179)
      3. com.newrelic.agent.compile.visitor.WrapMethodClassVisitor$MethodWrapMethodVisitor.tryReplaceCallSite(WrapMethodClassVisitor.java:108)
      4. com.newrelic.agent.compile.visitor.WrapMethodClassVisitor$MethodWrapMethodVisitor.visitMethodInsn(WrapMethodClassVisitor.java:60)
      4 frames
    4. com.newrelic.objectweb
      ClassReader.accept
      1. com.newrelic.objectweb.asm.ClassReader.accept(Unknown Source)
      2. com.newrelic.objectweb.asm.ClassReader.accept(Unknown Source)
      2 frames
    5. com.newrelic.agent
      RewriterAgent$InvocationDispatcher.invoke
      1. com.newrelic.agent.compile.RewriterAgent$InvocationDispatcher.visitClassBytes(RewriterAgent.java:1071)
      2. com.newrelic.agent.compile.RewriterAgent$InvocationDispatcher.access$1400(RewriterAgent.java:838)
      3. com.newrelic.agent.compile.RewriterAgent$InvocationDispatcher$1$1.invoke(RewriterAgent.java:880)
      4. com.newrelic.agent.compile.RewriterAgent$InvocationDispatcher.invoke(RewriterAgent.java:1018)
      4 frames
    6. Android SDK's dx Tool
      Main.main
      1. com.android.dx.command.dexer.Main.processClass(Main.java)
      2. com.android.dx.command.dexer.Main.processFileBytes(Main.java:718)
      3. com.android.dx.command.dexer.Main.access$1200(Main.java:85)
      4. com.android.dx.command.dexer.Main$FileBytesConsumer.processFileBytes(Main.java:1645)
      5. com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)
      6. com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
      7. com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
      8. com.android.dx.command.dexer.Main.processOne(Main.java:672)
      9. com.android.dx.command.dexer.Main.processAllFiles(Main.java:574)
      10. com.android.dx.command.dexer.Main.runMonoDex(Main.java:311)
      11. com.android.dx.command.dexer.Main.run(Main.java:277)
      12. com.android.dx.command.dexer.Main.main(Main.java:245)
      13. com.android.dx.command.Main.main(Main.java:106)[newrelic.error]
      13 frames