Skip to main content

JDK 6u14 b06 and Glassfish v2.1 crashes

4 replies [Last post]
onenull
Offline
Joined: 2008-05-13
Points: 0

updated to jdk 6u14 b06 for win32 (Windows XP Pro SP3) days ago, and found Glassfish v2.1 had crashed or killed itself twice without any prediction, which never happened with jdk 6u14 versions b04 or earlier.

Heap memory is not short. I was controlling it through Netbeans 6.5.1 under services/servers tab. No log or output was generated by the crash.

The last action before the browser informed me about "missing connection" was clearing all messages inside the Glassfish v2.1 "output" window in Netbeans 6.5.1, and Netbeans did not detect the crash.

The server is for the development of a JSF+facelets WEB project, not busy but performs lots of re-deploy by netbeans' "deploy on save" feature.

Is it a new bug introduced by b05 or b06?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
onenull
Offline
Joined: 2008-05-13
Points: 0

I found out that it is very likely the class loader which unloads and reloads the web applications and leaves lots of garbage in the limited process memory space, while the JVM heap is still in good shape and does not cause the GC the reclaim back the wasted memory.

I have no idea what occupies the 0.5GB (2GB process space -1.5GB( heap + perm +code cache )). JVM itself? The MAX threads number is 100, and Xss256k or 1024k makes no difference.

onenull
Offline
Joined: 2008-05-13
Points: 0

I found files with names like "hs_err_pidxxxx.log" in the domain's "config" directory of Glassfish v2.1.

It says:
# 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=2352, tid=3220
# Error: ChunkPool::allocate
#
# JRE version: 6.0_14-b06
# Java VM: Java HotSpot(TM) Server VM (14.0-b15 mixed mode windows-x86 )

--------------- T H R E A D ---------------

Current thread (0x009fc400): JavaThread "CompilerThread0" daemon [_thread_in_native, id=3220, stack(0x587a0000,0x587f0000)]

Stack: [0x587a0000,0x587f0000], sp=0x587ee5e4, free space=313k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [jvm.dll+0x306157]
V [jvm.dll+0xf7d2c]
V [jvm.dll+0x38f76]
V [jvm.dll+0x39172]
V [jvm.dll+0x393f3]
V [jvm.dll+0x2828a6]
V [jvm.dll+0x282e5c]
V [jvm.dll+0x28274f]
V [jvm.dll+0x22ac00]
V [jvm.dll+0xd73a0]
V [jvm.dll+0xd7f42]
V [jvm.dll+0x9e082]
V [jvm.dll+0xda0e0]
V [jvm.dll+0xdac6f]
V [jvm.dll+0x2e63f4]
V [jvm.dll+0x267dac]
C [msvcr71.dll+0x9565]
C [kernel32.dll+0xb713]

Current CompileTask:
C2:6442 ! com.sun.enterprise.config.ConfigBean.setValue(Ljava/lang/String;Ljava/lang/Object;)V (22 bytes)

--------------- P R O C E S S ---------------

Java Threads: ( => current thread )
0x59463c00 JavaThread "AWT-Windows" daemon [_thread_in_native, id=3052, stack(0x5a780000,0x5a7c0000)]
0x61beb400 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=3808, stack(0x5a700000,0x5a740000)]
0x5a558c00 JavaThread "Timer-5" daemon [_thread_blocked, id=2580, stack(0x595d0000,0x59610000)]
0x5a03bc00 JavaThread "Thread-33" daemon [_thread_blocked, id=3260, stack(0x5dd20000,0x5dd60000)]
0x5c0b9c00 JavaThread "Timer-4" [_thread_blocked, id=3284, stack(0x5dca0000,0x5dce0000)]
0x002bdc00 JavaThread "DestroyJavaVM" [_thread_blocked, id=3360, stack(0x008c0000,0x00900000)]
0x5befc400 JavaThread "Timer-3" daemon [_thread_blocked, id=2020, stack(0x5dce0000,0x5dd20000)]
0x592e8400 JavaThread "ContainerBackgroundProcessor[StandardEngine[com.sun.appserv]]" daemon [_thread_blocked, id=3844, stack(0x5dc60000,0x5dca0000)]
0x5942b400 JavaThread "ContainerBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[__asadmin].StandardContext[/web1]]" daemon [_thread_blocked, id=3824, stack(0x5dc20000,0x5dc60000)]
0x5aee6800 JavaThread "ContainerBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[__asadmin].StandardContext[]]" daemon [_thread_blocked, id=1380, stack(0x5dbe0000,0x5dc20000)]
0x5a1c0c00 JavaThread "ContainerBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[]]" daemon [_thread_blocked, id=788, stack(0x5dba0000,0x5dbe0000)]
0x59b78400 JavaThread "httpSSLWorkerThread-8181-9" daemon [_thread_blocked, id=3464, stack(0x5db60000,0x5dba0000)]
0x5b246c00 JavaThread "httpSSLWorkerThread-8181-8" daemon [_thread_blocked, id=3596, stack(0x5db20000,0x5db60000)]
0x592a3800 JavaThread "httpSSLWorkerThread-8181-7" daemon [_thread_blocked, id=1716, stack(0x5dae0000,0x5db20000)]
0x5bae8400 JavaThread "httpSSLWorkerThread-8181-6" daemon [_thread_blocked, id=2660, stack(0x5daa0000,0x5dae0000)]
0x5a992800 JavaThread "httpSSLWorkerThread-8181-5" daemon [_thread_blocked, id=2796, stack(0x5da60000,0x5daa0000)]
0x5bad0400 JavaThread "httpSSLWorkerThread-8181-4" daemon [_thread_blocked, id=2380, stack(0x5da20000,0x5da60000)]
0x5b8fa800 JavaThread "httpSSLWorkerThread-8181-3" daemon [_thread_blocked, id=1568, stack(0x5d9e0000,0x5da20000)]
0x5b8c2800 JavaThread "httpSSLWorkerThread-8181-2" daemon [_thread_blocked, id=2036, stack(0x5d890000,0x5d8d0000)]
0x58ff0800 JavaThread "httpSSLWorkerThread-8181-1" daemon [_thread_blocked, id=884, stack(0x5d850000,0x5d890000)]
0x590a9c00 JavaThread "httpSSLWorkerThread-8181-0" daemon [_thread_blocked, id=3920, stack(0x5d810000,0x5d850000)]
0x59877800 JavaThread "httpWorkerThread-8080-9" daemon [_thread_blocked, id=456, stack(0x5d9a0000,0x5d9e0000)]
0x59030800 JavaThread "httpWorkerThread-8080-8" daemon [_thread_blocked, id=3232, stack(0x5d960000,0x5d9a0000)]
0x5b4fcc00 JavaThread "httpWorkerThread-8080-7" daemon [_thread_blocked, id=2260, stack(0x5d920000,0x5d960000)]
0x5b7dd800 JavaThread "httpWorkerThread-8080-6" daemon [_thread_blocked, id=3320, stack(0x5d8e0000,0x5d920000)]
0x5909f400 JavaThread "httpSSLWorkerThread-4848-9" daemon [_thread_blocked, id=3728, stack(0x5d7d0000,0x5d810000)]
0x5a174400 JavaThread "httpSSLWorkerThread-4848-8" daemon [_thread_in_Java, id=2800, stack(0x5d790000,0x5d7d0000)]
0x5859f400 JavaThread "httpSSLWorkerThread-4848-7" daemon [_thread_blocked, id=2124, stack(0x5d750000,0x5d790000)]
0x5a021800 JavaThread "httpSSLWorkerThread-4848-6" daemon [_thread_blocked, id=3616, stack(0x5d710000,0x5d750000)]
0x5906b400 JavaThread "httpSSLWorkerThread-4848-5" daemon [_thread_blocked, id=3684, stack(0x5d6d0000,0x5d710000)]
0x593e3400 JavaThread "httpSSLWorkerThread-4848-4" daemon [_thread_blocked, id=3460, stack(0x5d690000,0x5d6d0000)]
0x59c55800 JavaThread "httpSSLWorkerThread-4848-3" daemon [_thread_blocked, id=2200, stack(0x5d650000,0x5d690000)]
0x593a5400 JavaThread "httpSSLWorkerThread-4848-2" daemon [_thread_blocked, id=3436, stack(0x5d610000,0x5d650000)]
0x59a11400 JavaThread "httpSSLWorkerThread-4848-1" daemon [_thread_blocked, id=2216, stack(0x5d5d0000,0x5d610000)]
0x59a53800 JavaThread "httpSSLWorkerThread-4848-0" daemon [_thread_blocked, id=1940, stack(0x5d590000,0x5d5d0000)]
0x588d9800 JavaThread "httpWorkerThread-8080-5" daemon [_thread_blocked, id=1784, stack(0x5d550000,0x5d590000)]
0x5b239400 JavaThread "httpWorkerThread-8080-4" daemon [_thread_blocked, id=3720, stack(0x5d510000,0x5d550000)]
0x59e07400 JavaThread "httpWorkerThread-8080-3" daemon [_thread_blocked, id=1236, stack(0x5d4d0000,0x5d510000)]
0x5b2a0400 JavaThread "httpWorkerThread-8080-2" daemon [_thread_blocked, id=2764, stack(0x5d490000,0x5d4d0000)]
0x5b169400 JavaThread "httpWorkerThread-8080-1" daemon [_thread_blocked, id=3484, stack(0x5d450000,0x5d490000)]
0x58aad400 JavaThread "httpWorkerThread-8080-0" daemon [_thread_blocked, id=432, stack(0x5d410000,0x5d450000)]
0x5b745400 JavaThread "GrizzlyPipelineStatWorkerThread-4848-2" daemon [_thread_blocked, id=3348, stack(0x5d3d0000,0x5d410000)]
0x59764400 JavaThread "GrizzlyPipelineStatWorkerThread-4848-1" daemon [_thread_blocked, id=3544, stack(0x5d390000,0x5d3d0000)]
0x590aa800 JavaThread "GrizzlyPipelineStatWorkerThread-4848-0" daemon [_thread_blocked, id=4056, stack(0x5d350000,0x5d390000)]
0x59c84800 JavaThread "SelectorThread-4848" [_thread_in_native, id=872, stack(0x5d310000,0x5d350000)]
0x59e7a400 JavaThread "GrizzlyPipelineStatWorkerThread-8181-2" daemon [_thread_blocked, id=3096, stack(0x5d2d0000,0x5d310000)]
0x596b0400 JavaThread "GrizzlyPipelineStatWorkerThread-8181-1" daemon [_thread_blocked, id=4012, stack(0x5d290000,0x5d2d0000)]
0x584b2c00 JavaThread "GrizzlyPipelineStatWorkerThread-8181-0" daemon [_thread_blocked, id=3380, stack(0x5d250000,0x5d290000)]
0x5a4de400 JavaThread "SelectorThread-8181" [_thread_in_native, id=1476, stack(0x5d210000,0x5d250000)]
0x5b2d8400 JavaThread "GrizzlyPipelineStatWorkerThread-8080-2" daemon [_thread_blocked, id=840, stack(0x5d1d0000,0x5d210000)]
0x59c4d000 JavaThread "GrizzlyPipelineStatWorkerThread-8080-1" daemon [_thread_blocked, id=3780, stack(0x5d190000,0x5d1d0000)]
0x59794400 JavaThread "GrizzlyPipelineStatWorkerThread-8080-0" daemon [_thread_blocked, id=3072, stack(0x5d150000,0x5d190000)]
0x58ed1c00 JavaThread "SelectorThread-8080" [_thread_in_native, id=2952, stack(0x5d110000,0x5d150000)]
0x5a3a9c00 JavaThread "Thread-17" [_thread_blocked, id=2644, stack(0x5d0d0000,0x5d110000)]
0x5a24d400 JavaThread "RMI RenewClean-[199.233.154.99:22336,com.sun.enterprise.admin.server.core.channel.LocalRMIClientSocketFactory@111f9b]" daemon [_thread_blocked, id=3992, stack(0x5d050000,0x5d090000)]
0x5a302800 JavaThread "ClusterServiceListener" daemon [_thread_in_native, id=2196, stack(0x5d010000,0x5d050000)]
0x5a88dc00 JavaThread "MessageBusCallbackDispatcher" daemon [_thread_blocked, id=2420, stack(0x5cfd0000,0x5d010000)]
0x5b2b0400 JavaThread "jms_ACCEPT" [_thread_in_native, id=3740, stack(0x5cf90000,0x5cfd0000)]
0x5a45ec00 JavaThread "admin_ACCEPT" [_thread_in_native, id=2468, stack(0x5cf50000,0x5cf90000)]
0x5893d800 JavaThread "RMI RenewClean-[199.233.154.99:22350]" daemon [_thread_blocked, id=1092, stack(0x5ced0000,0x5cf10000)]
0x59c5c800 JavaThread "RMI TCP Accept-0" daemon [_thread_in_native, id=2084, stack(0x5ce90000,0x5ced0000)]
0x5a41d800 JavaThread "ClusterDiscoveryService" daemon [_thread_in_native, id=3636, stack(0x5ce50000,0x5ce90000)]
0x5b9a5400 JavaThread "Broker Monitor" daemon [_thread_blocked, id=2708, stack(0x5ce10000,0x5ce50000)]
0x5a35e400 JavaThread "JMQPortMapper" daemon [_thread_in_native, id=3548, stack(0x5cdd0000,0x5ce10000)]
0x5b730c00 JavaThread "MQTimer-Thread" daemon [_thread_blocked, id=2424, stack(0x5cd90000,0x5cdd0000)]
0x5a366400 JavaThread "p: thread-pool-1; w: 3" daemon [_thread_blocked, id=3440, stack(0x5cd50000,0x5cd90000)]
0x5b4f7c00 JavaThread "RMI RenewClean-[199.233.154.99:22343]" daemon [_thread_blocked, id=3036, stack(0x5cc90000,0x5ccd0000)]
0x596dcc00 JavaThread "RMI TCP Accept-0" daemon [_thread_in_native, id=2188, stack(0x5cbd0000,0x5cc10000)]
0x5b0f1c00 JavaThread "RMI TCP Accept-8686" daemon [_thread_in_native, id=2228, stack(0x5cc10000,0x5cc50000)]
0x5ad42c00 JavaThread "Thread-10" daemon [_thread_blocked, id=3132, stack(0x5cb90000,0x5cbd0000)]
0x5b1e9c00 JavaThread "Thread-9" [_thread_blocked, id=1544, stack(0x5cb50000,0x5cb90000)]
0x5b221c00 JavaThread "Thread-7" [_thread_blocked, id=3828, stack(0x5cb10000,0x5cb50000)]
0x59be9c00 JavaThread "SelectorThread" daemon [_thread_in_native, id=3324, stack(0x5cad0000,0x5cb10000)]
0x59774c00 JavaThread "p: thread-pool-1; w: 2" daemon [_thread_in_native, id=972, stack(0x5ca90000,0x5cad0000)]
0x59a52400 JavaThread "p: thread-pool-1; w: 1" daemon [_thread_in_native, id=2192, stack(0x5ca50000,0x5ca90000)]
0x5a807c00 JavaThread "Timer-2" daemon [_thread_blocked, id=2300, stack(0x5ca10000,0x5ca50000)]
0x5b715c00 JavaThread "Timer-1" [_thread_blocked, id=2148, stack(0x5c9d0000,0x5ca10000)]
0x5afa9c00 JavaThread "Timer-0" [_thread_blocked, id=1928, stack(0x5c990000,0x5c9d0000)]
0x59a62400 JavaThread "RMI Scheduler(0)" daemon [_thread_blocked, id=1792, stack(0x5c950000,0x5c990000)]
0x5bcb1c00 JavaThread "GC Daemon" daemon [_thread_blocked, id=3068, stack(0x5c8d0000,0x5c910000)]
0x597c5400 JavaThread "RMI Reaper" [_thread_blocked, id=3092, stack(0x5c890000,0x5c8d0000)]
0x58945400 JavaThread "RMI TCP Accept-0" daemon [_thread_in_native, id=2160, stack(0x5c850000,0x5c890000)]
0x58488400 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3580, stack(0x58840000,0x58880000)]
0x5847dc00 JavaThread "CompilerThread1" daemon [_thread_in_native, id=3756, stack(0x587f0000,0x58840000)]
=>0x009fc400 JavaThread "CompilerThread0" daemon [_thread_in_native, id=3220, stack(0x587a0000,0x587f0000)]
0x58479c00 JavaThread "Attach Listener" daemon [_thread_blocked, id=2680, stack(0x58760000,0x587a0000)]
0x58478800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=1580, stack(0x58720000,0x58760000)]
0x009f3400 JavaThread "Finalizer" daemon [_thread_blocked, id=2100, stack(0x586e0000,0x58720000)]
0x009eec00 JavaThread "Reference Handler" daemon [_thread_blocked, id=3076, stack(0x586a0000,0x586e0000)]

Other Threads:
0x58471000 VMThread [stack: 0x58650000,0x586a0000] [id=3768]
0x584ce400 WatcherThread [stack: 0x58880000,0x588d0000] [id=2512]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
PSYoungGen total 439872K, used 327869K [0x38900000, 0x54b00000, 0x54b00000)
eden space 418944K, 78% used [0x38900000,0x4c92f620,0x52220000)
from space 20928K, 0% used [0x53690000,0x53690000,0x54b00000)
to space 20928K, 0% used [0x52220000,0x52220000,0x53690000)
ParOldGen total 587776K, used 495640K [0x14b00000, 0x38900000, 0x38900000)
object space 587776K, 84% used [0x14b00000,0x32f06118,0x38900000)
PSPermGen total 262144K, used 86249K [0x04b00000, 0x14b00000, 0x14b00000)
object space 262144K, 32% used [0x04b00000,0x09f3a508,0x14b00000)

Dynamic libraries:
0x00400000 - 0x00424000 D:\Java\jdk6u14\bin\java.exe
0x7c900000 - 0x7c9af000 C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c8f6000 C:\WINDOWS\system32\kernel32.dll
0x77dd0000 - 0x77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
0x77e70000 - 0x77f02000 C:\WINDOWS\system32\RPCRT4.dll
0x77fe0000 - 0x77ff1000 C:\WINDOWS\system32\Secur32.dll
0x7c340000 - 0x7c396000 D:\Java\jdk6u14\jre\bin\msvcr71.dll
0x6db60000 - 0x6df6a000 D:\Java\jdk6u14\jre\bin\server\jvm.dll
0x7e410000 - 0x7e4a1000 C:\WINDOWS\system32\USER32.dll
0x77f10000 - 0x77f59000 C:\WINDOWS\system32\GDI32.dll
0x76b40000 - 0x76b6d000 C:\WINDOWS\system32\WINMM.dll
0x76390000 - 0x763ad000 C:\WINDOWS\system32\IMM32.DLL
0x629c0000 - 0x629c9000 C:\WINDOWS\system32\LPK.DLL
0x74d90000 - 0x74dfb000 C:\WINDOWS\system32\USP10.dll
0x6d860000 - 0x6d86c000 D:\Java\jdk6u14\jre\bin\verify.dll
0x6d3e0000 - 0x6d3ff000 D:\Java\jdk6u14\jre\bin\java.dll
0x6d340000 - 0x6d348000 D:\Java\jdk6u14\jre\bin\hpi.dll
0x76bf0000 - 0x76bfb000 C:\WINDOWS\system32\PSAPI.DLL
0x6d8a0000 - 0x6d8af000 D:\Java\jdk6u14\jre\bin\zip.dll
0x6d6c0000 - 0x6d6d3000 D:\Java\jdk6u14\jre\bin\net.dll
0x71ab0000 - 0x71ac7000 C:\WINDOWS\system32\WS2_32.dll
0x77c10000 - 0x77c68000 C:\WINDOWS\system32\msvcrt.dll
0x71aa0000 - 0x71aa8000 C:\WINDOWS\system32\WS2HELP.dll
0x71a50000 - 0x71a8f000 C:\WINDOWS\System32\mswsock.dll
0x76f20000 - 0x76f47000 C:\WINDOWS\system32\DNSAPI.dll
0x76fb0000 - 0x76fb8000 C:\WINDOWS\System32\winrnr.dll
0x76f60000 - 0x76f8c000 C:\WINDOWS\system32\WLDAP32.dll
0x58d80000 - 0x58d99000 C:\Program Files\Bonjour\mdnsNSP.dll
0x76d60000 - 0x76d79000 C:\WINDOWS\system32\Iphlpapi.dll
0x76fc0000 - 0x76fc6000 C:\WINDOWS\system32\rasadhlp.dll
0x6d610000 - 0x6d619000 D:\Java\jdk6u14\jre\bin\management.dll
0x68000000 - 0x68036000 C:\WINDOWS\system32\rsaenh.dll
0x769c0000 - 0x76a74000 C:\WINDOWS\system32\USERENV.dll
0x5c7f0000 - 0x5c845000 C:\WINDOWS\system32\netapi32.dll
0x662b0000 - 0x66308000 C:\WINDOWS\system32\hnetcfg.dll
0x71a90000 - 0x71a98000 C:\WINDOWS\System32\wshtcpip.dll
0x5c7d0000 - 0x5c7d5000 D:\Java\glassfish2.1\lib\jvminfoutil.dll
0x6d7b0000 - 0x6d7b6000 D:\Java\jdk6u14\jre\bin\rmi.dll
0x6d6e0000 - 0x6d6e9000 D:\Java\jdk6u14\jre\bin\nio.dll
0x6d840000 - 0x6d848000 D:\Java\jdk6u14\jre\bin\sunmscapi.dll
0x77a80000 - 0x77b15000 C:\WINDOWS\system32\CRYPT32.dll
0x77b20000 - 0x77b32000 C:\WINDOWS\system32\MSASN1.dll
0x6d0b0000 - 0x6d1fa000 D:\Java\jdk6u14\jre\bin\awt.dll
0x73000000 - 0x73026000 C:\WINDOWS\system32\WINSPOOL.DRV
0x774e0000 - 0x7761d000 C:\WINDOWS\system32\ole32.dll
0x773d0000 - 0x774d3000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83\comctl32.dll
0x77f60000 - 0x77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
0x6d2e0000 - 0x6d334000 D:\Java\jdk6u14\jre\bin\fontmanager.dll
0x74720000 - 0x7476c000 C:\WINDOWS\system32\MSCTF.dll
0x77b40000 - 0x77b62000 C:\WINDOWS\system32\apphelp.dll
0x755c0000 - 0x755ee000 C:\WINDOWS\system32\msctfime.ime
0x76fd0000 - 0x7704f000 C:\WINDOWS\system32\CLBCATQ.DLL

The PC has 4GB RAM installed and the OS shows 3.25GB.
THe Glassfish startup options are:
-Dcom.sun.aas.instanceRoot=D:/Java/glassfish2.1/domains/domain1 -Dcom.sun.aas.ClassPathPrefix=D:/Java/glassfish2.1/lib/jsf-api.jar -Dcom.sun.aas.ClassPathSuffix=D:/Java/glassfish2.1/log4j/log4j-1.2.15.jar;D:/Java/glassfish2.1/log4j -Dcom.sun.aas.ServerClassPath= -Dcom.sun.aas.classloader.appserverChainJars.ee= -Dcom.sun.aas.classloader.appserverChainJars=admin-cli.jar,admin-cli-ee.jar,j2ee-svc.jar -Dcom.sun.aas.classloader.excludesList=admin-cli.jar,appserv-upgrade.jar,sun-appserv-ant.jar -Dcom.sun.aas.classloader.optionalOverrideableChain.ee= -Dcom.sun.aas.classloader.optionalOverrideableChain=webservices-rt.jar,webservices-tools.jar -Dcom.sun.aas.classloader.serverClassPath.ee=/lib/hadbjdbc4.jar,D:/Java/glassfish2.1/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,/lib/dbstate.jar,/lib/hadbm.jar,/lib/hadbmgt.jar,/lib/mfwk_instrum_tk.jar -Dcom.sun.aas.classloader.serverClassPath=D:/Java/glassfish2.1/lib/install/applications/jmsra/imqjmsra.jar,D:/Java/glassfish2.1/imq/lib/jaxm-api.jar,D:/Java/glassfish2.1/imq/lib/fscontext.jar,D:/Java/glassfish2.1/imq/lib/imqbroker.jar,D:/Java/glassfish2.1/imq/lib/imqjmx.jar,D:/Java/glassfish2.1/lib/ant/lib/ant.jar,D:/Java/glassfish2.1/lib/SUNWjdmk/5.1/lib/jdmkrt.jar -Dcom.sun.aas.classloader.sharedChainJars.ee=appserv-se.jar,appserv-ee.jar,jesmf-plugin.jar,/lib/dbstate.jar,/lib/hadbjdbc4.jar,jgroups-all.jar,/lib/mfwk_instrum_tk.jar -Dcom.sun.aas.classloader.sharedChainJars=javaee.jar,D:/Java/jdk6u14/jre/../lib/tools.jar,install/applications/jmsra/imqjmsra.jar,com-sun-commons-launcher.jar,com-sun-commons-logging.jar,D:/Java/glassfish2.1/imq/lib/jaxm-api.jar,D:/Java/glassfish2.1/imq/lib/fscontext.jar,D:/Java/glassfish2.1/imq/lib/imqbroker.jar,D:/Java/glassfish2.1/imq/lib/imqjmx.jar,D:/Java/glassfish2.1/imq/lib/imqxm.jar,webservices-rt.jar,webservices-tools.jar,mail.jar,appserv-jstl.jar,jmxremote_optional.jar,D:/Java/glassfish2.1/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,activation.jar,appserv-rt.jar,appserv-admin.jar,appserv-cmp.jar,D:/Java/glassfish2.1/updatecenter/lib/updatecenter.jar,D:/Java/glassfish2.1/jbi/lib/jbi.jar,D:/Java/glassfish2.1/imq/lib/imqjmx.jar,D:/Java/glassfish2.1/lib/ant/lib/ant.jar,dbschema.jar -Dcom.sun.aas.configName=server-config -Dcom.sun.aas.configRoot=D:/Java/glassfish2.1/config -Dcom.sun.aas.defaultLogFile=D:/Java/glassfish2.1/domains/domain1/logs/server.log -Dcom.sun.aas.domainName=domain1 -Dcom.sun.aas.installRoot=D:/Java/glassfish2.1 -Dcom.sun.aas.instanceName=server -Dcom.sun.aas.processLauncher=SE -Dcom.sun.aas.promptForIdentity=true -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory -Dcom.sun.enterprise.overrideablejavaxpackages=javax.help,javax.portlet -Dcom.sun.enterprise.server.ss.ASQuickStartup=false -Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar -Dcom.sun.enterprise.taglisteners=jsf-impl.jar -Dcom.sun.enterprise.web.connector.useCoyoteConnector=false -Dcom.sun.updatecenter.home=D:/Java/glassfish2.1/updatecenter -Ddomain.name=domain1 -Djava.awt.headless=true -Djava.endorsed.dirs=D:/Java/glassfish2.1/lib/endorsed -Djava.ext.dirs=D:/Java/jdk6u14/jre/../lib/ext;D:/Java/jdk6u14/jre/../jre/lib/ext;D:/Java/glassfish2.1/domains/domain1/lib/ext;D:/Java/glassfish2.1/javadb/lib -Djava.library.path=D:\Java\glassfish2.1\lib;D:\Java\glassfish2.1\lib;D:\Java\glassfish2.1\bin;D:\Java\glassfish2.1\lib -Djava.security.auth.login.config=D:/Java/glassfish2.1/domains/domain1/config/login.conf -Djava.security.policy=D:/Java/glassfish2.1/domains/domain1/config/server.policy -Djava.util.logging.manager=com.sun.enterprise.server.logging.ServerLogManager -Djavax.management.builder.initial=com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder -Djavax.net.ssl.keyStore=D:/Java/glassfish2.1/domains/domain1/config/keystore.jks -Djavax.net.ssl.trustStore=D:/Java/glassfish2.1/domains/domain1/config/cacerts.jks -Djdbc.drivers=org.apache.derby.jdbc.ClientDriver -Djmx.invoke.getters=true -Dsun.rmi.dgc.client.gcInterval=36000000 -Dsun.rmi.dgc.server.gcInterval=36000000 -XX:+UnlockDiagnosticVMOptions -Xms1g -Xmx1g -Xmn450m -XX:MaxPermSize=256m -XX:PermSize=256m -XX:SurvivorRatio=20 -XX:ReservedCodeCacheSize=64m -XX:InitialCodeCacheSize=64m -Xverify:none -XX:+DisableExplicitGC -XX:+AggressiveOpts -XX:+AggressiveHeap -da -dsa -XX:UseSSE=2 -XX:+UseFastEmptyMethods -XX:+UseFastJNIAccessors -XX:+DoEscapeAnalysis -XX:+UseBiasedLocking -XX:BiasedLockingStartupDelay=0 -XX:+EliminateLocks -XX:+UseSpinning -XX:PreBlockSpin=100 -XX:+FastTLABRefill -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:ParallelGCThreads=2 -XX:MaxGCPauseMillis=500 -XX:MaxTenuringThreshold=5 -XX:+UseFastAccessorMethods -XX:CompileThreshold=800 -Xss256k -XX:ThreadStackSize=256 -XX:+HeapDumpOnOutOfMemoryError -XX:+LogVMOutput -XX:LogFile=D:/Java/glassfish2.1/domains/domain1/logs/jvm.log

I searched Internet and found this error is old and marked "not reproducible" and thus ignored by JVM developers.

But it hit me in this latest jdk build.

Following some suggested advice, I have already taken out options like
"UseTLAB" and set explicitly options as " -Xss256k -XX:ThreadStackSize=256".

It did not work.

I heared that win32 platform uplimited 2GB RAM for each process, so JVM threads, include compiler threads, can only get RAM space as:
2GB-javaHEAP-javaNonHEAP

I don't know it it is true, but "32756 bytes" should not crash the whole process.
The OS showed 2.5GB was used/committed before the crash, and 1.18GB after that.

This error happend since I jupmed to jdk 6u14b06. Before that, I used jdk 6u14b03 for a long time without this error. Jdk 6u14b04 was used for a very short time, I did not remember if it gave me this error.

Any suggestions are appreciated.

test_java
Offline
Joined: 2010-11-16
Points: 0

Hi,
Is the problem resolved? if so will you please share it...
We are seeing the same problem occasionally...
Glassfish ESBv21 and Java 1.6.0.17 and Solaris 10
-------------------
# java.lang.OutOfMemoryError: requested 32756 bytes for ChunkPool::allocate. Out of swap space?
#
# Internal Error (allocation.cpp:117), pid=2618, tid=46
# Error: ChunkPool::allocate
#
# JRE version: 6.0_17-b04
# Java VM: Java HotSpot(TM) Server VM (14.3-b01 mixed mode solaris-sparc )
-------------------

Thanks a ton.
HTS

onenull
Offline
Joined: 2008-05-13
Points: 0

came back to see what was the new feature of JDK 7 build, and thought this was somebody else's topic. :)

I thought it was Java native mamory which was unclear or not on any public document, and that part took hugh amount memory. Maybe it a feature of JSF app.

I tured to Linux 64bit OS with 4GB memory, and it worked much better, except casual lock down.

I added memory to 6GB and JDK7, and it has never crashed again so far.

Hope it helps.