System error - java.lang.OutOfMemoryError
Asked by Amey Nevrenkar:

Hi

I am getting this error for past few days in confluence when I try to click system information i get system error

and the cause points to java.lang.OutOfMemoryError.

I have tried increasing the heap size, of tomcat as well as JVM, by going in window registry.

can someone help.

below is the screen shot of the error message.

System Error {#toc-hId-1877328230}
==================================

A system error has occurred --- our apologies!

For immediate troubleshooting, consult our **[knowledge base](http://confluence.atlassian.com/display/CONFKB/Confluence+Knowledge+Base+Home)** for a solution.

If you would like to receive support from Atlassian's support team, ask your **[Confluence administrator](http://nasj1swiki/contactadministrators.action)** to create a support issue on [Atlassian's support system](http://support.atlassian.com/) with the following information:

1. a description of your problem and what you were doing at the time it occurred
2. a copy of the error and system information found below
3. a copy of the application logs (if possible).

Your Confluence administrator can use the **[support request form](http://nasj1swiki/admin/raisesupportrequest.action)** to create a support ticket which will include this information.

We will respond as promptly as possible.  
Thank you!

[**Return to site homepage...**](http://nasj1swiki/)

### Cause {#toc-hId--1067855741}

org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getModifications' in class com.atlassian.confluence.admin.actions.ViewSystemInfoAction threw exception java.lang.OutOfMemoryError at /admin/systeminfo.vm\[line 99, column 23\]  
at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:237)

caused by: java.lang.OutOfMemoryError  
at java.io.FileInputStream.readBytes(Native Method)

#### Stack Trace:\[hide\] {#toc-hId-478441089}

```
org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getModifications' in  class com.atlassian.confluence.admin.actions.ViewSystemInfoAction threw exception java.lang.OutOfMemoryError at /admin/systeminfo.vm[line 99, column 23]	at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:237)	at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)	at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:487)	at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)	at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)	at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)	at org.apache.velocity.runtime.directive.Parse.render(Parse.java:260)	at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)	at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)	at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)	at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)	at org.apache.velocity.Template.merge(Template.java:328)	at org.apache.velocity.Template.merge(Template.java:235)	at com.opensymphony.webwork.dispatcher.VelocityResult.doExecute(VelocityResult.java:91)	at com.atlassian.xwork.results.ProfiledVelocityResult.doExecute(ProfiledVelocityResult.java:21)	at com.opensymphony.webwork.dispatcher.WebWorkResultSupport.execute(WebWorkResultSupport.java:116)	at com.opensymphony.xwork.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:263)	at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:187)	at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)	at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)	at com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor.intercept(DefaultWorkflowInterceptor.java:55)	at com.atlassian.confluence.core.ConfluenceWorkflowInterceptor.intercept(ConfluenceWorkflowInterceptor.java:35)	at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)
```


Answers:
author: Jeremy Largman
body: Hi Amey,

You'll likely want to [verify your settings](http://confluence.atlassian.com/display/DOC/Fix+Out+of+Memory+errors+by+Increasing+Available+Memory#FixOutofMemoryErrorsbyIncreasingAvailableMemory-Step3VerifyYourSettings). Make sure the registry settings are being picked up.

comments: author: Amey Nevrenkar
body: Hi Jeremy

I have carried out the steps but it still seems to give the error.

Thanks for the response.


author: AlysonA
body: Are you getting this error only when trying to access the System Information section? Also, do you have enough physical memory to allocate to Tomcat (assuming that you're using an EAR-WAR version)?

Please also be sure to restart tomcat once you increase the memory. =)

comments: author: Amey Nevrenkar
body: Hi Alyson

I have carried out the steps but it still seems to give the error.

Thanks for the response.