I am attempting to increase the amount of memory allocated to NetBeans 12 by editing the netbeans.conf file (found here: ${nb-install}/etc/netbeans.conf)
Currently I am adding the following options as such:
netbeans_default_options -J-Xms4g -J-Xmx12g .....
However I am not confident that this is all that's needed. I am able to find quite a few posts listing these additions, as well as -J-XX:PermSize=..
and -J-XX:MaxPermSize=..
but I think maybe PermSize is now ignored? All the articles I have been able to find are old posts and for much older version of NetBeans and JDK.
I'm currently running NetBeans 12.1 and JDK-12.0.1.
Questions:
- Is this all that's needed? Are there more options to add, or other areas I need to address?
- Are there any 'best practices' for how much memory to add based on what is available (I have ~40G of memory on my system)?
- Should I also increase -J-Xxx2m to something bigger?