JDK-7042582 : REGRESSION:Out of Memory Error (allocation.cpp:317) - Java 6u25
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 6u24
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_2003
  • CPU: x86
  • Submitted: 2011-05-06
  • Updated: 2012-03-20
  • Resolved: 2011-05-26
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7Resolved
Related Reports
Duplicate :  
Relates :  
Description
FULL PRODUCT VERSION :
Java HotSpot(TM) Server VM (20.0-b11) for windows-x86 JRE (1.6.0_25-b06), built on Apr 14 2011 00:56:15 by "java_re" with MS VC++ 7.1 (VS2003)

FULL OS VERSION :
OS: Windows Server 2003 family Build 3790 Service Pack 2

Happens also on 32-bit Windows server:
Microsoft Windows [Version 5.2.3790]

EXTRA RELEVANT SYSTEM CONFIGURATION :
CPU:total 2 (2 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 8386588k(2214608k free), swap 16226248k(10057368k free)

A DESCRIPTION OF THE PROBLEM :
We've update from Java 6u23 to 6u25. Since we have update to u25 processes are crashing randomly in our system tests.

THE PROBLEM WAS REPRODUCIBLE WITH -Xint FLAG: Did not try

THE PROBLEM WAS REPRODUCIBLE WITH -server FLAG: Did not try

REGRESSION.  Last worked in version 6

ERROR MESSAGES/STACK TRACES THAT OCCUR :
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 131080 bytes for Chunk::new
# Possible reasons:
#   The system is out of physical RAM or swap space
#   In 32 bit mode, the process size limit was hit
# Possible solutions:
#   Reduce memory load on the system
#   Increase physical memory or swap space
#   Check if swap backing store is full
#   Use 64 bit Java on a 64 bit OS
#   Decrease Java heap size (-Xmx/-Xms)
#   Decrease number of Java threads
#   Decrease Java thread stack sizes (-Xss)
#   Set larger code cache with -XX:ReservedCodeCacheSize=
# This output file may be truncated or incomplete.
#
#  Out of Memory Error (allocation.cpp:317), pid=5268, tid=6924
#
# JRE version: 6.0_25-b06
# Java VM: Java HotSpot(TM) Server VM (20.0-b11 mixed mode windows-x86 )

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

Current thread (0x5828f400):  JavaThread "C2 CompilerThread1" daemon [_thread_in_native, id=6924, stack(0x586c0000,0x58710000)]

Stack: [0x586c0000,0x58710000],  sp=0x5870e63c,  free space=313k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [jvm.dll+0x1484aa]
V  [jvm.dll+0x1434fc]
V  [jvm.dll+0x5e6fc]
V  [jvm.dll+0x5e993]
V  [jvm.dll+0x7045e]
V  [jvm.dll+0x143ee8]
V  [jvm.dll+0xce887]
V  [jvm.dll+0x268ab9]
V  [jvm.dll+0x26af09]
V  [jvm.dll+0x26ca8c]
V  [jvm.dll+0x26d006]
V  [jvm.dll+0x25f66a]
V  [jvm.dll+0x260048]
V  [jvm.dll+0x24e59a]
V  [jvm.dll+0x47edd]
V  [jvm.dll+0x48a6f]
V  [jvm.dll+0x48a6f]
V  [jvm.dll+0x12dcd4]
V  [jvm.dll+0x155a0c]
C  [msvcr71.dll+0x9565]
C  [kernel32.dll+0x1fe37]


Current CompileTask:
C2:  41879 874      com.xyz.core.serialization.serializer.ClassInheritanceSerializer35.serialize(Lcom/xyz/core/inheritance/ClassInheritance;Lcom/xyz/util/interfaces/DataOutputInterface;Lcom/xyz/core/serialization/abstracts/CommonEmitterInterface;)V (250 bytes)


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

Java Threads: ( => current thread )
  0x58c5d800 JavaThread "Thread-11" daemon [_thread_blocked, id=2912, stack(0x59c60000,0x59cb0000)]
  0x58998800 JavaThread "CaffeineClientListener" [_thread_blocked, id=5812, stack(0x58ed0000,0x58f20000)]
  0x58408800 JavaThread "CaffeineClientAcceptor" [_thread_in_native, id=4616, stack(0x5d900000,0x5d950000)]
  0x60cf7400 JavaThread "Worker-1" [_thread_blocked, id=2220, stack(0x5d5a0000,0x5d5f0000)]
  0x59137000 JavaThread "Worker-0" [_thread_blocked, id=2812, stack(0x5a510000,0x5a560000)]
  0x590ad400 JavaThread "CollectorMemoryCheckThread" [_thread_blocked, id=7040, stack(0x59fc0000,0x5a010000)]
  0x58c4d400 JavaThread "com.xyz.integrationtest.sud.collector@lab15 Worker-5" [_thread_blocked, id=3684, stack(0x59e10000,0x59e60000)]
  0x5908b400 JavaThread "com.xyz.integrationtest.sud.collector@lab15 Worker-3" [_thread_blocked, id=408, stack(0x59cf0000,0x59d40000)]
  0x58401400 JavaThread "com.xyz.integrationtest.sud.collector@lab15 Worker-1" [_thread_blocked, id=2016, stack(0x59bd0000,0x59c20000)]
  0x00389000 JavaThread "DestroyJavaVM" [_thread_blocked, id=4680, stack(0x003b0000,0x00400000)]
  0x58bb4400 JavaThread "shutdownPipeListener" daemon [_thread_in_native, id=4060, stack(0x59880000,0x598d0000)]
  0x58a5a800 JavaThread "Start Level Event Dispatcher" daemon [_thread_blocked, id=3904, stack(0x58ff0000,0x59040000)]
  0x58449000 JavaThread "Framework Event Dispatcher" daemon [_thread_blocked, id=5792, stack(0x58f60000,0x58fb0000)]
  0x58292000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=7500, stack(0x58750000,0x587a0000)]
=>0x5828f400 JavaThread "C2 CompilerThread1" daemon [_thread_in_native, id=6924, stack(0x586c0000,0x58710000)]
  0x5828a400 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=4792, stack(0x58630000,0x58680000)]
  0x58288c00 JavaThread "Attach Listener" daemon [_thread_blocked, id=7832, stack(0x585a0000,0x585f0000)]
  0x58286400 JavaThread "Surrogate Locker Thread (Concurrent GC)" daemon [_thread_blocked, id=3176, stack(0x58480000,0x584d0000)]
  0x55228000 JavaThread "Finalizer" daemon [_thread_blocked, id=6000, stack(0x581f0000,0x58240000)]
  0x55223800 JavaThread "Reference Handler" daemon [_thread_blocked, id=4112, stack(0x58160000,0x581b0000)]

Other Threads:
  0x5521fc00 VMThread [stack: 0x580d0000,0x58120000] [id=6048]

VM state:at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread:  ([mutex/lock_event])
[0x00387fe8] Threads_lock - owner thread: 0x5521fc00

Heap
 par new generation   total 29504K, used 28542K [0x04ea0000, 0x06ea0000, 0x06ea0000)
  eden space 26240K,  99% used [0x04ea0000, 0x0682c208, 0x06840000)
  from space 3264K,  72% used [0x06840000, 0x06a937e8, 0x06b70000)
  to   space 3264K,   0% used [0x06b70000, 0x06b70000, 0x06ea0000)
 concurrent mark-sweep generation total 1146880K, used 141651K [0x06ea0000, 0x4cea0000, 0x4cea0000)
 concurrent-mark-sweep perm gen total 131072K, used 24092K [0x4cea0000, 0x54ea0000, 0x54ea0000)

Code Cache  [0x01cc0000, 0x01f98000, 0x04cc0000)
 total_blobs=998 nmethods=832 adapters=119 free_code_cache=47419392 largest_free_block=15424

Dynamic libraries:
0x00400000 - 0x00424000 	C:\qb3\workspace\3.5.2\all\testname\jre\bin\java.exe
0x7d600000 - 0x7d6f0000 	C:\WINDOWS\system32\ntdll.dll
0x7d4c0000 - 0x7d5f0000 	C:\WINDOWS\syswow64\kernel32.dll
0x7d1e0000 - 0x7d27c000 	C:\WINDOWS\syswow64\ADVAPI32.dll
0x7da20000 - 0x7db00000 	C:\WINDOWS\syswow64\RPCRT4.dll
0x7d8d0000 - 0x7d920000 	C:\WINDOWS\syswow64\Secur32.dll
0x7c340000 - 0x7c396000 	C:\qb3\workspace\3.5.2\all\testname\jre\bin\msvcr71.dll
0x6db70000 - 0x6dfc8000 	C:\qb3\workspace\3.5.2\all\testname\jre\bin\server\jvm.dll
0x7d930000 - 0x7da00000 	C:\WINDOWS\syswow64\USER32.dll
0x7d800000 - 0x7d890000 	C:\WINDOWS\syswow64\GDI32.dll
0x76aa0000 - 0x76acd000 	C:\WINDOWS\system32\WINMM.dll
0x7dee0000 - 0x7df40000 	C:\WINDOWS\system32\IMM32.DLL
0x6d850000 - 0x6d85c000 	C:\qb3\workspace\3.5.2\all\testname\jre\bin\verify.dll
0x6d3d0000 - 0x6d3ef000 	C:\qb3\workspace\3.5.2\all\testname\jre\bin\java.dll
0x76b70000 - 0x76b7b000 	C:\WINDOWS\system32\PSAPI.DLL
0x6d890000 - 0x6d89f000 	C:\qb3\workspace\3.5.2\all\testname\jre\bin\zip.dll
0x68000000 - 0x68035000 	C:\WINDOWS\system32\rsaenh.dll
0x77ba0000 - 0x77bfa000 	C:\WINDOWS\syswow64\msvcrt.dll
0x76920000 - 0x769e2000 	C:\WINDOWS\system32\USERENV.dll
0x71c40000 - 0x71c97000 	C:\WINDOWS\system32\netapi32.dll
0x6d6b0000 - 0x6d6c3000 	C:\qb3\workspace\3.5.2\all\testname\jre\bin\net.dll
0x71c00000 - 0x71c17000 	C:\WINDOWS\system32\WS2_32.dll
0x71bf0000 - 0x71bf8000 	C:\WINDOWS\system32\WS2HELP.dll
0x7db30000 - 0x7dbb0000 	C:\WINDOWS\System32\mswsock.dll
0x77670000 - 0x777a9000 	C:\WINDOWS\syswow64\ole32.dll
0x76ed0000 - 0x76efa000 	C:\WINDOWS\system32\DNSAPI.dll
0x76f70000 - 0x76f77000 	C:\WINDOWS\System32\winrnr.dll
0x76f10000 - 0x76f3e000 	C:\WINDOWS\syswow64\WLDAP32.dll
0x76f80000 - 0x76f85000 	C:\WINDOWS\system32\rasadhlp.dll
0x6d6d0000 - 0x6d6d9000 	C:\qb3\workspace\3.5.2\all\testname\jre\bin\nio.dll
0x6d600000 - 0x6d609000 	C:\qb3\workspace\3.5.2\all\testname\jre\bin\management.dll
0x5f270000 - 0x5f2ca000 	C:\WINDOWS\system32\hnetcfg.dll
0x71ae0000 - 0x71ae8000 	C:\WINDOWS\System32\wshtcpip.dll
0x76cf0000 - 0x76d0a000 	C:\WINDOWS\system32\iphlpapi.dll
0x76cd0000 - 0x76ce9000 	C:\WINDOWS\system32\MPRAPI.dll
0x76df0000 - 0x76e24000 	C:\WINDOWS\system32\ACTIVEDS.dll
0x76dc0000 - 0x76de8000 	C:\WINDOWS\system32\adsldpc.dll
0x76b80000 - 0x76bae000 	C:\WINDOWS\system32\credui.dll
0x7c8d0000 - 0x7d0cf000 	C:\WINDOWS\syswow64\SHELL32.dll
0x7d180000 - 0x7d1d2000 	C:\WINDOWS\syswow64\SHLWAPI.dll
0x76a80000 - 0x76a92000 	C:\WINDOWS\system32\ATL.DLL
0x59b10000 - 0x59b9b000 	C:\WINDOWS\syswow64\OLEAUT32.dll
0x76e30000 - 0x76e3c000 	C:\WINDOWS\system32\rtutils.dll
0x7e020000 - 0x7e02f000 	C:\WINDOWS\system32\SAMLIB.dll
0x770e0000 - 0x771e8000 	C:\WINDOWS\system32\SETUPAPI.dll
0x7dbd0000 - 0x7dcd3000 	C:\WINDOWS\WinSxS\WOW64_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.3790.4770_x-ww_8D2E3180\comctl32.dll

VM Arguments:
jvm_args: -Dcom.xyz.instance=com.xyz.integrationtest.sud.collector -Dosgi.configuration.area=instances/com.xyz.integrationtest.sud.collector/osgi -Dcom.xyz.WatchDogTimeout=180 -Xmx1152M -Xms1152M -XX:MaxPermSize=128m -XX:PermSize=128m -XX:+UseConcMarkSweepGC -XX:+DisableExplicitGC -XX:CMSInitiatingOccupancyFraction=60 -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSIncrementalSafetyFactor=40 -XX:+CMSClassUnloadingEnabled -Dosgi.bundles=org.eclipse.equinox.common@2:start, org.eclipse.update.configurator@3:start, com.xyz.collectorbootstrap@4:start -Declipse.ignoreApp=true -Dosgi.noShutdown=true -Djava.util.logging.manager=com.xyz.util.modern.LogManager -Dcom.xyz.listen=:9998 -Dcom.xyz.integrationtest.sud=true -Dcom.xyz.discovery.deferdefault=true -Dcom.xyz.integrationtest.sud.collector.properties=c:\qb3\workspace\3.5.2\all\testname\server\collector.collector.properties -ea -Dcom.xyz.logStackTracesToConsole=true -Deof=eof -Dosgi.os=win32 -Dosgi.ws=win32 -Dosgi.arch=x86 -Dcom.xyz.WatchDogPort=50000
java_command: C:\qb3\workspace\3.5.2\all\testname\collector\plugins\org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar -name com.xyz.integrationtest.sud.collector -showsplash -launcher C:\qb3\workspace\3.5.2\all\testname\dtcollector.exe
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=C:\devtools\jdk1.6.0_25_x64
CLASSPATH=C:\qb3\buildagent\plugins\com.pmease.quickbuild.plugin.builder.ant_3.1.23.jar
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files (x86)\Dell\SysMgt\oma\bin;c:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\sysinternals;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files (x86)\Dell\SysMgt\oma\bin;c:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\sysinternals;C:\devtools\jdk1.6.0_14\binUSERNAME=labuser
DISPLAY=localhost:5.0
OS=Windows_NT
PROCESSOR_IDENTIFIER=EM64T Family 6 Model 23 Stepping 10, GenuineIntel



---------------  S Y S T E M  ---------------

OS: Windows Server 2003 family Build 3790 Service Pack 2

CPU:total 2 (2 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 8386588k(2214608k free), swap 16226248k(10057368k free)

vm_info: Java HotSpot(TM) Server VM (20.0-b11) for windows-x86 JRE (1.6.0_25-b06), built on Apr 14 2011 00:56:15 by "java_re" with MS VC++ 7.1 (VS2003)

time: Fri May 06 08:57:55 2011
elapsed time: 41 seconds



REPRODUCIBILITY :
This bug can be reproduced often.

Comments
EVALUATION The decoded stack trace shows that this is indeed a duplicate of 7013538, which is fixed in JDKs 6u27 and 7: V [jvm.dll+0x1484aa] ?report_and_die@VMError@@QAEXXZ+0x4ca V [jvm.dll+0x1434fc] ?report_vm_out_of_memory@@YAXPBDHI0@Z+0x3c V [jvm.dll+0x5e6fc] ??2Chunk@@SAPAXII@Z+0x4c V [jvm.dll+0x5e993] ?grow@Arena@@IAEPAXI@Z+0x23 V [jvm.dll+0x7045e] ?resource_allocate_bytes@@YAPADI@Z+0x4e V [jvm.dll+0x143ee8] ?raw_allocate@GenericGrowableArray@@IAEPAXH@Z+0x18 V [jvm.dll+0xce887] ?grow@?$GrowableArray@PAVNode_List@@@@AAEXH@Z+0x37 V [jvm.dll+0x268ab9] ?PointsTo@ConnectionGraph@@AAEXAAVVectorSet@@PAVNode@@@Z+0x199 V [jvm.dll+0x26af09] ?build_connection_graph@ConnectionGraph@@AAEXPAVNode@@PAVPhaseTransform@@@Z+0x1a9 V [jvm.dll+0x26ca8c] ?compute_escape@ConnectionGraph@@QAE_NXZ+0x47c V [jvm.dll+0x26d006] ?do_analysis@ConnectionGraph@@SAXPAVCompile@@PAVPhaseIterGVN@@@Z+0x76 V [jvm.dll+0x25f66a] ?Optimize@Compile@@AAEXXZ+0x12a V [jvm.dll+0x260048] ??0Compile@@QAE@PAVciEnv@@PAVC2Compiler@@PAVciMethod@@H_N3@Z+0x638 V [jvm.dll+0x24e59a] ?compile_method@C2Compiler@@UAEXPAVciEnv@@PAVciMethod@@H@Z+0x6a V [jvm.dll+0x47edd] ?invoke_compiler_on_method@CompileBroker@@CAXPAVCompileTask@@@Z+0x24d V [jvm.dll+0x48a6f] ?compiler_thread_loop@CompileBroker@@SAXXZ+0x29f
26-05-2011

WORK AROUND Try -XX:-DoEscapeAnalysis.
19-05-2011