Java heap space :: failure while Restore XML Backup Data

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

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

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 ?

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.

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.

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

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
Community showcase
Posted Thursday in Marketplace Apps

You + one app + a desert island...

Hi all! My name is Miles and I work on the Marketplace team. We’re looking for better ways to recommend and suggest apps that are truly crowd favorites, so of course we wanted to poll the Community. ...

1,648 views 4 6
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you