Unhandled event loop exception PermGen space

简介:

原来一直用eclipse3.5,最近尝试升级到3.7和4.2,但不管是3.7还是4.2项目编译过程中总提示“Unhandled event loop exception PermGen space”要求退出workspace,与原来3.5版本比较了一下eclipse.ini参数设置发现没有差别,怀疑是公司自己开发的插件问题,马上删除自己的插件,但还是遇到同样问题,郁闷只好去google求助。

 

搜索到的第一个解决方案是设置PermSize和MaxPermSize参数,避免耗光永久保存区内存,如:

 
  1. -XX:PermSize=128M 
  2. -XX:MaxPermSize=128M 

更改后重新编译仍然报错,郁闷,没有解决问题,尝试调大到256M还是出现同样错误。

 

继续Google,找到一个看似可疑的解决方案:“不许更改eclipse.exe的文件名”。因为多个版本,所以自己将3.7版命名为eclipse37,4.2版命名为eclipse42,而原来的3.5版本保留eclipse名称,难道真是这样的问题?死马当活马医,试试看再说,于是将3.5版本更改为eclipse35,而4.2版本更改为eclipse,然后用4.2版本进行编译,问题既然解决了,有点意外,马上用同样的方法试试3.7版本,问题果真没再出现了。

 

eclipse对名字太较真了,为了捍卫版权,什么都可以做,无语!

 

 

     本文转自sarchitect 51CTO博客,原文链接:http://blog.51cto.com/stevex/994544,如需转载请自行联系原作者


相关文章
|
7月前
|
NoSQL 编译器 API
关于thread使用的错误:pure virtual method called terminate called without an active exception
关于thread使用的错误:pure virtual method called terminate called without an active exception
146 1
已解决 RuntimeError: There is no current event loop in thread ‘Thread-1‘.
Jetson Xavier NX 报错 RuntimeError: There is no current event loop in thread 'Thread-1'.异常错误,已解决
602 0
已解决 RuntimeError: There is no current event loop in thread ‘Thread-1‘.
verbose stack FetchError: request to https://registry.npm.taobao.org/md-editor-v3 failed, reason: ce
这篇文章描述了在安装npm包`md-editor-v3`时遇到的淘宝镜像证书过期问题,并提供了解决方案,即通过切换npm镜像源到`https://registry.npmmirror.com/`来解决安装失败的问题。
verbose stack FetchError: request to https://registry.npm.taobao.org/md-editor-v3 failed, reason: ce
成功解决:Error in created hook: “ReferenceError: params is not defined“
该博客文章描述了作者解决"ReferenceError: params is not defined"错误的过程,原因是路由传递的params参数与调用方法中的参数名称冲突,最终通过检查接口参数解决了问题。
成功解决:Error in created hook: “ReferenceError: params is not defined“
|
开发工具 Android开发
解决bug:运行项目时报异常 “Can't create handler inside thread that has not called Looper.prepare()”
解决bug:运行项目时报异常 “Can't create handler inside thread that has not called Looper.prepare()”
1259 0
|
6月前
|
Python
【ERROR】asyncio.run(main())报错:RuntimeError: Event loop is closed
【ERROR】asyncio.run(main())报错:RuntimeError: Event loop is closed
173 0
|
Java Maven Android开发
成功解决FATAL ERROR in native method: JDWP on getting class status, jvmtiError=JVMTI_ERROR_WRONG_PHASE
成功解决FATAL ERROR in native method: JDWP on getting class status, jvmtiError=JVMTI_ERROR_WRONG_PHASE
error: static assertion failed: Signal and slot arguments are not compatible.
error: static assertion failed: Signal and slot arguments are not compatible.
error: static assertion failed: Signal and slot arguments are not compatible.
没解决:RuntimeWarning: tp_compare didn't return -1 or -2 for exception
没解决:RuntimeWarning: tp_compare didn't return -1 or -2 for exception
110 0