Eclipse内存不足 [英] Eclipse Out of Memory

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

问题描述

我有一个ATG粉尘应用程序。为了测试我的ATG应用程序,我通过右键单击灰尘应用程序 - >构建路径 - >链接源 - >选择我的ATG应用程序,将ATG应用程序链接到除尘应用程序。 ATG应用是一个很大的应用。当我尝试清理构建DUSt应用程序时,我收到异常,如发生内存异常。请参阅运行Eclipse部分.....



在eclipse .log文件中记录了以下异常,

  //从日志文件
!ENTRY org.eclipse.core.jobs 4 2 2014-03-27 06:56:26.549
!MESSAGE在启动SampleTest期间发生内部错误。
!STACK 0

//异常
java.lang.OutOfMemoryError:Java堆空间
在java.util.Arrays.copyOfRange(未知来源)
在java.lang.String。< init>(未知来源)


解决方案

只需右键单击eclipse中的文件,然后选择运行方式 - >运行配置。
它将打开运行配置对话框。单击参数选项卡



输入此值

  -Xms1024m -Xmx3072m -XX:MaxPermSize = 1024M 

在Vm参数并按


I have a ATG Dust Application. To test my ATG application, i linked my ATG App to Dust Application by Right clicking on Dust App -> Build Path -> Link Source -> Select my ATG App. ATG app is a big application. When i try to clean build the DUSt App, i get the exception like "An out of memory exception has occurred. Consult the " Running Eclipse"section....."

In the eclipse .log file has the following exception logged,

// From the Log File   
    !ENTRY org.eclipse.core.jobs 4 2 2014-03-27 06:56:26.549
    !MESSAGE An internal error occurred during: "Launching SampleTest".
    !STACK 0

// Exception
 java.lang.OutOfMemoryError: Java heap space
        at java.util.Arrays.copyOfRange(Unknown Source)
        at java.lang.String.<init>(Unknown Source)

解决方案

just right-click on your file in eclipse and select as Run as -> Run configuration . It will open Run Configurations Dialog Box .Click on Arguments Tab

Enter this value

                    -Xms1024m -Xmx3072m -XX:MaxPermSize=1024M

In Vm Arguments and press run

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

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