简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM