Hello,
building plugins with the Atlassian SDK, but need to increase the Java memory.
Does anyone know how?
Thank you.
Community moderators have prevented the ability to post new answers.
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>
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try the --jvmargs option.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Works, but I had to use double quotes:
--jvmargs "-Xmx512m -XX:MaxPermSize=256m"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Probably better to to it on the system environment variable MAVEN_OPTS , this way it will work for all your developed plugins
example:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.