错误解决记录

来源:互联网 发布:淘宝直通车没钱了 编辑:程序博客网 时间:2024/05/16 03:18

错误解决记录

2014-3-21 15:04 |个人分类:技术细节| 记录

1  tomcat 之前能启动过几天不能启动------------不管报什么错查看端口是否占用


2 同样的maven项目,过了几天就无法build了
报错:
[ERROR] Failure executing javac, but could not parse the error:
The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError: PermGen space
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass
其中一模块无法build
-----------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project koala-commons-test-support: Fatal error compiling: Error while executing the compiler. InvocationTargetException: PermGen space -> [Help 1]
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project koala-plugin-util-core: Fatal error compiling: Error while executing the compiler. InvocationTargetException: PermGen space -> [Help 1]
[ERROR] 

set path /etc/profile   && /etc/bash.bashrc^M 
export MAVEN_OPTS="-Xms1024M -Xmx2048M"
source /etc/profile
source /etc/bash.bashrc
将下面的参数写在:windows preferences java installed jars   edit的default vm args中
-Xms512m -Xmx2048m -XX:PermSize=2048m -XX:MaxPermSize=512m -XX:NewSize=128m
删除maven本地库中的相应的jar,
再次运行如果是系统的jar出错,查看本地库中下载的jar是否正常。



eclipse增加内存

eclipse安装后,在安装目录有个config.ini文件,内容如下:
-vmargs
-Xms40m
-Xmx256m


0 0
原创粉丝点击