错误解决记录

错误解决记录

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


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值