Java heap space :: failure while Restore XML Backup Data

Ankit Jain March 27, 2012

HTTP Status 404 - Could not execute action [XmlRestore]:Java heap space<p><small><small><pre>java.lang.OutOfMemoryError: Java heap space </pre></small></small></p>

I am facing the above error while restoring XML data backup of JIRA (4.2). My JIRA version is 4.3

I am using atlassian-plugin-sdk-3.7.2 and using atlas-run command i start jira.

Can somebody help me in solving this problem...?

Thanks in advance.


type Status report

message Could not execute action [XmlRestore]:Java heap space<p><small><small><pre>java.lang.OutOfMemoryError: Java heap space </pre></small></small></p>

description The requested resource (Could not execute action [XmlRestore]:Java heap space<p><small><small><pre>java.lang.OutOfMemoryError: Java heap space </pre></small></small></p>) is not available.

2 answers

2 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 27, 2012

Increase the memory available. That's what it's effectively asking you to do.

Ankit Jain March 27, 2012

Can you please tell me how to do that? I did ATLAS_OPTS -Xmx512m -XX:MaxPermSize=160m in envt variables. But it does not help...... My whole problem is how to increase the memory ?

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 27, 2012
Ankit Jain March 28, 2012

I have gone through this link already. Note : I have already mentioned that I am using atlassian-plugin-sdk-3.7.2. I dont have setenv.bat to set the values.

Naren
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 28, 2012

Hi Ankit,

Can you please try adding the parameter '--jvmargs [value]' to atlas-run command, like, atlas-run --jvmargs "-Xmx512m".

Or go to /bin folder of atlassian-plugin-sdk-3.7.2 and edit the atlas-run.bat and-

set MAVEN_OPTS=-Xmx512M -XX:MaxPermSize=216M by replacing the default one.

Hope this helps.

Thanks.

Ankit Jain March 28, 2012

Currently atlas-run.bat is set as : set MAVEN_OPTS=-Xmx768M -XX:MaxPermSize=256M %ATLAS_OPTS%

I tried atlas-run --jvmargs "-Xmx512m". : It gave following error

[INFO] [talledLocalContainer] java.lang.OutOfMemoryError: PermGen space
[INFO] [talledLocalContainer] at java.lang.ClassLoader.defineClass1(Native Method)
[INFO] [talledLocalContainer] at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
[INFO] [talledLocalContainer] at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
[INFO] [talledLocalContainer] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
[INFO] [talledLocalContainer] at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1850)
[INFO] [talledLocalContainer] at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:890)
[INFO] [talledLocalContainer] at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1354)
[INFO] [talledLocalContainer] at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
[INFO] [talledLocalContainer] at org.apache.velocity.util.introspection.UberspectImpl.getMethod(UberspectImpl.java:113)
[INFO] [talledLocalContainer] at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:152)
[INFO] [talledLocalContainer] at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175)
[INFO] [talledLocalContainer] at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220)
[INFO] [talledLocalContainer] at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55)
[INFO] [talledLocalContainer] at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
[INFO] [talledLocalContainer] at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.ja

1 vote
Naren
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 28, 2012

Ok.. please check if this works-

Set MAVEN_OPTS in environment variable

Then try adding the following line, after copyright and other comments, by editing mvn.bat file in atlassian-plugin-sdk-3.2\apache-maven\bin folder as-

export MAVEN_OPTS = -Xmx512m

or replace -

> set MAVEN_OPTS= -Xms256m -Xmx512m with -Xms512m -Xmx160m

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events