# Ign 7.9.12 - Strange client memory issue

**URL:** <https://forum.inductiveautomation.com/t/ign-7-9-12-strange-client-memory-issue/40883>\
**Category:** Ignition\
**Created:** [November 23, 2020, 12:20pm UTC](https://forum.inductiveautomation.com/t/ign-7-9-12-strange-client-memory-issue/40883 "2020-11-23T12:20:50Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![sbrannen](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sbrannen/32/3459_2.png) [@sbrannen](https://forum.inductiveautomation.com/u/sbrannen)\
**Post date:** [November 23, 2020, 12:20pm UTC](https://forum.inductiveautomation.com/t/ign-7-9-12-strange-client-memory-issue/40883/1 "2020-11-23T12:20:50Z")

</div>

Greetings fellow Ignitioneers…

I am working remotely via VPN. The project is well underway and I have run into an issue not seen before. When I run a client locally, I am getting crashes as the project grows. The project settings are 1024/4096 for the client memory, and I am using the bundled Java.

Looking at the gateway’s client status, it shows all the running clients (Image1). But if I click on Details for my running client, it shows I have a max of 256mb… Huh? (Image2)

Clicking all the other clients show they have the full 4096mb available (Image3).

Why would my local client only be allocated 256mb when it is on the same project from the same gateway? Now I know why my clients are crashing. My PC is a high end rig with 64gb ram, so I’m sure I can spare it. 🤓

**Image1**

 ![ClientImage1](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/3/0325244851a4d599b881b7f5f7edadc3a2663bad.png)

**Image2**

 ![ClientImage2](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/e/de21eb38d7894c6b6a9f742b9bc46189da10a9e8.png)

**Image3**

 ![ClientImage3](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/d/1d8040093c14692fc1db49c9b1ea5c659a5c966f.png)

TIA for any sage advice…

As you were,  
Steve

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 23, 2020, 12:41pm UTC](https://forum.inductiveautomation.com/t/ign-7-9-12-strange-client-memory-issue/40883/2 "2020-11-23T12:41:17Z")

</div>

Try re-creating the shortcut for the app on that machine.

---

<div class="post-metadata">

**Author:** ![sbrannen](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sbrannen/32/3459_2.png) [@sbrannen](https://forum.inductiveautomation.com/u/sbrannen)\
**Post date:** [November 23, 2020, 1:24pm UTC](https://forum.inductiveautomation.com/t/ign-7-9-12-strange-client-memory-issue/40883/3 "2020-11-23T13:24:30Z")

</div>

Hi Phil… Thanks for the response.

Downloaded a new Client Launcher for Windows from the Gateway and installed. I was hoping that was a nice trick that would fix it… however, it is still reporting 256mb. Vewy stwange.

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

Steve

---

<div class="post-metadata">

**Author:** ![code\_skin](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@code\_skin](https://forum.inductiveautomation.com/u/code_skin)\
**Post date:** [November 23, 2020, 1:34pm UTC](https://forum.inductiveautomation.com/t/ign-7-9-12-strange-client-memory-issue/40883/4 "2020-11-23T13:34:27Z")

</div>

Are the other clients using bundled JRE as well?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 23, 2020, 1:38pm UTC](https://forum.inductiveautomation.com/t/ign-7-9-12-strange-client-memory-issue/40883/5 "2020-11-23T13:38:31Z")

</div>

Did you actually delete the shortcut for the app and create a new one? The command line in the shortcut can include the memory allocation, overriding the project setting.

---

<div class="post-metadata">

**Author:** ![sbrannen](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sbrannen/32/3459_2.png) [@sbrannen](https://forum.inductiveautomation.com/u/sbrannen)\
**Post date:** [November 23, 2020, 1:39pm UTC](https://forum.inductiveautomation.com/t/ign-7-9-12-strange-client-memory-issue/40883/6 "2020-11-23T13:39:33Z")

</div>

Hey code\_skin… Good question… I will have to ask them down there, but I believe they are.

---

<div class="post-metadata">

**Author:** ![sbrannen](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sbrannen/32/3459_2.png) [@sbrannen](https://forum.inductiveautomation.com/u/sbrannen)\
**Post date:** [November 23, 2020, 1:42pm UTC](https://forum.inductiveautomation.com/t/ign-7-9-12-strange-client-memory-issue/40883/7 "2020-11-23T13:42:14Z")

</div>

Hi Phil… yes, deleted the old and created completely new. It asked if I wanted to create a new desktop shortcut, and I responded in the affirmative.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 23, 2020, 1:45pm UTC](https://forum.inductiveautomation.com/t/ign-7-9-12-strange-client-memory-issue/40883/8 "2020-11-23T13:45:18Z")

</div>

Look at the launcher’s local log file to see what memory allocation option was included when it started the client java process itself. Also look in the launcher’s local configuration file.

Finally, consider looking in the client’s own memory diagnostics, instead of relying on the gateway’s view of the client.

---

<div class="post-metadata">

**Author:** ![sbrannen](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sbrannen/32/3459_2.png) [@sbrannen](https://forum.inductiveautomation.com/u/sbrannen)\
**Post date:** [November 23, 2020, 2:21pm UTC](https://forum.inductiveautomation.com/t/ign-7-9-12-strange-client-memory-issue/40883/9 "2020-11-23T14:21:08Z")

</div>

Here is the pertinent info from the log: _ **Djavaws.sr.platform.edition= -Xms256M -Xmx4096M**._

Looks like it is initiating at 256mb. Also, the client diagnostics shows that it never gets above about 240mb until it crashes when I try to load the heavy screen. The error in the logs is **OutOfMemoryError: Java Heap Memory**.

I just edited the **launch.xml** to include the following:

```auto
<init-heap>1024m</init-heap>
<max-heap>4096m</max-heap>

```

Or, this works too using actual Mbit totals.

```auto
<init-heap>1073741824</init-heap>
<max-heap>4294967296</max-heap>

```

Unfortunately, this still did not solve my issue, but it does work to increase the initial mem of the designer from 256MB to 1024MB.

---

<div class="post-metadata">

**Author:** ![sbrannen](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sbrannen/32/3459_2.png) [@sbrannen](https://forum.inductiveautomation.com/u/sbrannen)\
**Post date:** [November 25, 2020, 11:20pm UTC](https://forum.inductiveautomation.com/t/ign-7-9-12-strange-client-memory-issue/40883/11 "2020-11-25T23:20:05Z")

</div>

I went thru Inductive's support for this. Turns out...it's a known bug.

> Steve,
> 
> So I was just showing this to some of our developers and it turns out there is actually an open bug ticket for this issue that is still in progress. Apparently this bug comes up only when you go through these steps: Launch the Native Client Launcher (NCL) and then launch the designer from the NCL, then once you're in the designer you launch the vision client in published or staging mode. Normally the designer is supposed to 'pass' it's max memory setting onto a vision client, if it's launched from the designer. And with the NCL it is supposed to download these settings from the Gateway when it goes to launch the designer, but that is where this bug lies, the NCL is not correctly downloading this setting from the Gateway so it defaults the designer to 256 MB in the code. And I was able to recreate this bug on my 7.9.16 Gateway as well.
> 
> So for the time being your best bet is going to be to launch the dseigner.jnlp file without the NCL, and then launch the client from there and it should have the same max memory as the designer. So if you set the designer max memory to 4 GB your client should have 4 GB if it's launched from there. Or you could launch the client .jnlp files directly and they will use the correct max memory specified from your project properties settings. I've clicked 'follow' on the internal bug ticket so I'll get emails with updates on it, and I'll let you know when I have some more information on the progress of this issue. Let me know if you have any questions on this.
> 
> Thanks,
> 
> Mytchell Beaton  
> Support Services Engineer  
> Inductive Automation  
> (800) 266-7798  
> Outside US: +1 (916) 456-1045  
> [support@inductiveautomation.com](mailto:support@inductiveautomation.com)

Seems to me this is a pretty serious issue that should not have spanned 4 releases of the 7.9 platform (7.9.12 to 7.9.16). I mean, the embedded NCL is what everyone uses, right?

As you were...  
Steve
