Java Webstart JNLP memory

From snippet wiki
Jump to navigation Jump to search

To add some argument to the javaws process add the heap-size args to the already existing j2se tag:

<resources>
  <j2se version="1.8+" initial-heap-size="1024m" max-heap-size="4096m" />
</resources>

To double check if the change has any influence you might have a look into this runtime variable:

jnlpx.heapsize	1024m,4096m

Which can be seen for example in the system info view of a Jenkins slave node. Which was my playground for fixing this.