JVM Memory Allocation for SDK Plugin Tutorial

Hello! I’m going through the SDK Plugin Tutorial (on Windows 10) here: Create a HelloWorld plugin project (atlassian.com) I used the old SDK and JDK versions to get atlas-run to work, but when I launch the localhost Jira page I get this:

And the troubleshooting guides on the “learn more” links on the page didn’t help, because I don’t see any of the configuration files those pages talk about. I think this is because I’m using the tutorial and not an actual Jira server.

Could someone help me with this? Otherwise, if you could suggest another way to make and test a plugin besides this tutorial, I’d greatly appreciate it. Thank you very much!

Welcome to the Atlassian Developer Community, @AbbyChou !

If you want to increase the memory allocation when running via atlas-run, try using the --jvmargs parameter (see this documentation for more information). In your case, you can try --jvmargs '-Xmx2G' for example.

Do let us know how it goes.

Cheers,
Ian

Hi @AbbyChou

if you don’t want to remember to add this command to atlas-run every time, you can add this argument to your pom.xml

Example:

...
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>jira-maven-plugin</artifactId>
                <version>${amps.version}</version>
                <extensions>true</extensions>
                <configuration>
                    ...
                    <jvmArgs>-Xms2048m -Xmx7096m</jvmArgs>
                    ...
                </configuration>
            </plugin>
...

Cheers
Adam

1 Like