I encountered an error in Netbeans:
java.lang.OutOfMemoryError: Java heap space
This is the first time I encountered this and I don't know how to deal with it.
Can somebody explain this error message to me?
And how can I increase the heap memory? Thank you!
You can set it in NetBeans ide in the project properties -> Run -> VM options
Right click on your project "Properties" Select "Run" category. Enter your arguments(-Xmx512m) in the "VM Options" text box. Example: Putting -Xmx512m in the "VM Options" text box gives 512Mb maximum heap size to your Java program.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments