zoukankan      html  css  js  c++  java
  • Eclipse的workspace中放入Ext JS卡死或OOM的解决方案

    Eclipse的workspace中放入Ext JS卡死或OOM的解决方案

    原因:是由于Ext JS 的所有的文件js验证

    方法一:关于Eclipse解决Ext JS卡死方案:

     打开Eclipse的workspace下该项目对应.project文件
     删除以下内容:
      (1)
       <buildCommand>
    	<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
    	<arguments>
    	</arguments>
       </buildCommand>
    
        (2)
        <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
    

    方法二:关于Eclipse解决OOM的解决方案:

    出现原因:Eclipse默认配置内存太小。
    解决方案:更改Eclipse安装文件夹下的eclipse.ini文件

    <-startup
    plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
    --launcher.library
    plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20150204-1316
    -product
    org.eclipse.epp.package.jee.product
    --launcher.defaultAction
    openFile
    --launcher.XXMaxPermSize
    512M
    -showsplash
    org.eclipse.platform
    --launcher.XXMaxPermSize
    512m
    --launcher.defaultAction
    openFile
    --launcher.appendVmargs
    -vmargs
    -Dosgi.requiredJavaVersion=1.8
    -Xms1024m
    -Xmx1536m
    -XX:MaxPermSize=1024m>
    
    第一个是最小的初始化内存( -Xms1024m),第二个是最大的占有内存(-Xmx1536m)
    -XX:MaxPermSize=1024m这个意思是在编译文件时一直占有最大内存,最后重启Eclipse
    
  • 相关阅读:
    Django
    python django框架学习
    Http Header里的Content-Type
    Python 头部 #!/usr/bin/python 和 #!/usr/bin/env python的区别
    关于“编译型语言”和“解释性语言”的区别
    Axure XMind整理交互思路
    异常处理
    re模块
    模块
    正则表达式**************************
  • 原文地址:https://www.cnblogs.com/stephenhuashao/p/6410325.html
Copyright © 2011-2022 走看看