Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How do you increase Java memory with the Atlassian SDK?

James Star
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.
August 1, 2012

Hello,

building plugins with the Atlassian SDK, but need to increase the Java memory.

Does anyone know how?

Thank you.

3 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

10 votes
Answer accepted
Ringo De Smet September 24, 2014

You can make these settings persistent in your pom.xml:

<plugin>
<groupId>com.atlassian.maven.plugins</groupId>
<artifactId>maven-jira-plugin</artifactId>
<version>${amps.version}</version>
<extensions>true</extensions>
<configuration>
<productVersion>${jira.version}</productVersion>
<productDataVersion>${jira.version}</productDataVersion>
<jvmArgs>-Xms1g -Xmx2g -XX:MaxPermSize=1g -XX:-UseGCOverheadLimit -server</jvmArgs>
</configuration>
</plugin>
Charlie February 19, 2018

The new Atlassian community forum seems to have corrupted the XML above, here it is encoded correctly:

<plugin>
<groupId>com.atlassian.maven.plugins</groupId>
<artifactId>maven-jira-plugin</artifactId>
<version>${amps.version}</version>
<extensions>true</extensions>
<configuration>
<productVersion>${jira.version}</productVersion>
<productDataVersion>${jira.version}</productDataVersion>
<jvmArgs>-Xms1g -Xmx2g -XX:MaxPermSize=1g -XX:-UseGCOverheadLimit -server</jvmArgs>
</configuration>
</plugin>
Like # people like this
7 votes
Jobin Kuruvilla [Adaptavist]
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.
August 1, 2012
James Star
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.
August 2, 2012

Hi Jobin,

I tried -jvmargs this morning with no results and then after some further adjustments, the following worked: atlas-run --version 4.2 --jvmargs '-Xmx512m -XX:MaxPermSize=256m'

Thank you.
Harald Ratzberger January 11, 2018

Works, but I had to use double quotes:

--jvmargs "-Xmx512m -XX:MaxPermSize=256m"
Like Purna Chandra _Appfire_ likes this
Simon Erhardt August 2, 2018

On Windows 10, I had to use

--jvmargs="-Xmx..."

(no spaces) 

1 vote
Ron Elazar July 2, 2019

Probably better to to it on the system environment variable MAVEN_OPTS , this way it will work for all your developed plugins

example:

Captureat.PNG

TAGS
AUG Leaders

Atlassian Community Events