netbeans中的Java堆空间..但我已经增加了堆大小! [英] Java heap space in netbeans.. but I've increased the heap size already!

查看:80
本文介绍了netbeans中的Java堆空间..但我已经增加了堆大小!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了netbeans和Java的问题。我的程序需要能够处理通过arraylist上传的大文件。所以我使用-Xmx512m通过netbeans.conf文件增加最大堆大小。

I'm having an issue with netbeans and Java. My program needs to be able to cope with large files being uploaded via an arraylist. So I used -Xmx512m to increase the maximum heap size via the netbeans.conf file.

我知道netbeans正在捕捉变化,我已多次重启确保它是。仍然,当总内存参数仅为66650112字节时,我的程序继续崩溃,出现Java堆空间内存错误;也就是说,64M-ish。

I know that netbeans is catching the change, and I've restarted multiple times to make sure it is. Still, my program continues to crash with a Java heap space memory error when the total memory parameter is only 66650112 bytes; that is, 64M-ish.

我如何强制这个特定的类,过程,等等,以允许更多的内存分配?

How can I force this particular class, procedure, whatever, to allow more memory allocation?

推荐答案

我认为你刚刚配置了netbeans IDE本身的最大堆大小而不是你的程序。

I think you just configured the maximum heap size of netbeans IDE itself and not your program.

转到您的项目属性,选择运行类别。在 VM选项文本框中输入您的参数( -Xmx512m )。

Go to your project "properties", select "Run" category. In the "VM Options" text box put your arguments (-Xmx512m).

这篇关于netbeans中的Java堆空间..但我已经增加了堆大小!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆