这种情况并不总是发生,但有时当我试图用ant构建一个(大型)项目时,Eclipse就会消失。
我可以重新启动eclipse,但在错误视图中找不到任何有用的信息,除了“工作区已退出,上一个会话中有未保存的更改;刷新工作区以恢复更改”。
有没有人经历过这种情况,或者可以提供一些关于可能导致这种情况的见解?
谢谢
EDIT: I ve tried VonC s suggestions, but I m still getting the same problem. I found these hs_err_pidxxxx.log files in my eclipse install directory. That log seems to suggest, it was caused by an OutOfMemoryError. I ve already given 1G heap and 388M of permspace to eclipse, and at the time of the problem, it doesn t look like all memory was used. Can someone parse this log file for me, or point me to some place where i can find my answers? thanks!
#
# A fatal error has been detected by the Java Runtime Environment:
#
# java.lang.OutOfMemoryError: requested 161952 bytes for GrET in C:BUILD_AREAjdk6_18hotspotsrcsharevmutilitiesgrowableArray.cpp. Out of swap space?
#
# Internal Error (allocation.inline.hpp:39), pid=8948, tid=9376
# Error: GrET in C:BUILD_AREAjdk6_18hotspotsrcsharevmutilitiesgrowableArray.cpp
#
# JRE version: 6.0_18-b07
# Java VM: Java HotSpot(TM) Client VM (16.0-b13 mixed mode windows-x86 )
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
--------------- T H R E A D ---------------
Current thread (0x5cda0400): VMThread [stack: 0x5ce30000,0x5cf30000] [id=9376]
Stack: [0x5ce30000,0x5cf30000], sp=0x5cf2f98c, free space=3fe5cf2f99ck
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [jvm.dll+0x1f4000]
V [jvm.dll+0xa1e0c]
V [jvm.dll+0xcfe77]
V [jvm.dll+0xc9f65]
V [jvm.dll+0xce42a]
V [jvm.dll+0x1d8592]
V [jvm.dll+0xc9398]
V [jvm.dll+0xc9791]
V [jvm.dll+0x1f44ad]
V [jvm.dll+0x1f6ed3]
V [jvm.dll+0x1f615e]
V [jvm.dll+0x1f64ac]
V [jvm.dll+0x1f68d2]
V [jvm.dll+0x17f9cc]
C [MSVCR71.dll+0x220b]
C [kernel32.dll+0xb729]
VM_Operation (0x65edfbbc): GenCollectFull, mode: safepoint, requested by thread 0x60a2e400
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x6462dc00 JavaThread "org.eclipse.jdt.internal.ui.text.JavaReconciler" daemon [_thread_blocked, id=7000, stack(0x68ee0000,0x692e0000)]
0x60b86400 JavaThread "org.eclipse.jdt.internal.ui.text.JavaReconciler" daemon [_thread_blocked, id=9872, stack(0x67b10000,0x67f10000)]
0x60d54800 JavaThread "[ThreadPool Manager] - Idle Thread" daemon [_thread_blocked, id=8168, stack(0x5f120000,0x5f520000)]
0x64622000 JavaThread "Worker-5" [_thread_blocked, id=2500, stack(0x66b10000,0x66f10000)]
0x60a2e400 JavaThread "Worker-2" [_thread_blocked, id=4944, stack(0x65ae0000,0x65ee0000)]
0x60b6ec00 JavaThread "org.eclipse.jdt.internal.ui.text.JavaReconciler" daemon [_thread_blocked, id=7744, stack(0x651e0000,0x655e0000)]
0x5eec6800 JavaThread "Java indexing" daemon [_thread_blocked, id=5932, stack(0x63c00000,0x64000000)]
0x6078c400 JavaThread "Provisioning Event Dispatcher" daemon [_thread_blocked, id=10220, stack(0x615e0000,0x619e0000)]
0x608dd400 JavaThread "Worker-0" [_thread_blocked, id=4628, stack(0x601c0000,0x605c0000)]
0x5e6eac00 JavaThread "Worker-JM" [_thread_blocked, id=4428, stack(0x611e0000,0x615e0000)]
0x5e6dac00 JavaThread "[Timer] - Main Queue Handler" daemon [_thread_blocked, id=9544, stack(0x60de0000,0x611e0000)]
0x60628000 JavaThread "Bundle File Closer" daemon [_thread_blocked, id=9680, stack(0x5fdc0000,0x601c0000)]
0x5edaa400 JavaThread "Start Level Event Dispatcher" daemon [_thread_blocked, id=9248, stack(0x5f920000,0x5fd20000)]
0x5eda6400 JavaThread "Framework Event Dispatcher" daemon [_thread_blocked, id=8448, stack(0x5f520000,0x5f920000)]
0x5e5ce000 JavaThread "RMI TCP Accept-0" daemon [_thread_in_native, id=9372, stack(0x5e7d0000,0x5ebd0000)]
0x5cdc2400 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=612, stack(0x5e130000,0x5e530000)]
0x5cdbec00 JavaThread "CompilerThread0" daemon [_thread_blocked, id=1900, stack(0x5cf30000,0x5d030000)]
0x5cdb9c00 JavaThread "Attach Listener" daemon [_thread_blocked, id=2444, stack(0x5dd30000,0x5e130000)]
0x5cdb8400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=8368, stack(0x5d930000,0x5dd30000)]
0x5cda4c00 JavaThread "Finalizer" daemon [_thread_blocked, id=9460, stack(0x5d530000,0x5d930000)]
0x5cda3000 JavaThread "Reference Handler" daemon [_thread_blocked, id=8472, stack(0x5d130000,0x5d530000)]
0x008e6c00 JavaThread "main" [_thread_blocked, id=9668, stack(0x00030000,0x00130000)]
Other Threads:
=>0x5cda0400 VMThread [stack: 0x5ce30000,0x5cf30000] [id=9376]
0x5e5de400 WatcherThread [stack: 0x5ebd0000,0x5ecd0000] [id=8320]
VM state:at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
[0x008e5d88] Threads_lock - owner thread: 0x5cda0400
[0x008e6198] Heap_lock - owner thread: 0x60a2e400
Heap
def new generation total 255296K, used 170678K [0x02a30000, 0x13f30000, 0x17f80000)
eden space 226944K, 69% used [0x02a30000, 0x0c391190, 0x107d0000)
from space 28352K, 48% used [0x12380000, 0x130cc7d8, 0x13f30000)
to space 28352K, 0% used [0x107d0000, 0x107d0000, 0x12380000)
tenured generation total 567180K, used 189005K [0x17f80000, 0x3a963000, 0x42a30000)
the space 567180K, 33% used [0x17f80000, 0x238136b0, 0x23813800, 0x3a963000)
compacting perm gen total 131072K, used 59974K [0x42a30000, 0x4aa30000, 0x5aa30000)
the space 131072K, 45% used [0x42a30000, 0x464c1990, 0x464c1a00, 0x4aa30000)
No shared spaces configured.
Dynamic libraries:
0x00400000 - 0x0040d000 C:Program FilesEclipsehelioeclipse.exe
0x7c900000 - 0x7c9b2000 C:WINNTsystem32
tdll.dll
0x7c800000 - 0x7c8f6000 C:WINNTsystem32kernel32.dll
0x7e410000 - 0x7e4a1000 C:WINNTsystem32USER32.dll
0x77f10000 - 0x77f59000 C:WINNTsystem32GDI32.dll
0x5d090000 - 0x5d12a000 C:WINNTsystem32COMCTL32.dll
0x77dd0000 - 0x77e6b000 C:WINNTsystem32ADVAPI32.dll
0x77e70000 - 0x77f03000 C:WINNTsystem32RPCRT4.dll
0x77fe0000 - 0x77ff1000 C:WINNTsystem32Secur32.dll
0x77c10000 - 0x77c68000 C:WINNTsystem32MSVCRT.dll
0x76390000 - 0x763ad000 C:WINNTsystem32IMM32.DLL
0x629c0000 - 0x629c9000 C:WINNTsystem32LPK.DLL
0x74d90000 - 0x74dfb000 C:WINNTsystem32USP10.dll
0x72000000 - 0x7200d000 C:Program FilesEclipseheliopluginsorg.eclipse.equinox.launcher.win32.win32.x86_1.1.0.v20100503eclipse_1307.dll
0x77c00000 - 0x77c08000 C:WINNTsystem32VERSION.dll
0x74720000 - 0x7476c000 C:WINNTsystem32MSCTF.dll
0x755c0000 - 0x755ee000 C:WINNTsystem32msctfime.ime
0x774e0000 - 0x7761e000 C:WINNTsystem32ole32.dll
0x6d8b0000 - 0x6db47000 C:Program FilesJavajdk1.6.0_18jreinclientjvm.dll
0x76b40000 - 0x76b6d000 C:WINNTsystem32WINMM.dll
0x7d000000 - 0x7d058000 C:WINNTsystem32MSVCR71.dll
0x6d860000 - 0x6d86c000 C:Program FilesJavajdk1.6.0_18jreinverify.dll
0x6d3e0000 - 0x6d3ff000 C:Program FilesJavajdk1.6.0_18jreinjava.dll
0x6d340000 - 0x6d348000 C:Program FilesJavajdk1.6.0_18jreinhpi.dll
0x76bf0000 - 0x76bfb000 C:WINNTsystem32PSAPI.DLL
0x6d8a0000 - 0x6d8af000 C:Program FilesJavajdk1.6.0_18jreinzip.dll
0x6d6c0000 - 0x6d6d3000 C:Program FilesJavajdk1.6.0_18jrein
et.dll
0x71ab0000 - 0x71ac7000 C:WINNTsystem32WS2_32.dll
0x71aa0000 - 0x71aa8000 C:WINNTsystem32WS2HELP.dll
0x71a50000 - 0x71a8f000 C:WINNTSystem32mswsock.dll
0x76f20000 - 0x76f47000 C:WINNTsystem32DNSAPI.dll
0x76fb0000 - 0x76fb8000 C:WINNTSystem32winrnr.dll
0x76f60000 - 0x76f8c000 C:WINNTsystem32WLDAP32.dll
0x76fc0000 - 0x76fc6000 C:WINNTsystem32
asadhlp.dll
0x6d610000 - 0x6d619000 C:Program FilesJavajdk1.6.0_18jreinmanagement.dll
0x68000000 - 0x68036000 C:WINNTsystem32
saenh.dll
0x769c0000 - 0x76a74000 C:WINNTsystem32USERENV.dll
0x5e770000 - 0x5e7c5000 C:WINNTsystem32
etapi32.dll
0x662b0000 - 0x66308000 C:WINNTsystem32hnetcfg.dll
0x71a90000 - 0x71a98000 C:WINNTSystem32wshtcpip.dll
0x605d0000 - 0x605d9000 C:WINNTsystem32mslbui.dll
0x6d6e0000 - 0x6d6e9000 C:Program FilesJavajdk1.6.0_18jrein
io.dll
0x619e0000 - 0x61a43000 C:Program FilesEclipsehelioconfigurationorg.eclipse.osgiundles2141.cpswt-win32-3650.dll
0x77120000 - 0x771ab000 C:WINNTsystem32OLEAUT32.dll
0x763b0000 - 0x763f9000 C:WINNTsystem32comdlg32.dll
0x773d0000 - 0x774d3000 C:WINNTWinSxSx86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.6028_x-ww_61e65202COMCTL32.dll
0x77f60000 - 0x77fd6000 C:WINNTsystem32SHLWAPI.dll
0x61a50000 - 0x62267000 C:WINNTsystem32SHELL32.dll
0x62270000 - 0x62356000 C:WINNTsystem32WININET.dll
0x605c0000 - 0x605c9000 C:WINNTsystem32Normaliz.dll
0x78130000 - 0x78263000 C:WINNTsystem32urlmon.dll
0x62360000 - 0x62549000 C:WINNTsystem32iertutil.dll
0x627b0000 - 0x627cd000 C:Program FilesEclipsehelioconfigurationorg.eclipse.osgiundles2141.cpswt-gdip-win32-3650.dll
0x62810000 - 0x629bb000 C:WINNTWinSxSx86_Microsoft.Windows.GdiPlus_6595b64144ccf1df_1.0.6001.22319_x-ww_f0b4c2dfgdiplus.dll
0x62ad0000 - 0x62ade000 C:Program FilesEclipsehelioconfigurationorg.eclipse.osgiundles461.cposwin32x86localfile_1_0_0.dll
0x62cd0000 - 0x62d08000 C:WINNTsystem32uxtheme.dll
0x635e0000 - 0x6361a000 C:WINNTsystem32oleacc.dll
0x63710000 - 0x639d5000 C:WINNTsystem32xpsp2res.dll
0x76fd0000 - 0x7704f000 C:WINNTsystem32CLBCATQ.DLL
0x77050000 - 0x77115000 C:WINNTsystem32COMRes.dll
0x75cf0000 - 0x75d81000 C:WINNTsystem32mlang.dll
0x76380000 - 0x76385000 C:WINNTsystem32msimg32.dll
0x62c60000 - 0x62c6f000 C:Program FilesEclipsehelioconfigurationorg.eclipse.osgiundles491.cpjWinHttp-1.0.0.dll
0x62d10000 - 0x62d69000 C:WINNTsystem32WINHTTP.dll
0x76ee0000 - 0x76f1c000 C:WINNTsystem32RASAPI32.DLL
0x76e90000 - 0x76ea2000 C:WINNTsystem32
asman.dll
0x76eb0000 - 0x76edf000 C:WINNTsystem32TAPI32.dll
0x76e80000 - 0x76e8e000 C:WINNTsystem32
tutils.dll
0x62eb0000 - 0x62eb7000 C:WINNTsystem32credssp.dll
0x77a80000 - 0x77b15000 C:WINNTsystem32CRYPT32.dll
0x77b20000 - 0x77b32000 C:WINNTsystem32MSASN1.dll
0x767f0000 - 0x76818000 C:WINNTsystem32schannel.dll
0x77c70000 - 0x77c94000 C:WINNTsystem32msv1_0.dll
0x76d60000 - 0x76d79000 C:WINNTsystem32iphlpapi.dll
0x634c0000 - 0x634c5000 C:PROGRA~1NETSUP~1pcihooks.dll
0x68040000 - 0x68ad5000 C:WINNTsystem32ieframe.dll
0x7e720000 - 0x7e7d0000 C:WINNTsystem32SXS.DLL
0x7d1e0000 - 0x7d49c000 C:WINNTsystem32msi.dll
0x77b40000 - 0x77b62000 C:WINNTsystem32appHelp.dll
0x6a3a0000 - 0x6a953000 C:WINNTsystem32mshtml.dll
0x67fc0000 - 0x67fe9000 C:WINNTsystem32msls31.dll
0x746f0000 - 0x7471a000 C:WINNTsystem32msimtf.dll
0x63b50000 - 0x63b90000 C:WINNTimesptip.dll
0x63b90000 - 0x63ba1000 C:WINNTIMESPGRMR.DLL
0x63b30000 - 0x63b3c000 C:WINNTsystem32ImgUtil.dll
VM Arguments:
jvm_args: -Dosgi.requiredJavaVersion=1.6 -Declipse.p2.unsignedPolicy=allow -Xms128m -Xmx1024m -Xss4m -XX:PermSize=128m -XX:MaxPermSize=384m -XX:CompileThreshold=5 -XX:MaxGCPauseMillis=10 -XX:MaxHeapFreeRatio=70 -XX:+CMSIncrementalPacing -XX:+UseFastAccessorMethods -Dcom.sun.management.jmxremote
java_command: <unknown>
Launcher Type: generic
Environment Variables:
CLASSPATH=c:jintegralibjintegra.jar
PATH=C:/Program Files/Java/jdk1.6.0_18/bin/../jre/bin/client;C:/Program Files/Java/jdk1.6.0_18/bin/../jre/bin;C:/Program Files/Java/jdk1.6.0_18/bin/../jre/lib/i386;C:Oracleproduct10.2.0.1.0Client_1in;C:Program FilesWindows Resource KitsTools;C:Program FilesSupport Tools;C:Perlin;C:WINNTsystem32;C:WINNT;C:WINNTSystem32Wbem;c:jintegrain;C:WINNTsystem32WindowsPowerShellv1.0;C:Program FilesSysinternalsBin;C:Program FilesMicrosoft SQL Server80ToolsBinn;C:Program FilesMicrosoft SQL Server90Toolsinn;C:Program FilesMicrosoft SQL Server90DTSBinn;C:Program FilesMicrosoft SQL Server90ToolsBinnVSShellCommon7IDE
USERNAME=rfang
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 23 Stepping 10, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows XP Build 2600 Service Pack 3
CPU:total 4 (4 cores per cpu, 1 threads per core) family 6 model 23 stepping 10, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1
Memory: 4k page, physical 3108388k(295496k free), swap 5043676k(1054940k free)
vm_info: Java HotSpot(TM) Client VM (16.0-b13) for windows-x86 JRE (1.6.0_18-b07), built on Dec 17 2009 13:35:55 by "java_re" with MS VC++ 7.1 (VS2003)
time: Thu Feb 10 15:00:24 2011
elapsed time: 936 seconds