| Summary: | IDE crashes when building large project with OutOfMemoryError when both physical and heap memory are plenty | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | rfang |
| Component: | Ant | Assignee: | Platform-Ant-Inbox <platform-ant-inbox> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | critical | ||
| Priority: | P3 | CC: | Michael_Rennie, prakash, remy.suen |
| Version: | 4.1 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
rfang
What happens when you increase these parameter:-Xmx1000m (In reply to comment #1) > What happens when you increase these parameter:-Xmx1000m 1G is already a pretty decent-sized heap, isn't it? Also, at the time of crashing, I think the total memory usage bye Eclipse is fairly low. (In reply to comment #2) > (In reply to comment #1) > > What happens when you increase these parameter:-Xmx1000m > > 1G is already a pretty decent-sized heap, isn't it? Not sure of how much Ant build requires. Moving to Ant for comments (In reply to comment #2) > (In reply to comment #1) > > What happens when you increase these parameter:-Xmx1000m > > 1G is already a pretty decent-sized heap, isn't it? Keep in mind that -Xmx1000m increases your heap size, but not your perm gen size. To increase perm gen size you want to use -XX:MaxPermSize=<mem size> *** This bug has been marked as a duplicate of bug 130545 *** I also already added a permgen space override --launcher.XXMaxPermSize 368m should do the trick, right? However, this line looks pretty odd: compacting perm gen total 55040K, used 54969K [0x41230000, 0x447f0000, 0x45230000) the space 55040K, 99% used [0x41230000, 0x447de410, 0x447de600, 0x447f0000) Seems to suggestion perm gen is only 55m? (In reply to comment #4) > (In reply to comment #2) > > (In reply to comment #1) > > > What happens when you increase these parameter:-Xmx1000m > > > > 1G is already a pretty decent-sized heap, isn't it? > > Keep in mind that -Xmx1000m increases your heap size, but not your perm gen > size. To increase perm gen size you want to use -XX:MaxPermSize=<mem size> > > *** This bug has been marked as a duplicate of bug 130545 *** (In reply to comment #5) > I also already added a permgen space override > > --launcher.XXMaxPermSize 368m > > should do the trick, right? > It should. provided in the ini file those are on separate lines like: --launcher.XXMaxPermSize 368m > Seems to suggestion perm gen is only 55m? > If you were using Oracle 1.6u21 I would say you were hit with bug 319514, but comment 0 says you are using 6.0_20-b02. (In reply to comment #6) > (In reply to comment #5) > > I also already added a permgen space override > > > > --launcher.XXMaxPermSize 368m > > > > should do the trick, right? > > > > It should. > > provided in the ini file those are on separate lines like: > > --launcher.XXMaxPermSize > 368m > > > Seems to suggestion perm gen is only 55m? > > > > If you were using Oracle 1.6u21 I would say you were hit with bug 319514, but > comment 0 says you are using 6.0_20-b02. Yes, I have it like them in the ini file. How would it be then that the perm gen size is ok 55m? ... compacting perm gen total 55040K, used 54969K [0x41230000, 0x447f0000, 0x45230000) ... This is what my eclipse.ini file looks like. I am override the permgen size both before and after -vmargs in case the sequence matters. -startup plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810 -product org.eclipse.epp.package.java.product --launcher.XXMaxPermSize 368M -vm C:\Program Files\Java\jdk1.6.0_18\bin --launcher.defaultAction openFile -showsplash org.eclipse.platform -vmargs --launcher.XXMaxPermSize 368M --launcher.defaultAction openFile -Dosgi.requiredJavaVersion=1.5 -Xms800m -Xmx1000m I've tried both 1.6u20 and 1.6u18. Thanks for the pointer to the other bug though. I think things are looking a lot better if I specify MaxPermGen as a vm paramter using --XXMaxPermGen=368M. --launcher.XXMaxPermSize did not work. Why do we have twop ways of specifying the same thing when one doesn't work? Do they do exactly the same thing? (In reply to comment #7) > (In reply to comment #6) > > (In reply to comment #5) > > > I also already added a permgen space override > > > > > > --launcher.XXMaxPermSize 368m > > > > > > should do the trick, right? > > > > > > > It should. > > > > provided in the ini file those are on separate lines like: > > > > --launcher.XXMaxPermSize > > 368m > > > > > Seems to suggestion perm gen is only 55m? > > > > > > > If you were using Oracle 1.6u21 I would say you were hit with bug 319514, but > > comment 0 says you are using 6.0_20-b02. > > Yes, I have it like them in the ini file. > > How would it be then that the perm gen size is ok 55m? > > ... > compacting perm gen total 55040K, used 54969K [0x41230000, 0x447f0000, > 0x45230000) > ... > > This is what my eclipse.ini file looks like. I am override the permgen size > both before and after -vmargs in case the sequence matters. > > > -startup > plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar > --launcher.library > plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810 > -product > org.eclipse.epp.package.java.product > --launcher.XXMaxPermSize > 368M > -vm > C:\Program Files\Java\jdk1.6.0_18\bin > --launcher.defaultAction > openFile > -showsplash > org.eclipse.platform > -vmargs > --launcher.XXMaxPermSize > 368M > --launcher.defaultAction > openFile > -Dosgi.requiredJavaVersion=1.5 > -Xms800m > -Xmx1000m (In reply to comment #8) > I've tried both 1.6u20 and 1.6u18. > Why do we have twop ways of specifying the same thing when one doesn't work? To be honest I do not know the history of having both forms, although they should both work > Do they do exactly the same thing? They should. (In reply to comment #9) > (In reply to comment #8) > > I've tried both 1.6u20 and 1.6u18. > > > Why do we have twop ways of specifying the same thing when one doesn't work? > > To be honest I do not know the history of having both forms, although they > should both work > > > Do they do exactly the same thing? > > They should. I've successfully overriden the PermGenSize to 300M+, but the crashing is still happening. Oddly, it still says "Out of swap space?" (with a question mark), but all my memory pools are less than 60% full. (See dump file) # # A fatal error has been detected by the Java Runtime Environment: # # java.lang.OutOfMemoryError: requested 32756 bytes for ChunkPool::allocate. Out of swap space? # # Internal Error (allocation.cpp:117), pid=2216, tid=6420 # Error: ChunkPool::allocate # # 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 (0x5614b400): JavaThread "CompilerThread0" daemon [_thread_in_native, id=6420, stack(0x566c0000,0x567c0000)] Stack: [0x566c0000,0x567c0000], sp=0x567bf5f4, free space=3fd567bf604k 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+0x27a6] V [jvm.dll+0x29a2] V [jvm.dll+0x2ba3] V [jvm.dll+0x23807] V [jvm.dll+0x3446c] V [jvm.dll+0x31c5c] V [jvm.dll+0x322a6] V [jvm.dll+0x336f5] V [jvm.dll+0x33e01] V [jvm.dll+0x340fc] V [jvm.dll+0x35671] V [jvm.dll+0x35795] V [jvm.dll+0x27628] V [jvm.dll+0x27bad] V [jvm.dll+0x27cd8] V [jvm.dll+0x27e41] V [jvm.dll+0x27f54] V [jvm.dll+0x86129] V [jvm.dll+0x86c0f] V [jvm.dll+0x1dd924] V [jvm.dll+0x17f9cc] C [MSVCR71.dll+0x220b] C [kernel32.dll+0xb729] Current CompileTask: C1:11860 org.apache.tools.zip.ZipOutputStream.writeCentralFileHeader(Lorg/apache/tools/zip/ZipEntry;)V (454 bytes) --------------- P R O C E S S --------------- Java Threads: ( => current thread ) 0x59d97400 JavaThread "Worker-154" [_thread_blocked, id=9836, stack(0x5ea50000,0x5eb50000)] 0x63317400 JavaThread "Thread-2019" daemon [_thread_in_native, id=10032, stack(0x5ccc0000,0x5cdc0000)] 0x5a115400 JavaThread "Timer-31" daemon [_thread_blocked, id=7660, stack(0x5a8c0000,0x5a9c0000)] 0x5c443400 JavaThread "Worker-146" [_thread_blocked, id=8668, stack(0x6d510000,0x6d610000)] 0x5bad0400 JavaThread "Worker-145" [_thread_blocked, id=8292, stack(0x6c5a0000,0x6c6a0000)] 0x5c14a800 JavaThread "Worker-138" [_thread_blocked, id=3920, stack(0x61550000,0x61650000)] 0x5a07b800 JavaThread "Bundle File Closer" daemon [_thread_blocked, id=3132, stack(0x5ab30000,0x5ac30000)] 0x573c4000 JavaThread "Java indexing" daemon [_thread_blocked, id=2480, stack(0x59630000,0x59730000)] 0x57553800 JavaThread "[ThreadPool Manager] - Idle Thread" daemon [_thread_blocked, id=5524, stack(0x58fd0000,0x590d0000)] 0x56b19000 JavaThread "Worker-JM" [_thread_blocked, id=6788, stack(0x57170000,0x57270000)] 0x56ae4000 JavaThread "[Timer] - Main Queue Handler" daemon [_thread_blocked, id=6776, stack(0x57060000,0x57160000)] 0x56aa5400 JavaThread "Framework Event Dispatcher" daemon [_thread_blocked, id=5604, stack(0x56e60000,0x56f60000)] 0x56a78400 JavaThread "Start Level Event Dispatcher" daemon [_thread_blocked, id=6180, stack(0x56d60000,0x56e60000)] 0x56a69800 JavaThread "State Data Manager" daemon [_thread_blocked, id=6892, stack(0x56c60000,0x56d60000)] 0x56151000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3016, stack(0x567c0000,0x568c0000)] =>0x5614b400 JavaThread "CompilerThread0" daemon [_thread_in_native, id=6420, stack(0x566c0000,0x567c0000)] 0x56149800 JavaThread "Attach Listener" daemon [_thread_blocked, id=3312, stack(0x565c0000,0x566c0000)] 0x56148400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=700, stack(0x564c0000,0x565c0000)] 0x56134800 JavaThread "Finalizer" daemon [_thread_blocked, id=7624, stack(0x563c0000,0x564c0000)] 0x56133000 JavaThread "Reference Handler" daemon [_thread_blocked, id=4208, stack(0x562c0000,0x563c0000)] 0x008e6c00 JavaThread "main" [_thread_in_native, id=400, stack(0x00030000,0x00130000)] Other Threads: 0x56130000 VMThread [stack: 0x561c0000,0x562c0000] [id=6880] 0x5615c400 WatcherThread [stack: 0x568c0000,0x569c0000] [id=3840] VM state:not at safepoint (normal execution) VM Mutex/Monitor currently owned by a thread: None Heap def new generation total 307200K, used 250562K [0x02a30000, 0x17780000, 0x17780000) eden space 273088K, 84% used [0x02a30000, 0x10b06b28, 0x134e0000) from space 34112K, 59% used [0x134e0000, 0x148b9d98, 0x15630000) to space 34112K, 0% used [0x15630000, 0x15630000, 0x17780000) tenured generation total 682688K, used 405683K [0x17780000, 0x41230000, 0x41230000) the space 682688K, 59% used [0x17780000, 0x303accc0, 0x303ace00, 0x41230000) compacting perm gen total 307200K, used 71758K [0x41230000, 0x53e30000, 0x53e30000) the space 307200K, 23% used [0x41230000, 0x458439c8, 0x45843a00, 0x53e30000) No shared spaces configured. Dynamic libraries: 0x00400000 - 0x0040d000 C:\Program Files\Eclipse\helio2\eclipse.exe 0x7c900000 - 0x7c9b2000 C:\WINNT\system32\ntdll.dll 0x7c800000 - 0x7c8f6000 C:\WINNT\system32\kernel32.dll 0x7e410000 - 0x7e4a1000 C:\WINNT\system32\USER32.dll 0x77f10000 - 0x77f59000 C:\WINNT\system32\GDI32.dll 0x5d090000 - 0x5d12a000 C:\WINNT\system32\COMCTL32.dll 0x77dd0000 - 0x77e6b000 C:\WINNT\system32\ADVAPI32.dll 0x77e70000 - 0x77f03000 C:\WINNT\system32\RPCRT4.dll 0x77fe0000 - 0x77ff1000 C:\WINNT\system32\Secur32.dll 0x77c10000 - 0x77c68000 C:\WINNT\system32\MSVCRT.dll 0x76390000 - 0x763ad000 C:\WINNT\system32\IMM32.DLL 0x629c0000 - 0x629c9000 C:\WINNT\system32\LPK.DLL 0x74d90000 - 0x74dfb000 C:\WINNT\system32\USP10.dll 0x72000000 - 0x7200d000 C:\Program Files\Eclipse\helio2\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810\eclipse_1309.dll 0x77c00000 - 0x77c08000 C:\WINNT\system32\VERSION.dll 0x74720000 - 0x7476c000 C:\WINNT\system32\MSCTF.dll 0x755c0000 - 0x755ee000 C:\WINNT\system32\msctfime.ime 0x774e0000 - 0x7761e000 C:\WINNT\system32\ole32.dll 0x6d8b0000 - 0x6db47000 C:\Program Files\Java\jdk1.6.0_18\jre\bin\client\jvm.dll 0x76b40000 - 0x76b6d000 C:\WINNT\system32\WINMM.dll 0x7d000000 - 0x7d058000 C:\WINNT\system32\MSVCR71.dll 0x6d860000 - 0x6d86c000 C:\Program Files\Java\jdk1.6.0_18\jre\bin\verify.dll 0x6d3e0000 - 0x6d3ff000 C:\Program Files\Java\jdk1.6.0_18\jre\bin\java.dll 0x6d340000 - 0x6d348000 C:\Program Files\Java\jdk1.6.0_18\jre\bin\hpi.dll 0x76bf0000 - 0x76bfb000 C:\WINNT\system32\PSAPI.DLL 0x6d8a0000 - 0x6d8af000 C:\Program Files\Java\jdk1.6.0_18\jre\bin\zip.dll 0x68000000 - 0x68036000 C:\WINNT\system32\rsaenh.dll 0x769c0000 - 0x76a74000 C:\WINNT\system32\USERENV.dll 0x5b860000 - 0x5b8b5000 C:\WINNT\system32\netapi32.dll 0x6d6c0000 - 0x6d6d3000 C:\Program Files\Java\jdk1.6.0_18\jre\bin\net.dll 0x71ab0000 - 0x71ac7000 C:\WINNT\system32\WS2_32.dll 0x71aa0000 - 0x71aa8000 C:\WINNT\system32\WS2HELP.dll 0x71a50000 - 0x71a8f000 C:\WINNT\System32\mswsock.dll 0x76f20000 - 0x76f47000 C:\WINNT\system32\DNSAPI.dll 0x76fb0000 - 0x76fb8000 C:\WINNT\System32\winrnr.dll 0x76f60000 - 0x76f8c000 C:\WINNT\system32\WLDAP32.dll 0x76fc0000 - 0x76fc6000 C:\WINNT\system32\rasadhlp.dll 0x6d6e0000 - 0x6d6e9000 C:\Program Files\Java\jdk1.6.0_18\jre\bin\nio.dll 0x57670000 - 0x576d3000 C:\Program Files\Eclipse\helio2\configuration\org.eclipse.osgi\bundles\209\1\.cp\swt-win32-3655.dll 0x77120000 - 0x771ab000 C:\WINNT\system32\OLEAUT32.dll 0x763b0000 - 0x763f9000 C:\WINNT\system32\comdlg32.dll 0x773d0000 - 0x774d3000 C:\WINNT\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.6028_x-ww_61e65202\COMCTL32.dll 0x77f60000 - 0x77fd6000 C:\WINNT\system32\SHLWAPI.dll 0x576f0000 - 0x57f07000 C:\WINNT\system32\SHELL32.dll 0x57f10000 - 0x57ff6000 C:\WINNT\system32\WININET.dll 0x58000000 - 0x58009000 C:\WINNT\system32\Normaliz.dll 0x78130000 - 0x78263000 C:\WINNT\system32\urlmon.dll 0x58010000 - 0x581f9000 C:\WINNT\system32\iertutil.dll 0x56f70000 - 0x56f8d000 C:\Program Files\Eclipse\helio2\configuration\org.eclipse.osgi\bundles\209\1\.cp\swt-gdip-win32-3655.dll 0x58450000 - 0x585fb000 C:\WINNT\WinSxS\x86_Microsoft.Windows.GdiPlus_6595b64144ccf1df_1.0.6001.22319_x-ww_f0b4c2df\gdiplus.dll 0x56fd0000 - 0x56fde000 C:\Program Files\Eclipse\helio2\configuration\org.eclipse.osgi\bundles\42\1\.cp\os\win32\x86\localfile_1_0_0.dll 0x5ad70000 - 0x5ada8000 C:\WINNT\system32\uxtheme.dll 0x57030000 - 0x5703f000 C:\Program Files\Eclipse\helio2\configuration\org.eclipse.osgi\bundles\45\1\.cp\jWinHttp-1.0.0.dll 0x58b70000 - 0x58bc9000 C:\WINNT\system32\WINHTTP.dll 0x76ee0000 - 0x76f1c000 C:\WINNT\system32\RASAPI32.DLL 0x76e90000 - 0x76ea2000 C:\WINNT\system32\rasman.dll 0x76eb0000 - 0x76edf000 C:\WINNT\system32\TAPI32.dll 0x76e80000 - 0x76e8e000 C:\WINNT\system32\rtutils.dll 0x59c00000 - 0x59c07000 C:\WINNT\system32\credssp.dll 0x77a80000 - 0x77b15000 C:\WINNT\system32\CRYPT32.dll 0x77b20000 - 0x77b32000 C:\WINNT\system32\MSASN1.dll 0x767f0000 - 0x76818000 C:\WINNT\system32\schannel.dll 0x77c70000 - 0x77c94000 C:\WINNT\system32\msv1_0.dll 0x76d60000 - 0x76d79000 C:\WINNT\system32\iphlpapi.dll 0x61880000 - 0x618ba000 C:\WINNT\system32\oleacc.dll 0x59130000 - 0x593f5000 C:\WINNT\system32\xpsp2res.dll 0x76fd0000 - 0x7704f000 C:\WINNT\system32\CLBCATQ.DLL 0x77050000 - 0x77115000 C:\WINNT\system32\COMRes.dll 0x75cf0000 - 0x75d81000 C:\WINNT\system32\mlang.dll 0x76380000 - 0x76385000 C:\WINNT\system32\msimg32.dll 0x605d0000 - 0x605d9000 C:\WINNT\system32\mslbui.dll 0x5d130000 - 0x5dbc5000 C:\WINNT\system32\ieframe.dll 0x7e720000 - 0x7e7d0000 C:\WINNT\system32\SXS.DLL 0x7d1e0000 - 0x7d49c000 C:\WINNT\system32\msi.dll 0x77b40000 - 0x77b62000 C:\WINNT\system32\appHelp.dll 0x5e490000 - 0x5ea43000 C:\WINNT\system32\mshtml.dll 0x5b460000 - 0x5b489000 C:\WINNT\system32\msls31.dll 0x746f0000 - 0x7471a000 C:\WINNT\system32\msimtf.dll 0x5ee90000 - 0x5ee9c000 C:\WINNT\system32\ImgUtil.dll 0x662b0000 - 0x66308000 C:\WINNT\system32\hnetcfg.dll 0x71a90000 - 0x71a98000 C:\WINNT\System32\wshtcpip.dll 0x58900000 - 0x58907000 C:\Program Files\Eclipse\helio2\configuration\org.eclipse.osgi\bundles\128\1\.cp\jnicrypt.dll 0x722b0000 - 0x722b5000 C:\WINNT\system32\sensapi.dll 0x77920000 - 0x77a13000 C:\WINNT\system32\SETUPAPI.dll 0x58800000 - 0x58805000 C:\PROGRA~1\NETSUP~1\pcihooks.dll VM Arguments: jvm_args: --launcher.XXMaxPermSize 368M -XX:PermSize=300M -XX:MaxPermSize=300M --launcher.defaultAction openFile -Dosgi.requiredJavaVersion=1.5 -Xms800m -Xmx1000m java_command: <unknown> Launcher Type: generic Environment Variables: CLASSPATH=c:\jintegra\lib\jintegra.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:\Oracle\product\10.2.0.1.0\Client_1\bin;C:\Program Files\Windows Resource Kits\Tools\;C:\Program Files\Support Tools\;C:\Perl\bin\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;c:\jintegra\bin;C:\WINNT\system32\WindowsPowerShell\v1.0;C:\Program Files\Sysinternals\Bin;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\ 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(221724k free), swap 5315392k(844892k 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 17 16:03:54 2011 elapsed time: 80939 seconds *** This bug has been marked as a duplicate of bug 130545 *** |