Archive
Posts Tagged ‘memory’
Increase heap size for NetBeans Platform project
December 9, 2010
4 comments
To increase the heap size in a NetBeans Platform project, you can edit the nbproject/platform.properties file and add the line
run.args.extra=-J-Xmx1G
, replacing the 1G piece with however much memory you’d like. (The other solutions I found did not work for me). Thanks to the NetBeans Forums for this solution.
If you’re curious about the -J piece, it’s necessary to ensure that the arguments are passed to the JVM rather than interpreted by NetBeans itself. This should work in general for whatever arguments you want to pass to the JVM upon launch of your NetBeans Platform project.
Categories: Java, NetBeans, NetBeans Platform
heap size, java, jvm, memory, netbeans, netbeans platform