Netbeans Module Development out of memory

By : kdgwill

I am creating a module in netbeans to help with a project i am working on however when I run the module in the developmental IDE i get an out of memory exception while loading an asset. This procedure seems to work fine in the base netbeans environment but when i make the same calls during module development i get the error. After attempting to load the asset in several differnt ways i tried appending the following to and then to Netbeans Platform config(

netbeans_default_options="-J-Xms384m -J-Xmx1024m -J-XX:PermSize=32m -J-XX:MaxPermSize=96m -J-Xverify:none" 

and also tried

netbeans_default_options="-J-client -J-Xverify:none -J-Xmx1024m -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true"

I have also tried -Xms1024m -Xmx1024m 
By : kdgwill


solution to Out of memory exception in netbeans is![.....][1]

I have tried by setting project properties.

right click on project --> select Properties-->General Settings-->VM Options

Add below parameters -Xms256m -Xmx512m

I was stuck in this issue for a while. Adding this line into has solved the problem: run.args.extra=-J-Xms128m -J-Xmx512m -J-XX:MaxPermSize=512m

While it improved the heap memory size, apparently the problem was gone because of the increased non-heap memory size (J-XX:MaxPermSize=512m).

Good luck

If the problem occurs when you install your module in the development IDE, you can configure the maximum heap size and perm size in

By : Daniel

This video can help you solving your question :)
By: admin