`

myeclipse崩溃多处理的一个小窍门

    博客分类:
  • java
阅读更多

0x01 如果大家用了myeclipse10以上版本,忽然间出现了过一会自动退出这种情况,发生而且很频繁,而且出现不稳定的话,大家可以先看看报错日志,一般在myeclipse\MyEclipse 10中,类似hs_err_pid39280.log的文件就是了,如果报错的日志开始如下:

写道
#
# An unexpected error has been detected by Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000006dc37362, pid=39280, tid=23288
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (11.3-b02 mixed mode windows-amd64)
# Problematic frame:
# V [jvm.dll+0x3a7362]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

 很明显告诉了你,java挂掉了,连累的myeclipse也挂了。

 

 

0x02 你可能会说我已经升级到了最新的jdk,并且myeclipse的编译器也指定了最新的jdk,但是这里需要强调的一点是,myeclipse本身的界面由于也是java写的,这部分也需要指定jdk路径,而这里默认的是myeclipse自带的,这个容易出问题,修改的地方 就是myeclipse.ini

 

写道
#utf8 (do not remove)
-startup
../Common/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
../Common/plugins/org.eclipse.equinox.launcher.i18n.win32.win32.x86_64_3.2.0.v201103301700
-install
E:\software\myeclipse\MyEclipse 10
-vm
E:\software\jdk7\bin\javaw.exe
-configuration
E:\software\myeclipse\MyEclipse 10\configuration
-vmargs
-Xmx2048m
-XX:MaxPermSize=512m
-XX:ReservedCodeCacheSize=128m
-Dosgi.nls.warnings=ignore
 -vm 下面那个以前是myclipse自带的,现在我换成了我自己安装的,这下立刻就稳定了。。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics