Native memory allocation (malloc) failed to allocate

ddatsh 发布于 2012/05/23 09:54
阅读 12K+
收藏 0
JDK
win7 64,jdk 7
内存4G
用imdisk分配了1G的虚拟硬盘作TEMP
系统此时占用内存2G多一点
=================
eclipse.ini
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
768M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
768M
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms256m
-Xmx768M
========================
eclipse开着后

Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。


Z:\>mvn archetype:generate
Error occurred during initialization of VM
java/lang/ClassNotFoundException: error in opening JAR file C:\Program Files\Java\jdk1.7.0_04\jre\lib\rt.jar
Z:\>mvn archetype:generate
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 1048576 bytes for E in C:\jdk7u2_64p\jdk7u4\hotspot\src\share\vm\utilities/taskqueue.hpp
# An error report file with more information is saved as:
# Z:\\hs_err_pid4356.log
===========================================
===========================================

将eclipse 关掉后,就顺利的能用了

#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 1048576 bytes for E in C:\jdk7u2_64p\jdk7u4\hotspot\src\share\vm\utilities/taskqueue.hpp
# 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 (memory/allocation.inline.hpp:58), pid=4356, tid=4264
#
# JRE version: 7.0_04-b20
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.0-b21 mixed mode windows-amd64 compressed oops)
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#

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

Current thread (0x000000000270d800):  JavaThread "Unknown thread" [_thread_in_vm, id=4264, stack(0x0000000002890000,0x0000000002990000)]

Stack: [0x0000000002890000,0x0000000002990000]

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

Java Threads: ( => current thread )

Other Threads:

=>0x000000000270d800 (exited) JavaThread "Unknown thread" [_thread_in_vm, id=4264, stack(0x0000000002890000,0x0000000002990000)]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 PSYoungGen      total 18624K, used 320K [0x00000000eb360000, 0x00000000ec820000, 0x0000000000000000)
  eden space 16000K, 2% used [0x00000000eb360000,0x00000000eb3b0070,0x00000000ec300000)
  from space 2624K, 0% used [0x00000000ec590000,0x00000000ec590000,0x00000000ec820000)
  to   space 2624K, 0% used [0x00000000ec300000,0x00000000ec300000,0x00000000ec590000)
 ParOldGen       total 42560K, used 0K [0x00000000c1a00000, 0x00000000c4390000, 0x00000000eb360000)
  object space 42560K, 0% used [0x00000000c1a00000,0x00000000c1a00000,0x00000000c4390000)
 PSPermGen       total 21248K, used 694K [0x00000000bc800000, 0x00000000bdcc0000, 0x00000000c1a00000)
  object space 21248K, 3% used [0x00000000bc800000,0x00000000bc8adb90,0x00000000bdcc0000)

Code Cache  [0x0000000002a70000, 0x0000000002ce0000, 0x0000000005a70000)
 total_blobs=39 nmethods=0 adapters=20 free_code_cache=48889Kb largest_free_block=50062912

Compilation events (0 events):
No events

GC Heap History (0 events):
No events

Deoptimization events (0 events):
No events

Internal exceptions (0 events):
No events

Events (10 events):
Event: 0.023 loading class 0x000000000273c180
Event: 0.023 loading class 0x000000000273c180 done
Event: 0.023 loading class 0x000000000273c1e0
Event: 0.023 loading class 0x000000000273c1e0 done
Event: 0.023 loading class 0x000000000273c210
Event: 0.023 loading class 0x000000000273c210 done
Event: 0.024 loading class 0x0000000002739f00
Event: 0.024 loading class 0x0000000002739f00 done
Event: 0.024 loading class 0x0000000002739ac0
Event: 0.024 loading class 0x0000000002739ac0 done


Dynamic libraries:
0x000000003f330000 - 0x000000003f363000 C:\Program Files\Java\jdk1.7.0_04\bin\java.exe
0x0000000076ee0000 - 0x0000000077089000 C:\Windows\SYSTEM32\ntdll.dll
0x0000000076cc0000 - 0x0000000076ddf000 C:\Windows\system32\kernel32.dll
0x00000000fcf40000 - 0x00000000fcfac000 C:\Windows\system32\KERNELBASE.dll
0x00000000fd4c0000 - 0x00000000fd59b000 C:\Windows\system32\ADVAPI32.dll
0x00000000feea0000 - 0x00000000fef3f000 C:\Windows\system32\msvcrt.dll
0x00000000fd420000 - 0x00000000fd43f000 C:\Windows\SYSTEM32\sechost.dll
0x00000000fe760000 - 0x00000000fe88d000 C:\Windows\system32\RPCRT4.dll
0x0000000076de0000 - 0x0000000076eda000 C:\Windows\system32\USER32.dll
0x00000000fef50000 - 0x00000000fefb7000 C:\Windows\system32\GDI32.dll
0x00000000fef40000 - 0x00000000fef4e000 C:\Windows\system32\LPK.dll
0x00000000feb40000 - 0x00000000fec09000 C:\Windows\system32\USP10.dll
0x00000000fb340000 - 0x00000000fb534000 C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_fa396087175ac9ac\COMCTL32.dll
0x00000000fd440000 - 0x00000000fd4b1000 C:\Windows\system32\SHLWAPI.dll
0x00000000fee70000 - 0x00000000fee9e000 C:\Windows\system32\IMM32.DLL
0x00000000fe890000 - 0x00000000fe999000 C:\Windows\system32\MSCTF.dll
0x0000000080000000 - 0x00000000800d4000 C:\Program Files (x86)\MacType\MacType64.dll
0x00000000f39f0000 - 0x00000000f3a10000 C:\Program Files (x86)\MacType\EasyHK64.dll
0x00000000770b0000 - 0x00000000770b7000 C:\Windows\system32\PSAPI.DLL
0x00000000f3840000 - 0x00000000f39be000 C:\Windows\system32\dwrite.dll
0x000000006ddc0000 - 0x000000006de91000 C:\Program Files\Java\jdk1.7.0_04\jre\bin\msvcr100.dll
0x0000000069a80000 - 0x000000006a19a000 C:\Program Files\Java\jdk1.7.0_04\jre\bin\server\jvm.dll
0x00000000fc0e0000 - 0x00000000fc0e9000 C:\Windows\system32\WSOCK32.dll
0x0000000000400000 - 0x000000000044d000 C:\Windows\system32\WS2_32.dll
0x00000000fd200000 - 0x00000000fd208000 C:\Windows\system32\NSI.dll
0x00000000fab40000 - 0x00000000fab7b000 C:\Windows\system32\WINMM.dll
0x0000000070830000 - 0x000000007083f000 C:\Program Files\Java\jdk1.7.0_04\jre\bin\verify.dll
0x0000000070800000 - 0x0000000070828000 C:\Program Files\Java\jdk1.7.0_04\jre\bin\java.dll
0x0000000070680000 - 0x0000000070695000 C:\Program Files\Java\jdk1.7.0_04\jre\bin\zip.dll

VM Arguments:
jvm_args: -Dclassworlds.conf=d:\dev\java\mvn\bin\..\bin\m2.conf -Dmaven.home=d:\dev\java\mvn\bin\.. 
java_command: org.codehaus.plexus.classworlds.launcher.Launcher archetype:generate
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=C:\Program Files\Java\jdk1.7.0_04
PATH=C:\Program Files (x86)\MacType\;c:\python27;c:\ora\ora11\bin;C:\oracle\instantclient_11_2;C:\Program Files\Java\jdk1.7.0_04\bin;d:\dev\java\mvn\bin;D:\extpath;D:\dev\scm\git\script;C:\RailsInstaller\Ruby1.9.3\bin;d:\php;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\EmEditor;C:\Program Files (x86)\MacType;c:\git\cmd;c:\git\bin;C:\Program Files\TortoiseGit\bin;C:\Program Files\SlikSvn\bin;C:\Program Files\TortoiseSVN\bin
USERNAME=Administrator
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 23 Stepping 10, GenuineIntel



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

OS: Windows 7 , 64 bit Build 7601 Service Pack 1

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, tsc

Memory: 4k page, physical 4082712k(1273800k free), swap 4605152k(5032k free)

vm_info: Java HotSpot(TM) 64-Bit Server VM (23.0-b21) for windows-amd64 JRE (1.7.0_04-b20), built on Apr 12 2012 02:28:20 by "java_re" with unknown MS VC++:1600

time: Wed May 23 09:48:52 2012
elapsed time: 0 seconds

加载中
0
ddatsh
ddatsh

呃,暂时发现好像是 VM参数大小写错了

 

返回顶部
顶部