java.lang.OutOfMemoryError: Java heap space

Atlassian JIRA | Brian Tom | 3 years ago
  1. 0

    h4. Steps to reproduce # Start Confluence 5.2.3 # Navigating to the following URL: http://<confluence-base-url>/dosearchsite.action?queryString=1&startIndex=268435455 (or some other high startIndex value) # The browser will spin, and logs will eventually display an out-of-memory error {code} 2013-09-18 17:13:19,808 ERROR [http-8523-6] [[Standalone].[localhost].[/confluence].[action]] log Servlet.service() for servlet action threw exception -- url: /confluence/dosearchsite.action | userName: admin java.lang.OutOfMemoryError: Java heap space at org.apache.lucene.util.PriorityQueue.<init>(PriorityQueue.java:64) at org.apache.lucene.search.HitQueue.<init>(HitQueue.java:64) at org.apache.lucene.search.TopScoreDocCollector.<init>(TopScoreDocCollector.java:275) at org.apache.lucene.search.TopScoreDocCollector.<init>(TopScoreDocCollector.java:37) at org.apache.lucene.search.TopScoreDocCollector$InOrderTopScoreDocCollector.<init>(TopScoreDocCollector.java:42) at org.apache.lucene.search.TopScoreDocCollector$InOrderTopScoreDocCollector.<init>(TopScoreDocCollector.java:40) at org.apache.lucene.search.TopScoreDocCollector.create(TopScoreDocCollector.java:258) at org.apache.lucene.search.TopScoreDocCollector.create(TopScoreDocCollector.java:238) at com.atlassian.confluence.plugins.search.LuceneSearcher$1.perform(LuceneSearcher.java:81) at com.atlassian.bonnie.LuceneConnection.withSearch(LuceneConnection.java:201) 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.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129) at com.sun.proxy.$Proxy192.withSearch(Unknown Source) 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.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154) at com.sun.proxy.$Proxy192.withSearch(Unknown Source) at com.atlassian.confluence.plugins.search.LuceneSearcher.search(LuceneSearcher.java:75) at com.atlassian.confluence.plugins.search.actions.SearchAction.execute(SearchAction.java:94) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:168) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.atlassian.confluence.core.ConfluenceWorkflowInterceptor.intercept(ConfluenceWorkflowInterceptor.java:64) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.atlassian.xwork.interceptors.XsrfTokenInterceptor.intercept(XsrfTokenInterceptor.java:100) {code} I was able to replicate the issue on my instance with heap space set to 1024M.

    Atlassian JIRA | 3 years ago | Brian Tom
    java.lang.OutOfMemoryError: Java heap space
  2. 0

    h4. Steps to reproduce # Start Confluence 5.2.3 # Navigating to the following URL: http://<confluence-base-url>/dosearchsite.action?queryString=1&startIndex=268435455 (or some other high startIndex value) # The browser will spin, and logs will eventually display an out-of-memory error {code} 2013-09-18 17:13:19,808 ERROR [http-8523-6] [[Standalone].[localhost].[/confluence].[action]] log Servlet.service() for servlet action threw exception -- url: /confluence/dosearchsite.action | userName: admin java.lang.OutOfMemoryError: Java heap space at org.apache.lucene.util.PriorityQueue.<init>(PriorityQueue.java:64) at org.apache.lucene.search.HitQueue.<init>(HitQueue.java:64) at org.apache.lucene.search.TopScoreDocCollector.<init>(TopScoreDocCollector.java:275) at org.apache.lucene.search.TopScoreDocCollector.<init>(TopScoreDocCollector.java:37) at org.apache.lucene.search.TopScoreDocCollector$InOrderTopScoreDocCollector.<init>(TopScoreDocCollector.java:42) at org.apache.lucene.search.TopScoreDocCollector$InOrderTopScoreDocCollector.<init>(TopScoreDocCollector.java:40) at org.apache.lucene.search.TopScoreDocCollector.create(TopScoreDocCollector.java:258) at org.apache.lucene.search.TopScoreDocCollector.create(TopScoreDocCollector.java:238) at com.atlassian.confluence.plugins.search.LuceneSearcher$1.perform(LuceneSearcher.java:81) at com.atlassian.bonnie.LuceneConnection.withSearch(LuceneConnection.java:201) 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.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129) at com.sun.proxy.$Proxy192.withSearch(Unknown Source) 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.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154) at com.sun.proxy.$Proxy192.withSearch(Unknown Source) at com.atlassian.confluence.plugins.search.LuceneSearcher.search(LuceneSearcher.java:75) at com.atlassian.confluence.plugins.search.actions.SearchAction.execute(SearchAction.java:94) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:168) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.atlassian.confluence.core.ConfluenceWorkflowInterceptor.intercept(ConfluenceWorkflowInterceptor.java:64) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.atlassian.xwork.interceptors.XsrfTokenInterceptor.intercept(XsrfTokenInterceptor.java:100) {code} I was able to replicate the issue on my instance with heap space set to 1024M.

    Atlassian JIRA | 3 years ago | Brian Tom
    java.lang.OutOfMemoryError: Java heap space
  3. 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*
  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

    [exoplatform] [explatform] Memory requirements

    ow2.org | 1 year ago
    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 org.apache.lucene.util.PriorityQueue.<init>()
    2. Lucene
      TopScoreDocCollector.create
      1. org.apache.lucene.util.PriorityQueue.<init>(PriorityQueue.java:64)
      2. org.apache.lucene.search.HitQueue.<init>(HitQueue.java:64)
      3. org.apache.lucene.search.TopScoreDocCollector.<init>(TopScoreDocCollector.java:275)
      4. org.apache.lucene.search.TopScoreDocCollector.<init>(TopScoreDocCollector.java:37)
      5. org.apache.lucene.search.TopScoreDocCollector$InOrderTopScoreDocCollector.<init>(TopScoreDocCollector.java:42)
      6. org.apache.lucene.search.TopScoreDocCollector$InOrderTopScoreDocCollector.<init>(TopScoreDocCollector.java:40)
      7. org.apache.lucene.search.TopScoreDocCollector.create(TopScoreDocCollector.java:258)
      8. org.apache.lucene.search.TopScoreDocCollector.create(TopScoreDocCollector.java:238)
      8 frames
    3. com.atlassian.confluence
      LuceneSearcher$1.perform
      1. com.atlassian.confluence.plugins.search.LuceneSearcher$1.perform(LuceneSearcher.java:81)
      1 frame
    4. com.atlassian.bonnie
      LuceneConnection.withSearch
      1. com.atlassian.bonnie.LuceneConnection.withSearch(LuceneConnection.java:201)
      1 frame
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    6. com.atlassian.plugin
      DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke
      1. com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129)
      1 frame
    7. com.sun.proxy
      $Proxy192.withSearch
      1. com.sun.proxy.$Proxy192.withSearch(Unknown Source)
      1 frame
    8. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    9. com.atlassian.plugin
      HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke
      1. com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154)
      1 frame
    10. com.sun.proxy
      $Proxy192.withSearch
      1. com.sun.proxy.$Proxy192.withSearch(Unknown Source)
      1 frame
    11. com.atlassian.confluence
      SearchAction.execute
      1. com.atlassian.confluence.plugins.search.LuceneSearcher.search(LuceneSearcher.java:75)
      2. com.atlassian.confluence.plugins.search.actions.SearchAction.execute(SearchAction.java:94)
      2 frames
    12. XWork Tiger Extensions
      DefaultActionInvocation.invoke
      1. com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:168)
      1 frame
    13. com.opensymphony.xwork
      AroundInterceptor.intercept
      1. com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
      1 frame
    14. XWork Tiger Extensions
      DefaultActionInvocation.invoke
      1. com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)
      1 frame
    15. com.atlassian.confluence
      ConfluenceWorkflowInterceptor.intercept
      1. com.atlassian.confluence.core.ConfluenceWorkflowInterceptor.intercept(ConfluenceWorkflowInterceptor.java:64)
      1 frame
    16. XWork Tiger Extensions
      DefaultActionInvocation.invoke
      1. com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)
      1 frame
    17. com.opensymphony.xwork
      AroundInterceptor.intercept
      1. com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
      1 frame
    18. XWork Tiger Extensions
      DefaultActionInvocation.invoke
      1. com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)
      1 frame
    19. com.atlassian.xwork
      XsrfTokenInterceptor.intercept
      1. com.atlassian.xwork.interceptors.XsrfTokenInterceptor.intercept(XsrfTokenInterceptor.java:100)
      1 frame