Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 336893

Summary: IDE crashes when building large project with OutOfMemoryError when both physical and heap memory are plenty
Product: [Eclipse Project] Platform Reporter: rfang
Component: AntAssignee: 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 CLA 2011-02-11 00:01:54 EST
Build Identifier: I20100608-0911

When I launch an ant build script. It very often crashes (simply disappears) when it finishes compiling and is jarring the jar file.

When I go to my eclipse install location, I see the following log file:
hs_err_pid8440.log


#
# 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=8440, tid=3412
#  Error: ChunkPool::allocate
#
# JRE version: 6.0_20-b02
# Java VM: Java HotSpot(TM) Client VM (16.3-b01 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 (0x4745a000):  JavaThread "CompilerThread0" daemon [_thread_in_native, id=3412, stack(0x479d0000,0x47ad0000)]

Stack: [0x479d0000,0x47ad0000],  sp=0x47acf5f4,  free space=3fd47acf604k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [jvm.dll+0x1f4180]
V  [jvm.dll+0xa1ebc]
V  [jvm.dll+0x27d6]
V  [jvm.dll+0x29d2]
V  [jvm.dll+0x2bd3]
V  [jvm.dll+0x236e7]
V  [jvm.dll+0x3434c]
V  [jvm.dll+0x31b3c]
V  [jvm.dll+0x32186]
V  [jvm.dll+0x335d5]
V  [jvm.dll+0x33ce1]
V  [jvm.dll+0x33fdc]
V  [jvm.dll+0x35551]
V  [jvm.dll+0x35675]
V  [jvm.dll+0x27558]
V  [jvm.dll+0x27add]
V  [jvm.dll+0x27c08]
V  [jvm.dll+0x27d71]
V  [jvm.dll+0x27e84]
V  [jvm.dll+0x86109]
V  [jvm.dll+0x86bef]
V  [jvm.dll+0x1ddb14]
V  [jvm.dll+0x17f96c]
C  [MSVCR71.dll+0x220b]
C  [kernel32.dll+0xb729]


Current CompileTask:
C1:4282      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 )
  0x4ba69c00 JavaThread "Worker-9" [_thread_blocked, id=7964, stack(0x4d3a0000,0x4d4a0000)]
  0x4f757c00 JavaThread "Worker-8" [_thread_blocked, id=984, stack(0x4d1a0000,0x4d2a0000)]
  0x48f62800 JavaThread "Worker-7" [_thread_blocked, id=8120, stack(0x4dc50000,0x4dd50000)]
  0x48a8fc00 JavaThread "org.eclipse.jdt.debug: JDI Event Dispatcher" daemon [_thread_blocked, id=5812, stack(0x4d950000,0x4da50000)]
  0x4f2df400 JavaThread "Packet Send Manager" daemon [_thread_blocked, id=492, stack(0x4db50000,0x4dc50000)]
  0x48a14000 JavaThread "Packet Receive Manager" daemon [_thread_in_native, id=5928, stack(0x4da50000,0x4db50000)]
  0x48f79800 JavaThread "Process monitor" daemon [_thread_in_native, id=7788, stack(0x4d850000,0x4d950000)]
  0x483a5000 JavaThread "Input Stream Monitor" daemon [_thread_blocked, id=9620, stack(0x4d750000,0x4d850000)]
  0x4bd13c00 JavaThread "Output Stream Monitor" daemon [_thread_in_native, id=1856, stack(0x4d650000,0x4d750000)]
  0x48fa7400 JavaThread "Output Stream Monitor" daemon [_thread_in_native, id=9204, stack(0x4d550000,0x4d650000)]
  0x47d99400 JavaThread "Thread-8" daemon [_thread_in_native, id=8988, stack(0x4cd90000,0x4ce90000)]
  0x48ac3400 JavaThread "[ThreadPool Manager] - Idle Thread" daemon [_thread_blocked, id=3996, stack(0x4cc90000,0x4cd90000)]
  0x4b8e1c00 JavaThread "Worker-6" [_thread_blocked, id=9876, stack(0x4cb90000,0x4cc90000)]
  0x4b8cd400 JavaThread "Worker-5" [_thread_in_native, id=9004, stack(0x4ca90000,0x4cb90000)]
  0x48b27c00 JavaThread "Worker-4" [_thread_blocked, id=4472, stack(0x4c990000,0x4ca90000)]
  0x4b917c00 JavaThread "Worker-3" [_thread_blocked, id=3316, stack(0x4c890000,0x4c990000)]
  0x4b8e7800 JavaThread "Worker-2" [_thread_blocked, id=8680, stack(0x4a7c0000,0x4a8c0000)]
  0x48637800 JavaThread "Worker-1" [_thread_blocked, id=10120, stack(0x4a6c0000,0x4a7c0000)]
  0x489d0800 JavaThread "org.eclipse.jdt.internal.ui.text.JavaReconciler" daemon [_thread_blocked, id=4604, stack(0x4b1c0000,0x4b2c0000)]
  0x47df8c00 JavaThread "Java indexing" daemon [_thread_blocked, id=2876, stack(0x4afe0000,0x4b0e0000)]
  0x4844b000 JavaThread "Provisioning Event Dispatcher" daemon [_thread_blocked, id=6212, stack(0x49490000,0x49590000)]
  0x48677000 JavaThread "Worker-0" [_thread_blocked, id=7800, stack(0x49390000,0x49490000)]
  0x4872a400 JavaThread "Worker-JM" [_thread_blocked, id=9068, stack(0x49290000,0x49390000)]
  0x48671000 JavaThread "[Timer] - Main Queue Handler" daemon [_thread_blocked, id=8476, stack(0x49190000,0x49290000)]
  0x485d8400 JavaThread "Bundle File Closer" daemon [_thread_blocked, id=9536, stack(0x48780000,0x48880000)]
  0x47d90400 JavaThread "Start Level Event Dispatcher" daemon [_thread_blocked, id=9052, stack(0x481c0000,0x482c0000)]
  0x47d81800 JavaThread "Framework Event Dispatcher" daemon [_thread_blocked, id=3080, stack(0x480c0000,0x481c0000)]
  0x47460000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3112, stack(0x47ad0000,0x47bd0000)]
=>0x4745a000 JavaThread "CompilerThread0" daemon [_thread_in_native, id=3412, stack(0x479d0000,0x47ad0000)]
  0x47458400 JavaThread "Attach Listener" daemon [_thread_blocked, id=8304, stack(0x478d0000,0x479d0000)]
  0x47457000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=6580, stack(0x477d0000,0x478d0000)]
  0x47447c00 JavaThread "Finalizer" daemon [_thread_blocked, id=4292, stack(0x476d0000,0x477d0000)]
  0x47443000 JavaThread "Reference Handler" daemon [_thread_blocked, id=2456, stack(0x475d0000,0x476d0000)]
  0x008e6c00 JavaThread "main" [_thread_in_native, id=8368, stack(0x00030000,0x00130000)]

Other Threads:
  0x47440000 VMThread [stack: 0x474d0000,0x475d0000] [id=9264]
  0x4746b000 WatcherThread [stack: 0x47bd0000,0x47cd0000] [id=8048]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 def new generation   total 245888K, used 172381K [0x02a30000, 0x134f0000, 0x17780000)
  eden space 218624K,  66% used [0x02a30000, 0x0b7e7538, 0x0ffb0000)
  from space 27264K, 100% used [0x0ffb0000, 0x11a50000, 0x11a50000)
  to   space 27264K,   0% used [0x11a50000, 0x11a50000, 0x134f0000)
 tenured generation   total 546176K, used 290901K [0x17780000, 0x38ce0000, 0x41230000)
   the space 546176K,  53% used [0x17780000, 0x293956f0, 0x29395800, 0x38ce0000)
 compacting perm gen  total 55040K, used 54969K [0x41230000, 0x447f0000, 0x45230000)
   the space 55040K,  99% used [0x41230000, 0x447de410, 0x447de600, 0x447f0000)
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
0x6d800000 - 0x6da97000 	C:\Program Files\Java\jre6\bin\client\jvm.dll
0x76b40000 - 0x76b6d000 	C:\WINNT\system32\WINMM.dll
0x7d000000 - 0x7d058000 	C:\WINNT\system32\MSVCR71.dll
0x6d7b0000 - 0x6d7bc000 	C:\Program Files\Java\jre6\bin\verify.dll
0x6d330000 - 0x6d34f000 	C:\Program Files\Java\jre6\bin\java.dll
0x6d290000 - 0x6d298000 	C:\Program Files\Java\jre6\bin\hpi.dll
0x76bf0000 - 0x76bfb000 	C:\WINNT\system32\PSAPI.DLL
0x6d7f0000 - 0x6d7ff000 	C:\Program Files\Java\jre6\bin\zip.dll
0x68000000 - 0x68036000 	C:\WINNT\system32\rsaenh.dll
0x769c0000 - 0x76a74000 	C:\WINNT\system32\USERENV.dll
0x5b860000 - 0x5b8b5000 	C:\WINNT\system32\netapi32.dll
0x6d610000 - 0x6d623000 	C:\Program Files\Java\jre6\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
0x605d0000 - 0x605d9000 	C:\WINNT\system32\mslbui.dll
0x6d630000 - 0x6d639000 	C:\Program Files\Java\jre6\bin\nio.dll
0x49090000 - 0x490f3000 	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
0x49590000 - 0x49da7000 	C:\WINNT\system32\SHELL32.dll
0x49db0000 - 0x49e96000 	C:\WINNT\system32\WININET.dll
0x48340000 - 0x48349000 	C:\WINNT\system32\Normaliz.dll
0x78130000 - 0x78263000 	C:\WINNT\system32\urlmon.dll
0x49ea0000 - 0x4a089000 	C:\WINNT\system32\iertutil.dll
0x49130000 - 0x4914d000 	C:\Program Files\Eclipse\helio2\configuration\org.eclipse.osgi\bundles\209\1\.cp\swt-gdip-win32-3655.dll
0x4ec50000 - 0x4edfb000 	C:\WINNT\WinSxS\x86_Microsoft.Windows.GdiPlus_6595b64144ccf1df_1.0.6001.22319_x-ww_f0b4c2df\gdiplus.dll
0x5ad70000 - 0x5ada8000 	C:\WINNT\system32\UxTheme.dll
0x4a390000 - 0x4a395000 	C:\PROGRA~1\NETSUP~1\pcihooks.dll
0x4a6a0000 - 0x4a6ae000 	C:\Program Files\Eclipse\helio2\configuration\org.eclipse.osgi\bundles\42\1\.cp\os\win32\x86\localfile_1_0_0.dll
0x61880000 - 0x618ba000 	C:\WINNT\system32\oleacc.dll
0x4aaf0000 - 0x4adb5000 	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
0x4b130000 - 0x4b13f000 	C:\Program Files\Eclipse\helio2\configuration\org.eclipse.osgi\bundles\45\1\.cp\jWinHttp-1.0.0.dll
0x4d4f0000 - 0x4d549000 	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
0x76380000 - 0x76385000 	C:\WINNT\system32\msimg32.dll
0x77b40000 - 0x77b62000 	C:\WINNT\system32\Apphelp.dll
0x662b0000 - 0x66308000 	C:\WINNT\system32\hnetcfg.dll
0x71a90000 - 0x71a98000 	C:\WINNT\System32\wshtcpip.dll
0x4cfb0000 - 0x4cfb7000 	C:\Program Files\Eclipse\helio2\configuration\org.eclipse.osgi\bundles\128\1\.cp\jnicrypt.dll

VM Arguments:
jvm_args: --launcher.XXMaxPermSize 368m --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/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:/Program Files/Java/jre6/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(24308k free), swap 5043676k(839100k free)

vm_info: Java HotSpot(TM) Client VM (16.3-b01) for windows-x86 JRE (1.6.0_20-b02), built on Apr 12 2010 13:52:23 by "java_re" with MS VC++ 7.1 (VS2003)

time: Fri Feb 11 10:48:49 2011
elapsed time: 653 seconds

My eclipse.ini file
-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.defaultAction
openFile
-showsplash
org.eclipse.platform
-vmargs
--launcher.XXMaxPermSize
368m
--launcher.defaultAction
openFile
-Dosgi.requiredJavaVersion=1.5
-Xms800m
-Xmx1000m



Reproducible: Sometimes

Steps to Reproduce:
1. Run an ant build from Run External Tool 
2. 7 out of 10 times, the above-described crash happens
Comment 1 Prakash Rangaraj CLA 2011-02-11 00:40:19 EST
What happens when you increase these parameter:-Xmx1000m
Comment 2 rfang CLA 2011-02-11 00:42:53 EST
(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.
Comment 3 Prakash Rangaraj CLA 2011-02-11 00:52:37 EST
(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
Comment 4 Michael Rennie CLA 2011-02-11 15:50:32 EST
(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 ***
Comment 5 rfang CLA 2011-02-14 02:54:52 EST
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 ***
Comment 6 Michael Rennie CLA 2011-02-14 14:02:48 EST
(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.
Comment 7 rfang CLA 2011-02-15 02:24:08 EST
(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
Comment 8 rfang CLA 2011-02-15 02:54:28 EST
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
Comment 9 Michael Rennie CLA 2011-02-15 11:35:23 EST
(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.
Comment 10 rfang CLA 2011-02-17 03:31:16 EST
(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
Comment 11 Michael Rennie CLA 2011-02-17 09:30:53 EST

*** This bug has been marked as a duplicate of bug 130545 ***