# \[Ignition 8.0.7-15783\] BUG : init.heap/max.heap settings not updated in vision-client-launcher.json

**URL:** <https://forum.inductiveautomation.com/t/ignition-8-0-7-15783-bug-init-heap-max-heap-settings-not-updated-in-vision-client-launcher-json/31247>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [January 13, 2020, 1:25pm UTC](https://forum.inductiveautomation.com/t/ignition-8-0-7-15783-bug-init-heap-max-heap-settings-not-updated-in-vision-client-launcher-json/31247 "2020-01-13T13:25:49Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [January 13, 2020, 1:25pm UTC](https://forum.inductiveautomation.com/t/ignition-8-0-7-15783-bug-init-heap-max-heap-settings-not-updated-in-vision-client-launcher-json/31247/1 "2020-01-13T13:25:49Z")

</div>

@Paul.Scott  
**Ignition 8.0.7** and probably Ignition 8.0.8 nightly, when I add a project in the client launcher, the **vision-client-launcher.json** user file is created with

```auto
      "init.heap": null,
      "max.heap": null,

```

 ![bug_3](https://us1.discourse-cdn.com/inductiveautomation/original/2X/e/ebb3976818d32db9587d8cb1b3750ff10026e955.png)

```auto
  "applications": [
    {
      "project": "STVG_GTC",
      "allow.windowed.launching": null,
      "allow.fullscreen.launching": null,
      "name": "STVG_GTC",
      "description": null,
      "main.class": "com.inductiveautomation.factorypmi.application.runtime.ClientLaunchHook",
      "gateway.info": {
        "gateway.name": "Ignition-TVG-GTC01",
        "gateway.address": "http://10.1.3.10:8088",
        "redundant.gateways": [
          "http://10.1.3.11:8088"
        ]
      },
      "window.mode": null,
      "timeout": 30,
      "screen": null,
      "retries": -1,
      "init.heap": null,
      "max.heap": null,
      "sun.java2d.d3d": null,
      "sun.java2d.noddraw": null,
      "jvm.arguments": [],
      "last.updated": 1578920833391,
      "client.tag.overrides": {},
      "image.path": null,
      "fallback.application": "",
      "use.custom.jre": false,
      "custom.jre.path": "${JAVA_HOME}/bin/java"
    }
  ]

```

If I manually export the config, I have in the exported **vision-client-launcher.json**

```auto
      "init.heap": 1024M,
      "max.heap": 4096M,

```

 ![bug_1](https://us1.discourse-cdn.com/inductiveautomation/original/2X/9/9e48afe8fb6151d19454758921f5970510329084.png)  
If I use a command to launch my application

```auto
.\visionclientlauncher.exe gateway.address=10.1.3.10:8088:8043 application=STVG_GTC project=STVG_GTC window.mode=fullscreen screen=0 show.closebutton=false -Djavaws.launchparams="modeMurImage" -Djavaws.launchparam.modeMurImage=0

```

The client has only **256 Mo of memory**

If I add **init.heap=1024M max.heap=4096M**

```auto
.\visionclientlauncher.exe gateway.address=10.1.3.10:8088:8043 init.heap=1024M max.heap=4096M application=STVG_GTC project=STVG_GTC window.mode=fullscreen screen=0 show.closebutton=false -Djavaws.launchparams="modeMurImage" -Djavaws.launchparam.modeMurImage=0

```

The client has only **256 Mo of memory** available :

![bug_2](https://us1.discourse-cdn.com/inductiveautomation/original/2X/d/d028a52d7933673507922b82bb112eb80cd29b35.png)

If I manually modify the user file **vision-client-launcher.json**

```auto
      "init.heap": 1024M,
      "max.heap": 4096M,

```

The client has **4096Mo of memory** available as requested by the project/client launcher settings

**I think there is a bug in the client launcher : the vision-client-launcher.json is not updated for memory settings**

---

<div class="post-metadata">

**Author:** ![jpark](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jpark](https://forum.inductiveautomation.com/u/jpark)\
**Post date:** [January 13, 2020, 4:17pm UTC](https://forum.inductiveautomation.com/t/ignition-8-0-7-15783-bug-init-heap-max-heap-settings-not-updated-in-vision-client-launcher-json/31247/2 "2020-01-13T16:17:13Z")

</div>

I’ve noticed this too.

---

<div class="post-metadata">

**Author:** ![Paul.Scott](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul.scott/32/4578_2.png) [@Paul.Scott](https://forum.inductiveautomation.com/u/Paul.Scott)\
**Post date:** [January 13, 2020, 8:02pm UTC](https://forum.inductiveautomation.com/t/ignition-8-0-7-15783-bug-init-heap-max-heap-settings-not-updated-in-vision-client-launcher-json/31247/4 "2020-01-13T20:02:29Z")

</div>

@mazeyrat @jpark Thanks for the report. Just to confirm, if you launch a client using the GUI in the client launcher, does that client use the expected heap settings?

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [January 13, 2020, 8:09pm UTC](https://forum.inductiveautomation.com/t/ignition-8-0-7-15783-bug-init-heap-max-heap-settings-not-updated-in-vision-client-launcher-json/31247/5 "2020-01-13T20:09:42Z")

</div>

I need to check it tomorrow. I don’t remenber if I have tested this case before or after I’had manually corrected the user **vision-client-launcher.json** …

---

<div class="post-metadata">

**Author:** ![jcoffman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jcoffman/32/6429_2.png) [@jcoffman](https://forum.inductiveautomation.com/u/jcoffman)\
**Post date:** [January 13, 2020, 11:03pm UTC](https://forum.inductiveautomation.com/t/ignition-8-0-7-15783-bug-init-heap-max-heap-settings-not-updated-in-vision-client-launcher-json/31247/6 "2020-01-13T23:03:28Z")

</div>

Just to clarify, those values remaining null is expected. Those are local overrides to the defaults provided by the gateway for the project. Specifying them in the json overrides those defaults. Those values should be respected at launch so this still sounds like a bug in your scenario. just wanted to clarify the behavior of the json.

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [January 14, 2020, 9:20am UTC](https://forum.inductiveautomation.com/t/ignition-8-0-7-15783-bug-init-heap-max-heap-settings-not-updated-in-vision-client-launcher-json/31247/7 "2020-01-14T09:20:31Z")

</div>

@jcoffman, @Paul.Scott

When the application is launched from the vision client launcher with the following value in the **vision-client-launcher.json**

```auto
"init.heap": null,
"max.heap": null, 

```

The client use the project property and in my case the **max.heap = 4096M**

But If I add **init.heap=1024M max.heap=4096M** in the command line:

```auto
.\visionclientlauncher.exe gateway.address=10.1.3.10:8088:8043 init.heap=1024M max.heap=4096M application=STVG_GTC project=STVG_GTC window.mode=fullscreen screen=0 show.closebutton=false -Djavaws.launchparams="modeMurImage" -Djavaws.launchparam.modeMurImage=0

```

these settings have no effect !

If I manually change the **vision-client-launcher.json** in the user directory with:

```auto
"init.heap": 1024M,
"max.heap": 4096M,

```

But in case I had the application in thevision client launcher, the file is recreated with **null**.  
Is there a way to add init.heap and max.heap settings when yje client is launched with the command line ?

---

<div class="post-metadata">

**Author:** ![Paul.Scott](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul.scott/32/4578_2.png) [@Paul.Scott](https://forum.inductiveautomation.com/u/Paul.Scott)\
**Post date:** [February 14, 2020, 4:47pm UTC](https://forum.inductiveautomation.com/t/ignition-8-0-7-15783-bug-init-heap-max-heap-settings-not-updated-in-vision-client-launcher-json/31247/8 "2020-02-14T16:47:16Z")

</div>

The ~~8.0.9~~ next available 8.0.10 nightly contains a fix for the issue presented here.

---

<div class="post-metadata">

**Author:** ![ngchonghan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ngchonghan/32/13420_2.png) [@ngchonghan](https://forum.inductiveautomation.com/u/ngchonghan)\
**Post date:** [March 30, 2020, 12:59am UTC](https://forum.inductiveautomation.com/t/ignition-8-0-7-15783-bug-init-heap-max-heap-settings-not-updated-in-vision-client-launcher-json/31247/9 "2020-03-30T00:59:33Z")

</div>

Hi Paul,

I am currently using 8.0.10 and the problem still persist.

I have configured the memory size as shown below:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/2/2c3ec2002e1779aed0bfffb8882d865c4598c1ba.png)

However, the max heap memory showed from the vision client status showed that it is fixed at 256M.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/e/e93833552351a9944ec896b56656bb3f5fabda7b.png)

Could we have an update asap as we are currently having testing with clients and this java heap out of memory keeps popping out which prevent us from viewing other hmi pages?

Also, I realized that the window mode selection is missing in the vision client launcher setting. Is there any setting to configure to reveal it ?

Br,  
Edwin

---

<div class="post-metadata">

**Author:** ![ngchonghan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ngchonghan/32/13420_2.png) [@ngchonghan](https://forum.inductiveautomation.com/u/ngchonghan)\
**Post date:** [March 30, 2020, 2:08am UTC](https://forum.inductiveautomation.com/t/ignition-8-0-7-15783-bug-init-heap-max-heap-settings-not-updated-in-vision-client-launcher-json/31247/10 "2020-03-30T02:08:09Z")

</div>

-UPDATE-

I have found out that the client max heap will be updated if i configured it from the project properties in the designer, restart the gateway and added in the vision client launcher. I also realized none of the settings from designer launcher or the vision client launcher is applied even though I have saved the settings.

As the setting in the launcher are non critical for our situations, we will use the above approach to resolve our heap memory problem.
