简体   繁体   中英

How to increase Heap memory of Netbeans platform's Application in java?

I m making Desktop Application in netbeans plpatform in java swing.when i run my App in netbeans 7.0 it work well.after that i made installer of my app.then i install my App installer, it work very slow.when my App run on netbeans IDE it consume minimum 10mb and maximum 510mb.but after it install it get only 24mb minimum and 64mb maximum byDefault of installer in netbeans IDE or when i make installer of my app using netbeans IDE it get only 24mb minimum and 64mb maximum. so how can i increase Heap memory of my App or heap memory of my app installer?

如果你去你的应用程序安装目录转到etc文件夹然后打开applicationName.conf文件并更改min和max heapsize然后保存并重新启动你的应用程序,这应该改变你的应用程序堆大小,检查应用程序ide日志中的更改, 谢谢

Go to your project's properties (right-click on left hand side of the Netbeans interface), and change the VM options field to this:

The 64 is the minimum VM size (in MB) and the 2048 is the maximum VM size in MB.

在此输入图像描述

It looks like from version 6.0+, netbeans auto-defines -Xmx value to be 1/3rd of available memory, as specified in official wiki here:

http://wiki.netbeans.org/FaqSettingHeapSize

Status bar should show used memory. Do you find it locked far less than what you could expect, say 33% of max?

I faced the same problem as yours. Change the memory setting on that config file: C:\\Program Files\\NetBeans 8.0\\harness\\etc\\app.conf

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM