# Maximum available memory in designer

**URL:** <https://forum.inductiveautomation.com/t/maximum-available-memory-in-designer/8635>\
**Category:** General Discussion\
**Created:** [June 27, 2014, 3:07pm UTC](https://forum.inductiveautomation.com/t/maximum-available-memory-in-designer/8635 "2014-06-27T15:07:54Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan\_Bridgeman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dan_bridgeman/32/3610_2.png) [@Dan\_Bridgeman](https://forum.inductiveautomation.com/u/Dan_Bridgeman)\
**Post date:** [June 27, 2014, 3:07pm UTC](https://forum.inductiveautomation.com/t/maximum-available-memory-in-designer/8635/1 "2014-06-27T15:07:54Z")

</div>

When I open a project in the designer, I am getting a maximum available memory of 494 mb. But the Designer Memory setting for the Gateway is 2.0 GB. I have tried adding the following command-line arguments when I launch it, but this didn’t help:

```auto
javaws.exe -Xms1024m -Xmx2048m http://ignition/main/system/launch/designer/designer.jnlp
```

I have both Java 1.7.0\_60 and 1.6.0\_45 installed on my VM, and I get the same result using either one.

Is there some other setting I’m missing that would affect this?

---

<div class="post-metadata">

**Author:** ![mgross](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mgross/32/3311_2.png) [@mgross](https://forum.inductiveautomation.com/u/mgross)\
**Post date:** [June 27, 2014, 10:43pm UTC](https://forum.inductiveautomation.com/t/maximum-available-memory-in-designer/8635/2 "2014-06-27T22:43:04Z")

</div>

Try this: `javaws -uninstall designer.jnlp` and download and run the designer.jnlp again. Sometimes Java Web Start gets finicky about its local cache files ![:scratch:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/76d1620bec252bfac07050c889ff5a91dc8a9c25.gif ":scratch:") If that doesn’t work, open the designer.jnlp and verify that the initial-heap-size and max-heap-size settings are what you expect, as that file is generated on the fly from the Gateway.

---

<div class="post-metadata">

**Author:** ![Dan\_Bridgeman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dan_bridgeman/32/3610_2.png) [@Dan\_Bridgeman](https://forum.inductiveautomation.com/u/Dan_Bridgeman)\
**Post date:** [July 8, 2014, 6:37pm UTC](https://forum.inductiveautomation.com/t/maximum-available-memory-in-designer/8635/3 "2014-07-08T18:37:57Z")

</div>

When I run that command, I get an Application Error pop-up, saying “Unable to completely uninstall application.” The pop-up has a Details button, but it just closes when I click on it. And it’s still the same situation when I start up: used is 76 mb, maximum is 494 mb.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [July 8, 2014, 7:27pm UTC](https://forum.inductiveautomation.com/t/maximum-available-memory-in-designer/8635/4 "2014-07-08T19:27:31Z")

</div>

Try uninstalling all without specifying the designer.jnlp

```auto
javaws -uninstall
```

and see if that gets it out of there. Note that his will take out all of the jnlp’s, so if you have shortcuts on the desktop, you’ll need to relaunch the projects to get them back.

---

<div class="post-metadata">

**Author:** ![Dan\_Bridgeman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dan_bridgeman/32/3610_2.png) [@Dan\_Bridgeman](https://forum.inductiveautomation.com/u/Dan_Bridgeman)\
**Post date:** [July 9, 2014, 2:57pm UTC](https://forum.inductiveautomation.com/t/maximum-available-memory-in-designer/8635/5 "2014-07-09T14:57:03Z")

</div>

I just tried that, and while it did remove the shortcuts, I’m still getting the 494 mb maximum.

---

<div class="post-metadata">

**Author:** ![mgross](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mgross/32/3311_2.png) [@mgross](https://forum.inductiveautomation.com/u/mgross)\
**Post date:** [July 9, 2014, 9:55pm UTC](https://forum.inductiveautomation.com/t/maximum-available-memory-in-designer/8635/6 "2014-07-09T21:55:42Z")

</div>

If you download designer.jnlp and open with a text editor, what do the memory settings look like?

---

<div class="post-metadata">

**Author:** ![Dan\_Bridgeman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dan_bridgeman/32/3610_2.png) [@Dan\_Bridgeman](https://forum.inductiveautomation.com/u/Dan_Bridgeman)\
**Post date:** [July 10, 2014, 1:58pm UTC](https://forum.inductiveautomation.com/t/maximum-available-memory-in-designer/8635/7 "2014-07-10T13:58:25Z")

</div>

It looks like these are the applicable settings:

` <j2se version="1.6" initial-heap-size="64M" max-heap-size="2048M" java-vm-args="-XX:MaxPermSize=128m"/>
    <j2se version="1.5+" initial-heap-size="64M" max-heap-size="2048M" java-vm-args="-XX:MaxPermSize=128m"/>
    <j2se version="1.7" initial-heap-size="64M" max-heap-size="2048M" java-vm-args="-XX:MaxPermSize=128m"/>
    ....
    <property name="javaws.sr.memory.init" value="64M"/>
    <property name="javaws.sr.memory.max" value="2048M"/>
`

---

<div class="post-metadata">

**Author:** ![mgross](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mgross/32/3311_2.png) [@mgross](https://forum.inductiveautomation.com/u/mgross)\
**Post date:** [July 11, 2014, 4:46pm UTC](https://forum.inductiveautomation.com/t/maximum-available-memory-in-designer/8635/8 "2014-07-11T16:46:05Z")

</div>

Sorry, have another test for you to run. On the command line, run

```auto
javaws -verbose designer.jnlp
```

and post the Java Web Start window here. That should show how much memory the main Java application is given when it is started.

---

<div class="post-metadata">

**Author:** ![Dan\_Bridgeman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dan_bridgeman/32/3610_2.png) [@Dan\_Bridgeman](https://forum.inductiveautomation.com/u/Dan_Bridgeman)\
**Post date:** [July 16, 2014, 2:03pm UTC](https://forum.inductiveautomation.com/t/maximum-available-memory-in-designer/8635/9 "2014-07-16T14:03:08Z")

</div>

I don’t see anything in there giving the memory allocation, but here’s the Web Start screen:

![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/3/38246ea46ea46fe5f4160b93713ee72bcea01ae9.PNG)

---

<div class="post-metadata">

**Author:** ![mgross](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mgross/32/3311_2.png) [@mgross](https://forum.inductiveautomation.com/u/mgross)\
**Post date:** [July 17, 2014, 2:30pm UTC](https://forum.inductiveautomation.com/t/maximum-available-memory-in-designer/8635/10 "2014-07-17T14:30:35Z")

</div>

Your verbose output looks very different than what I see on my systems. I am somewhat confused on why it can be so different. Can you PM me the contents of your designer.jnlp file? Also, can you include the version of Ignition that you are currently running?

---

<div class="post-metadata">

**Author:** ![Dan\_Bridgeman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dan_bridgeman/32/3610_2.png) [@Dan\_Bridgeman](https://forum.inductiveautomation.com/u/Dan_Bridgeman)\
**Post date:** [July 18, 2014, 1:30pm UTC](https://forum.inductiveautomation.com/t/maximum-available-memory-in-designer/8635/11 "2014-07-18T13:30:27Z")

</div>

Mystery solved! My \_JAVA\_OPTIONS environment variable was set to “-Xmx512MB”, which capped the memory at under half a gig. Removing this option caused it to fail to launch at all, which eventually led me to figure out that I was running a 32-bit JRE on my 64-bit virtual desktop. I downloaded a 64-bit JRE, uninstalled the old ones, and I’m back in business with 1824 MB of memory available in my designer. ![:thumb_left:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/e26afb081ddde6df016df6ee49159cf56aaca688.gif ":thumb\_left:")
