Skip to content

How to set heap space application #192

Description

@demkrc

Hi,

i'm trying to set jvmOptions, but not working.
I add argument in install phase with argument.
it's correct?

   <execution>
                    <id>installer</id>
                    <phase>install</phase>
                    <goals>
                        <goal>exec</goal>
                    </goals>
                    <configuration>
                        <executable>${java.home}/../bin/javapackager</executable>
                        <arguments>
                            <argument>-deploy</argument>
                            <argument>-native</argument>
                            <argument>-outdir</argument>
                            <argument>${app.installerdir}</argument>
                            <argument>-outfile</argument>
                            <argument>${app.filename}</argument>
                            <argument>-srcdir</argument>
                            <argument>${app.dir}</argument>
                            <argument>-srcfiles</argument>
                            <argument>fxlauncher.jar</argument>
                            <argument>-appclass</argument>
                            <argument>fxlauncher.Launcher</argument>
                            <argument>-name</argument>
                            <argument>${project.name}</argument>
                            <argument>-title</argument>
                            <argument>${project.name}</argument>
                            <argument>-vendor</argument>
                            <argument>${app.vendor}</argument>
                            <argument>-Bidentifier=${project.name}</argument>
                            <argument>-BappVersion=${app.version}</argument>
                            <argument>-Bicon=${project.basedir}/package/windows/${project.name}</argument>
                            <argument>-v</argument>
                            <argument>-BjvmOptions=-Xms1024m</argument>  <!-- initial heap -->
                            <argument>-BjvmOptions=-Xmx2048m</argument> <!-- heap max a 2gb -->
                            <argument>-BjvmOptions=-XX:+UseG1GC</argument> <!-- gc optimizer -->
                            <argument>-BjvmOptions=-XX:+UseStringDeduplication </argument><!-- string ram -->
                        </arguments>
                    </configuration>
                </execution>

My application start, but with 256mb max heap.
Thanks for your help

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions