Change Java Heap Size on a Mac

I do a lot of work with the Cisco ASA (Adaptive Security Appliance). The GUI interface relies on Java for any non-windows hosts. If you by chance have an ASA with an IPS module installed you will receive a Java Heap Size is too small error. To fix this error I have found no way on the mac to do this globally. So I edited the info.plist for the application that I was working on.

If you pop open the plist into an editor and make the following changes:


<key>jnlpx.heapsize</key>
<string>67108864,536870912</string>
.....
<key>VMOptions</key>
<array>
<string>-Xms67108864</string>
<string>-Xmx536870912 </string>

You shouldn’t run into the Heap Size issue again. #Note: this change only affects the app that you configured, this is not a global change.