Search code examples
out-of-memory32bit-64bitheap-memoryjava-web-startjnlp

How to increase memory of a jnlp file?


I had created a jnlp file and specified max-heap size as 4096m. After downloading the jnlp file, I cross-checked the memory parameters and max-heap size of 4096m was getting reflected over there. But when I tried to run the jnlp file, it was not able to load a particular dataset(which was around 2GB). It was throwing an out-of-memory error in the console. From the task manager, I got to know that the application was not using more than 1.2 GB, even though 4 GB is specified.

I'm using Windows 10 64-bit OS and Java 8.

Can someone please help me here?

Note: I have passed -Xmx4096m as runtime parameter for java in the control panel as well.


Solution

  • I had a href attribute in the jnlp file header, which was overriding the configuration values present in the current jnlp. After removing that reference, it's working as expected.