[英]how to increase heap space of JVM in netbeans
On running my code it throws exception: 在运行我的代码时,它会抛出异常:
Exception in thread "AWT-EventQueue-1" java.lang.OutOfMemoryError: Java heap space 线程“AWT-EventQueue-1”中的异常java.lang.OutOfMemoryError:Java堆空间
How to increase the heap space of JVM in netbeans 8?? 如何在netbeans 8中增加JVM的堆空间?
Run->Set Project Configuration->Customize... You can enter your VM options in Run tab. 运行 - >设置项目配置 - >自定义...您可以在“运行”选项卡中输入VM选项。 Use the -Xmx[size] flag to increase the heap size.
使用-Xmx [size]标志来增加堆大小。 As size you can use for example 512m for 512MB or 2g for 2000MB.
作为大小,您可以使用例如512米512MB或2MB 2000MB。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.