❶错误日志:stdout.log、hs_err_pid4450.log
stdout.log
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: UseCMSCompactAtFullCollection is deprecated and will likely be removed in a future release.
Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000090000000, 1879048192, 0) failed; error='Cannot allocate memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 1879048192 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /usr/local/dubbo/message/hs_err_pid4450.log
hs_err_pid4450.log
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 1879048192 bytes for committing reserved memory.
# 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 (os_linux.cpp:2627), pid=4450, tid=139975557547776
#
# JRE version: (8.0_73-b02) (build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.73-b02 mixed mode linux-amd64 compressed oops)
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
--------------- T H R E A D ---------------
Current thread (0x00007f4e9000a800): JavaThread "Unknown thread" [_thread_in_vm, id=4452, stack(0x00007f4e995e8000,0x00007f4e99629000)]
Stack: [0x00007f4e995e8000,0x00007f4e99629000], sp=0x00007f4e99627360, free space=252k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0xaba71a] VMError::report_and_die()+0x2ba
V [libjvm.so+0x4f9ecb] report_vm_out_of_memory(char const*, int, unsigned long, VMErrorType, char const*)+0x8b
V [libjvm.so+0x91b553] os::Linux::commit_memory_impl(char*, unsigned long, bool)+0x103
V [libjvm.so+0x91baa9] os::pd_commit_memory(char*, unsigned long, unsigned long, bool)+0x29
V [libjvm.so+0x915dba] os::commit_memory(char*, unsigned long, unsigned long, bool)+0x2a
V [libjvm.so+0xab6479] VirtualSpace::expand_by(unsigned long, bool)+0x199
V [libjvm.so+0xab6fce] VirtualSpace::initialize(ReservedSpace, unsigned long)+0xee
V [libjvm.so+0x5f72f1] CardGeneration::CardGeneration(ReservedSpace, unsigned long, int, GenRemSet*)+0xf1
V [libjvm.so+0x4e34ae] ConcurrentMarkSweepGeneration::ConcurrentMarkSweepGeneration(ReservedSpace, unsigned long, int, CardTableRS*, bool, FreeBlockDictionary<FreeChunk>::DictionaryChoice)+0x4e
V [libjvm.so+0x5f83b2] GenerationSpec::init(ReservedSpace, int, GenRemSet*)+0xf2
V [libjvm.so+0x5e709e] GenCollectedHeap::initialize()+0x1de
V [libjvm.so+0xa82f4b] Universe::initialize_heap()+0xfb
V [libjvm.so+0xa832be] universe_init()+0x3e
V [libjvm.so+0x639305] init_globals()+0x65
V [libjvm.so+0xa674be] Threads::create_vm(JavaVMInitArgs*, bool*)+0x23e
V [libjvm.so+0x6cd824] JNI_CreateJavaVM+0x74
C [libjli.so+0x745e] JavaMain+0x9e
C [libpthread.so.0+0x76ba] start_thread+0xca
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
Other Threads:
=>0x00007f4e9000a800 (exited) JavaThread "Unknown thread" [_thread_in_vm, id=4452, stack(0x00007f4e995e8000,0x00007f4e99629000)]
VM state:not at safepoint (not fully initialized)
VM Mutex/Monitor currently owned by a thread: None
GC Heap History (0 events):
No events
Deoptimization events (0 events):
No events
Internal exceptions (0 events):
No events
Events (0 events):
No events
Dynamic libraries:
00400000-00401000 r-xp 00000000 08:0a 131404 /usr/local/jdk/bin/java
00600000-00601000 rw-p 00000000 08:0a 131404 /usr/local/jdk/bin/java
0112f000-01150000 rw-p 00000000 00:00 0 [heap]
80000000-90000000 rw-p 00000000 00:00 0
7f4e81000000-7f4e81270000 rwxp 00000000 00:00 0
7f4e81270000-7f4e90000000 ---p 00000000 00:00 0
7f4e90000000-7f4e90039000 rw-p 00000000 00:00 0
7f4e90039000-7f4e94000000 ---p 00000000 00:00 0
7f4e95b41000-7f4e95f47000 rw-p 00000000 00:00 0
7f4e95f47000-7f4e962c7000 ---p 00000000 00:00 0
7f4e962c7000-7f4e962d2000 rw-p 00000000 00:00 0
7f4e962d2000-7f4e96688000 ---p 00000000 00:00 0
7f4e96688000-7f4e966a2000 r-xp 00000000 08:0a 131509 /usr/local/jdk/jre/lib/amd64/libzip.so
7f4e966a2000-7f4e968a2000 ---p 0001a000 08:0a 131509 /usr/local/jdk/jre/lib/amd64/libzip.so
7f4e968a2000-7f4e968a3000 rw-p 0001a000 08:0a 131509 /usr/local/jdk/jre/lib/amd64/libzip.so
7f4e968a3000-7f4e968ae000 r-xp 00000000 08:01 8593 /lib/x86_64-linux-gnu/libnss_files-2.23.so
7f4e968ae000-7f4e96aad000 ---p 0000b000 08:01 8593 /lib/x86_64-linux-gnu/libnss_files-2.23.so
7f4e96aad000-7f4e96aae000 r--p 0000a000 08:01 8593 /lib/x86_64-linux-gnu/libnss_files-2.23.so
7f4e96aae000-7f4e96aaf000 rw-p 0000b000 08:01 8593 /lib/x86_64-linux-gnu/libnss_files-2.23.so
7f4e96aaf000-7f4e96ab5000 rw-p 00000000 00:00 0
7f4e96ab5000-7f4e96ac0000 r-xp 00000000 08:01 8754 /lib/x86_64-linux-gnu/libnss_nis-2.23.so
7f4e96ac0000-7f4e96cbf000 ---p 0000b000 08:01 8754 /lib/x86_64-linux-gnu/libnss_nis-2.23.so
7f4e96cbf000-7f4e96cc0000 r--p 0000a000 08:01 8754 /lib/x86_64-linux-gnu/libnss_nis-2.23.so
7f4e96cc0000-7f4e96cc1000 rw-p 0000b000 08:01 8754 /lib/x86_64-linux-gnu/libnss_nis-2.23.so
7f4e96cc1000-7f4e96cd7000 r-xp 00000000 08:01 8357 /lib/x86_64-linux-gnu/libnsl-2.23.so
7f4e96cd7000-7f4e96ed6000 ---p 00016000 08:01 8357 /lib/x86_64-linux-gnu/libnsl-2.23.so
7f4e96ed6000-7f4e96ed7000 r--p 00015000 08:01 8357 /lib/x86_64-linux-gnu/libnsl-2.23.so
7f4e96ed7000-7f4e96ed8000 rw-p 00016000 08:01 8357 /lib/x86_64-linux-gnu/libnsl-2.23.so
7f4e96ed8000-7f4e96eda000 rw-p 00000000 00:00 0
7f4e96eda000-7f4e96ee2000 r-xp 00000000 08:01 8368 /lib/x86_64-linux-gnu/libnss_compat-2.23.so
7f4e96ee2000-7f4e970e1000 ---p 00008000 08:01 8368 /lib/x86_64-linux-gnu/libnss_compat-2.23.so
7f4e970e1000-7f4e970e2000 r--p 00007000 08:01 8368 /lib/x86_64-linux-gnu/libnss_compat-2.23.so
7f4e970e2000-7f4e970e3000 rw-p 00008000 08:01 8368 /lib/x86_64-linux-gnu/libnss_compat-2.23.so
7f4e970e3000-7f4e9710d000 r-xp 00000000 08:0a 131535 /usr/local/jdk/jre/lib/amd64/libjava.so
7f4e9710d000-7f4e9730d000 ---p 0002a000 08:0a 131535 /usr/local/jdk/jre/lib/amd64/libjava.so
7f4e9730d000-7f4e9730f000 rw-p 0002a000 08:0a 131535 /usr/local/jdk/jre/lib/amd64/libjava.so
7f4e9730f000-7f4e9731c000 r-xp 00000000 08:0a 131489 /usr/local/jdk/jre/lib/amd64/libverify.so
7f4e9731c000-7f4e9751c000 ---p 0000d000 08:0a 131489 /usr/local/jdk/jre/lib/amd64/libverify.so
7f4e9751c000-7f4e9751e000 rw-p 0000d000 08:0a 131489 /usr/local/jdk/jre/lib/amd64/libverify.so
7f4e9751e000-7f4e97525000 r-xp 00000000 08:01 8790 /lib/x86_64-linux-gnu/librt-2.23.so
7f4e97525000-7f4e97724000 ---p 00007000 08:01 8790 /lib/x86_64-linux-gnu/librt-2.23.so
7f4e97724000-7f4e97725000 r--p 00006000 08:01 8790 /lib/x86_64-linux-gnu/librt-2.23.so
7f4e97725000-7f4e97726000 rw-p 00007000 08:01 8790 /lib/x86_64-linux-gnu/librt-2.23.so
7f4e97726000-7f4e9782e000 r-xp 00000000 08:01 8356 /lib/x86_64-linux-gnu/libm-2.23.so
7f4e9782e000-7f4e97a2d000 ---p 00108000 08:01 8356 /lib/x86_64-linux-gnu/libm-2.23.so
7f4e97a2d000-7f4e97a2e000 r--p 00107000 08:01 8356 /lib/x86_64-linux-gnu/libm-2.23.so
7f4e97a2e000-7f4e97a2f000 rw-p 00108000 08:01 8356 /lib/x86_64-linux-gnu/libm-2.23.so
7f4e97a2f000-7f4e986ee000 r-xp 00000000 08:0a 131539 /usr/local/jdk/jre/lib/amd64/server/libjvm.so
7f4e986ee000-7f4e988ed000 ---p 00cbf000 08:0a 131539 /usr/local/jdk/jre/lib/amd64/server/libjvm.so
7f4e988ed000-7f4e989c6000 rw-p 00cbe000 08:0a 131539 /usr/local/jdk/jre/lib/amd64/server/libjvm.so
7f4e989c6000-7f4e98a0f000 rw-p 00000000 00:00 0
7f4e98a0f000-7f4e98bcf000 r-xp 00000000 08:01 8360 /lib/x86_64-linux-gnu/libc-2.23.so
7f4e98bcf000-7f4e98dcf000 ---p 001c0000 08:01 8360 /lib/x86_64-linux-gnu/libc-2.23.so
7f4e98dcf000-7f4e98dd3000 r--p 001c0000 08:01 8360 /lib/x86_64-linux-gnu/libc-2.23.so
7f4e98dd3000-7f4e98dd5000 rw-p 001c4000 08:01 8360 /lib/x86_64-linux-gnu/libc-2.23.so
7f4e98dd5000-7f4e98dd9000 rw-p 00000000 00:00 0
7f4e98dd9000-7f4e98ddc000 r-xp 00000000 08:01 8362 /lib/x86_64-linux-gnu/libdl-2.23.so
7f4e98ddc000-7f4e98fdb000 ---p 00003000 08:01 8362 /lib/x86_64-linux-gnu/libdl-2.23.so
7f4e98fdb000-7f4e98fdc000 r--p 00002000 08:01 8362 /lib/x86_64-linux-gnu/libdl-2.23.so
7f4e98fdc000-7f4e98fdd000 rw-p 00003000 08:01 8362 /lib/x86_64-linux-gnu/libdl-2.23.so
7f4e98fdd000-7f4e98ff2000 r-xp 00000000 08:0a 130623 /usr/local/jdk/lib/amd64/jli/libjli.so
7f4e98ff2000-7f4e991f2000 ---p 00015000 08:0a 130623 /usr/local/jdk/lib/amd64/jli/libjli.so
7f4e991f2000-7f4e991f3000 rw-p 00015000 08:0a 130623 /usr/local/jdk/lib/amd64/jli/libjli.so
7f4e991f3000-7f4e9920b000 r-xp 00000000 08:01 8359 /lib/x86_64-linux-gnu/libpthread-2.23.so
7f4e9920b000-7f4e9940a000 ---p 00018000 08:01 8359 /lib/x86_64-linux-gnu/libpthread-2.23.so
7f4e9940a000-7f4e9940b000 r--p 00017000 08:01 8359 /lib/x86_64-linux-gnu/libpthread-2.23.so
7f4e9940b000-7f4e9940c000 rw-p 00018000 08:01 8359 /lib/x86_64-linux-gnu/libpthread-2.23.so
7f4e9940c000-7f4e99410000 rw-p 00000000 00:00 0
7f4e99410000-7f4e99436000 r-xp 00000000 08:01 8358 /lib/x86_64-linux-gnu/ld-2.23.so
7f4e994df000-7f4e994e0000 ---p 00000000 00:00 0
7f4e994e0000-7f4e995e0000 rw-p 00000000 00:00 0
7f4e995e0000-7f4e995e8000 rw-s 00000000 08:08 22 /tmp/hsperfdata_root/4450
7f4e995e8000-7f4e995eb000 ---p 00000000 00:00 0
7f4e995eb000-7f4e9962e000 rw-p 00000000 00:00 0
7f4e99633000-7f4e99634000 rw-p 00000000 00:00 0
7f4e99634000-7f4e99635000 r--p 00000000 00:00 0
7f4e99635000-7f4e99636000 r--p 00025000 08:01 8358 /lib/x86_64-linux-gnu/ld-2.23.so
7f4e99636000-7f4e99637000 rw-p 00026000 08:01 8358 /lib/x86_64-linux-gnu/ld-2.23.so
7f4e99637000-7f4e99638000 rw-p 00000000 00:00 0
7fff5fecc000-7fff5feed000 rw-p 00000000 00:00 0 [stack]
7fff5ff93000-7fff5ff95000 r--p 00000000 00:00 0 [vvar]
7fff5ff95000-7fff5ff97000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
VM Arguments:
jvm_args: -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -Xmx2g -Xms2g -Xmn256m -XX:PermSize=128m -Xss256k -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+UseCMSCompactAtFullCollection -XX:LargePageSizeInBytes=128m -XX:+UseFastAccessorMethods -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70
java_command: com.alibaba.dubbo.container.Main
java_class_path (initial): /usr/local/dubbo/message/conf:/usr/local/dubbo/message/lib/aspectjweaver-1.8.9.jar:/usr/local/dubbo/message/lib/commons-beanutils-1.9.3.jar:/usr/local/dubbo/message/lib/commons-collections-3.2.2.jar:/usr/local/dubbo/message/lib/commons-lang3-3.5.jar:/usr/local/dubbo/message/lib/commons-logging-1.2.jar:/usr/local/dubbo/message/lib/dubbo-2.5.3.jar:/usr/local/dubbo/message/lib/javassist-3.21.0-GA.jar:/usr/local/dubbo/message/lib/jcl-over-slf4j-1.7.22.jar:/usr/local/dubbo/message/lib/jline-0.9.94.jar:/usr/local/dubbo/message/lib/junit-3.8.1.jar:/usr/local/dubbo/message/lib/log4j-over-slf4j-1.7.22.jar:/usr/local/dubbo/message/lib/logback-classic-1.1.9.jar:/usr/local/dubbo/message/lib/logback-core-1.1.9.jar:/usr/local/dubbo/message/lib/netty-3.10.5.Final.jar:/usr/local/dubbo/message/lib/netty-3.2.5.Final.jar:/usr/local/dubbo/message/lib/netty-all-4.1.7.Final.jar:/usr/local/dubbo/message/lib/remoteapi-0.0.1-SNAPSHOT.jar:/usr/local/dubbo/message/lib/service-0.0.1-SNAPSHOT.jar:/usr/local/dubbo/message/lib/slf4j-api-1.7.22.jar:/usr/local/dubbo/message/lib/spring-aop-4.3.5.RELEASE.jar:/usr/local/dubbo/message/lib/spring-aspects-4.3.5.RELEASE.jar:/usr/local/dubbo/message/lib/spring-beans-4.3.5.RELEASE.jar:/usr/local/dubbo/message/lib/spring-context-4.3.5.RELEASE.jar:/usr/local/dubbo/message/lib/spring-context-support-4.3.5.RELEASE.jar:/usr/local/dubbo/message/lib/spring-core-4.3.5.RELEASE.jar:/usr/local/dubbo/message/lib/spring-expression-4.3.5.RELEASE.jar:/usr/local/dubbo/message/lib/zkclient-0.3.jar:/usr/local/dubbo/message/lib/zookeeper-3.4.9.jar:
Launcher Type: SUN_STANDARD
Environment Variables:
JAVA_HOME=/usr/local/jdk
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/mysql/bin:/usr/local/jdk/bin:
SHELL=/bin/bash
Signal Handlers:
SIGSEGV: [libjvm.so+0xabafa0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGBUS: [libjvm.so+0xabafa0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGFPE: [libjvm.so+0x9183c0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGPIPE: [libjvm.so+0x9183c0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGXFSZ: [libjvm.so+0x9183c0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGILL: [libjvm.so+0x9183c0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGUSR1: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none
SIGUSR2: [libjvm.so+0x9199f0], sa_mask[0]=00000000000000000000000000000000, sa_flags=SA_RESTART|SA_SIGINFO
SIGHUP: SIG_IGN, sa_mask[0]=00000000000000000000000000000000, sa_flags=none
SIGINT: SIG_IGN, sa_mask[0]=00000000000000000000000000000000, sa_flags=none
SIGTERM: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none
SIGQUIT: SIG_IGN, sa_mask[0]=00000000000000000000000000000000, sa_flags=none
--------------- S Y S T E M ---------------
OS:DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS"
uname:Linux 4.4.0-62-generic #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017 x86_64
libc:glibc 2.23 NPTL 2.23
rlimit: STACK 8192k, CORE 0k, NPROC 3743, NOFILE 65536, AS infinity
load average:0.01 0.04 0.07
/proc/meminfo:
MemTotal: 998312 kB
MemFree: 84724 kB
MemAvailable: 210672 kB
Buffers: 14252 kB
Cached: 232776 kB
SwapCached: 9800 kB
Active: 404992 kB
Inactive: 386984 kB
Active(anon): 263348 kB
Inactive(anon): 287676 kB
Active(file): 141644 kB
Inactive(file): 99308 kB
Unevictable: 3652 kB
Mlocked: 3652 kB
SwapTotal: 975868 kB
SwapFree: 938652 kB
Dirty: 164 kB
Writeback: 0 kB
AnonPages: 541008 kB
Mapped: 56252 kB
Shmem: 3648 kB
Slab: 63120 kB
SReclaimable: 25128 kB
SUnreclaim: 37992 kB
KernelStack: 7344 kB
PageTables: 5120 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 1475024 kB
Committed_AS: 1262152 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 0 kB
VmallocChunk: 0 kB
HardwareCorrupted: 0 kB
AnonHugePages: 368640 kB
CmaTotal: 0 kB
CmaFree: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 69504 kB
DirectMap2M: 978944 kB
DirectMap1G: 0 kB
CPU:total 1 (1 cores per cpu, 1 threads per core) family 6 model 158 stepping 9, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, 3dnowpref, lzcnt, tsc, tscinvbit, bmi1, bmi2, adx
/proc/cpuinfo:
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 158
model name : Intel(R) Core(TM) i7-8705G CPU @ 3.10GHz
stepping : 9
microcode : 0x8e
cpu MHz : 3096.005
cache size : 8192 KB
physical id : 0
siblings : 1
core id : 0
cpu cores : 1
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 22
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc aperfmperf eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch epb fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid rdseed adx smap xsaveopt xsavec xgetbv1 dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp
bugs :
bogomips : 6192.01
clflush size : 64
cache_alignment : 64
address sizes : 42 bits physical, 48 bits virtual
power management:
Memory: 4k page, physical 998312k(84724k free), swap 975868k(938652k free)
vm_info: Java HotSpot(TM) 64-Bit Server VM (25.73-b02) for linux-amd64 JRE (1.8.0_73-b02), built on Jan 29 2016 17:39:45 by "java_re" with gcc 4.3.0 20080428 (Red Hat 4.3.0-8)
time: Tue Feb 12 11:24:33 2019
elapsed time: 0 seconds (0d 0h 0m 0s)
❷解决:
调整start.sh文件里的部分参数
*dubbo-monitor也同理