NetBeans内存不足错误 [英] NetBeans Low on Memory Error

查看:486
本文介绍了NetBeans内存不足错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对Netbeans中的这种错误是陌生的.我一直在使用Java Bean 8.0.2在Java J2SE中进行工作.我正在对字符串进行模糊搜索,这些字符串通常具有300-500的长度.我正在使用Levenshtein和Jaro Winkler算法来查找字符串之间的距离. 大约有1500次迭代来查找字符串之间的距离! 问题是我的网豆经常为以下内容提供错误:

I am new to this kind of error in Netbeans. I have been working in Java J2SE using my net beans 8.0.2. I am doing Fuzzy Search on Strings usually strings having 300-500 length. I am using Levenshtein and Jaro Winkler Algorithms to find the Distance between the strings. There are about 1500 iterations to find the distance between the strings! The problem is that my net beans often gives error for:

Low on Memory, Error Unable to Compile

我已经进行了一些在线搜索以消除此错误,并找到了如何通过添加来增加堆大小

I have done some search online to get rid of this error and found how to increase the heap size by adding

-Xms3G

命令意味着给堆3GB的空间!但是错误仍然出现在编译过程中,并且项目在Net Bean中运行.

command means to give 3GB space for the heap! but the error still comes up in the compilation process and project run in net beans.

有人可以帮我解决这个错误的方法,因为发生这种情况时我得到了这个错误

Can somebody help me out how to get rid of this error because when it happen i got this error

 java.lang.noClassDefError

请帮助我摆脱这个错误,我是这个错误的新手!

Please help me getting rid of this error I am a newbie for this error!

推荐答案

对于我的问题,最简单的答案就是识别技巧.我的工作目录中有多个netbeans项目.假设我的目录D:\ NetBeans \ WorkSpace包含大约300个项目! 我所做的就是简化目录,将旧项目移到了新目录,而只有少数项目留在了我的netbeans工作空间中. 将多个项目移到新目录后,错误消息消失. 问题是,当netbeans启动时,它将项目加载到内存中,如果您在加载目录中有很多项目,则将导致内存泄漏!

The simplest answer for my problem was a trick to identify. I had a number of netbeans projects into my working directory. Suppose that my directory D:\NetBeans\WorkSpace contains about 300 projects! What I done is that simplify the directory moved the old projects into a new directory and only a few projects left into my netbeans working space. The error message goes off after moving a number of projects into a new directory. The thing is when netbeans starts up it loads the projects into the memory and if you have a lot of projects into the loading directory it will cause to leak the memory!

这篇关于NetBeans内存不足错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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