启动 nexus 报错

There is insufficient memory for the Java Runtime Environment to continue.

Native memory allocation (mmap) failed to map 1890582528 bytes for committing reserved memory.

Possible reasons:

The system is out of physical RAM or swap space

The process is running with CompressedOops enabled, and the Java Heap may be blocking the growth of the native heap

Possible solutions:

Reduce memory load on the system

Increase physical memory or swap space

Check if swap backing store is full

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:2749), pid=17295, tid=0x00007f206adf9700

JRE version: (8.0_221-b11) (build )

Java VM: Java HotSpot(TM) 64-Bit Server VM (25.221-b11 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 (0x00007f206400b000): JavaThread "Unknown thread" [_thread_in_vm, id=17296, stack(0x00007f206acfa000,0x00007f206adfa000)]

Stack: [0x00007f206acfa000,0x00007f206adfa000], sp=0x00007f206adf8590, free space=1017k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0xad3455] VMError::report_and_die()+0x2e5
V [libjvm.so+0x4e0537] report_vm_out_of_memory(char const, int, unsigned long, VMErrorType, char const)+0x67
V [libjvm.so+0x910320] os::pd_commit_memory(char*, unsigned long, unsigned long, bool)+0x100
V [libjvm.so+0x90794f] os::commit_memory(char*, unsigned long, unsigned long, bool)+0x1f
V [libjvm.so+0x98c736] PSVirtualSpace::expand_by(unsigned long)+0x56
V [libjvm.so+0x97cfec] PSOldGen::initialize(ReservedSpace, unsigned long, char const*, int)+0x8c
V [libjvm.so+0x2bd00e] AdjoiningGenerations::AdjoiningGenerations(ReservedSpace, GenerationSizer*, unsigned long)+0x2fe
V [libjvm.so+0x93ac62] ParallelScavengeHeap::initialize()+0x222
V [libjvm.so+0xa9707a] Universe::initialize_heap()+0x16a
V [libjvm.so+0xa97363] universe_init()+0x33
V [libjvm.so+0x6321a0] init_globals()+0x50
V [libjvm.so+0xa79a99] Threads::create_vm(JavaVMInitArgs, bool)+0x409
V [libjvm.so+0x6d7d1f] JNI_CreateJavaVM+0x4f
C [libjli.so+0x7ee4] JavaMain+0x84
C [libpthread.so.0+0x7dd5] start_thread+0xc5

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

Java Threads: ( => current thread )

Other Threads:

=>0x00007f206400b000 (exited) JavaThread "Unknown thread" [_thread_in_vm, id=17296, stack(0x00007f206acfa000,0x00007f206adfa000)]

VM state:not at safepoint (not fully initialized)

VM Mutex/Monitor currently owned by a thread: None

heap address: 0x0000000717000000, size: 2704 MB, Compressed Oops mode: Non-zero based:0x0000000716fff000, Oop shift amount: 3
Narrow klass base: 0x0000000000000000, Narrow klass shift: 0

GC Heap History (0 events):
No events

Deoptimization events (0 events):
No events

Classes redefined (0 events):
No events

Internal exceptions (0 events):
No events

Events (0 events):
No events

Dynamic libraries:
00400000-00401000 r-xp 00000000 fd:01 265718 /usr/local/jdk1.8.0_221/bin/java
00600000-00601000 r--p 00000000 fd:01 265718 /usr/local/jdk1.8.0_221/bin/java
00601000-00602000 rw-p 00001000 fd:01 265718 /usr/local/jdk1.8.0_221/bin/java
01ec7000-01ee8000 rw-p 00000000 00:00 0 [heap]
787b00000-7c0000000 rw-p 00000000 00:00 0
7f2054822000-7f2054ab7000 rw-p 00000000 00:00 0
7f2054ab7000-7f2054e3c000 ---p 00000000 00:00 0
7f2054e3c000-7f2055000000 rw-p 00000000 00:00 0
7f2055000000-7f2055270000 rwxp 00000000 00:00 0
7f2055270000-7f2064000000 ---p 00000000 00:00 0
7f2064000000-7f2064034000 rw-p 00000000 00:00 0
7f2064034000-7f2068000000 ---p 00000000 00:00 0
7f20680c0000-7f20680ca000 rw-p 00000000 00:00 0
7f20680ca000-7f2068480000 ---p 00000000 00:00 0
7f2068480000-7f206849b000 r-xp 00000000 fd:01 395893 /usr/local/jdk1.8.0_221/jre/lib/amd64/libzip.so
7f206849b000-7f206869a000 ---p 0001b000 fd:01 395893 /usr/local/jdk1.8.0_221/jre/lib/amd64/libzip.so
7f206869a000-7f206869b000 r--p 0001a000 fd:01 395893 /usr/local/jdk1.8.0_221/jre/lib/amd64/libzip.so
7f206869b000-7f206869c000 rw-p 0001b000 fd:01 395893 /usr/local/jdk1.8.0_221/jre/lib/amd64/libzip.so
7f206869c000-7f20686a8000 r-xp 00000000 fd:01 134819 /usr/lib64/libnss_files-2.17.so
7f20686a8000-7f20688a7000 ---p 0000c000 fd:01 134819 /usr/lib64/libnss_files-2.17.so
7f20688a7000-7f20688a8000 r--p 0000b000 fd:01 134819 /usr/lib64/libnss_files-2.17.so
7f20688a8000-7f20688a9000 rw-p 0000c000 fd:01 134819 /usr/lib64/libnss_files-2.17.so
7f20688a9000-7f20688af000 rw-p 00000000 00:00 0
7f20688af000-7f20688db000 r-xp 00000000 fd:01 395884 /usr/local/jdk1.8.0_221/jre/lib/amd64/libjava.so
7f20688db000-7f2068adb000 ---p 0002c000 fd:01 395884 /usr/local/jdk1.8.0_221/jre/lib/amd64/libjava.so
7f2068adb000-7f2068adc000 r--p 0002c000 fd:01 395884 /usr/local/jdk1.8.0_221/jre/lib/amd64/libjava.so
7f2068adc000-7f2068ade000 rw-p 0002d000 fd:01 395884 /usr/local/jdk1.8.0_221/jre/lib/amd64/libjava.so
7f2068ade000-7f2068aeb000 r-xp 00000000 fd:01 395875 /usr/local/jdk1.8.0_221/jre/lib/amd64/libverify.so
7f2068aeb000-7f2068cea000 ---p 0000d000 fd:01 395875 /usr/local/jdk1.8.0_221/jre/lib/amd64/libverify.so
7f2068cea000-7f2068cec000 r--p 0000c000 fd:01 395875 /usr/local/jdk1.8.0_221/jre/lib/amd64/libverify.so
7f2068cec000-7f2068ced000 rw-p 0000e000 fd:01 395875 /usr/local/jdk1.8.0_221/jre/lib/amd64/libverify.so
7f2068ced000-7f2068cf4000 r-xp 00000000 fd:01 134831 /usr/lib64/librt-2.17.so
7f2068cf4000-7f2068ef3000 ---p 00007000 fd:01 134831 /usr/lib64/librt-2.17.so
7f2068ef3000-7f2068ef4000 r--p 00006000 fd:01 134831 /usr/lib64/librt-2.17.so
7f2068ef4000-7f2068ef5000 rw-p 00007000 fd:01 134831 /usr/lib64/librt-2.17.so
7f2068ef5000-7f2068ff6000 r-xp 00000000 fd:01 134809 /usr/lib64/libm-2.17.so
7f2068ff6000-7f20691f5000 ---p 00101000 fd:01 134809 /usr/lib64/libm-2.17.so
7f20691f5000-7f20691f6000 r--p 00100000 fd:01 134809 /usr/lib64/libm-2.17.so
7f20691f6000-7f20691f7000 rw-p 00101000 fd:01 134809 /usr/lib64/libm-2.17.so
7f20691f7000-7f2069edf000 r-xp 00000000 fd:01 395891 /usr/local/jdk1.8.0_221/jre/lib/amd64/server/libjvm.so
7f2069edf000-7f206a0de000 ---p 00ce8000 fd:01 395891 /usr/local/jdk1.8.0_221/jre/lib/amd64/server/libjvm.so
7f206a0de000-7f206a174000 r--p 00ce7000 fd:01 395891 /usr/local/jdk1.8.0_221/jre/lib/amd64/server/libjvm.so
7f206a174000-7f206a1a5000 rw-p 00d7d000 fd:01 395891 /usr/local/jdk1.8.0_221/jre/lib/amd64/server/libjvm.so
7f206a1a5000-7f206a1e0000 rw-p 00000000 00:00 0
7f206a1e0000-7f206a3a2000 r-xp 00000000 fd:01 134801 /usr/lib64/libc-2.17.so
7f206a3a2000-7f206a5a2000 ---p 001c2000 fd:01 134801 /usr/lib64/libc-2.17.so
7f206a5a2000-7f206a5a6000 r--p 001c2000 fd:01 134801 /usr/lib64/libc-2.17.so
7f206a5a6000-7f206a5a8000 rw-p 001c6000 fd:01 134801 /usr/lib64/libc-2.17.so
7f206a5a8000-7f206a5ad000 rw-p 00000000 00:00 0
7f206a5ad000-7f206a5af000 r-xp 00000000 fd:01 134807 /usr/lib64/libdl-2.17.so
7f206a5af000-7f206a7af000 ---p 00002000 fd:01 134807 /usr/lib64/libdl-2.17.so
7f206a7af000-7f206a7b0000 r--p 00002000 fd:01 134807 /usr/lib64/libdl-2.17.so
7f206a7b0000-7f206a7b1000 rw-p 00003000 fd:01 134807 /usr/lib64/libdl-2.17.so
7f206a7b1000-7f206a7c8000 r-xp 00000000 fd:01 394998 /usr/local/jdk1.8.0_221/lib/amd64/jli/libjli.so
7f206a7c8000-7f206a9c7000 ---p 00017000 fd:01 394998 /usr/local/jdk1.8.0_221/lib/amd64/jli/libjli.so
7f206a9c7000-7f206a9c8000 r--p 00016000 fd:01 394998 /usr/local/jdk1.8.0_221/lib/amd64/jli/libjli.so
7f206a9c8000-7f206a9c9000 rw-p 00017000 fd:01 394998 /usr/local/jdk1.8.0_221/lib/amd64/jli/libjli.so
7f206a9c9000-7f206a9e0000 r-xp 00000000 fd:01 134827 /usr/lib64/libpthread-2.17.so
7f206a9e0000-7f206abdf000 ---p 00017000 fd:01 134827 /usr/lib64/libpthread-2.17.so
7f206abdf000-7f206abe0000 r--p 00016000 fd:01 134827 /usr/lib64/libpthread-2.17.so
7f206abe0000-7f206abe1000 rw-p 00017000 fd:01 134827 /usr/lib64/libpthread-2.17.so
7f206abe1000-7f206abe5000 rw-p 00000000 00:00 0
7f206abe5000-7f206ac07000 r-xp 00000000 fd:01 134390 /usr/lib64/ld-2.17.so
7f206acf1000-7f206acf9000 rw-s 00000000 fd:01 265888 /tmp/hsperfdata_nexus/17295
7f206acf9000-7f206acfd000 ---p 00000000 00:00 0
7f206acfd000-7f206adfe000 rw-p 00000000 00:00 0
7f206adff000-7f206ae04000 rw-p 00000000 00:00 0
7f206ae04000-7f206ae05000 r--p 00000000 00:00 0
7f206ae05000-7f206ae06000 rw-p 00000000 00:00 0
7f206ae06000-7f206ae07000 r--p 00021000 fd:01 134390 /usr/lib64/ld-2.17.so
7f206ae07000-7f206ae08000 rw-p 00022000 fd:01 134390 /usr/lib64/ld-2.17.so
7f206ae08000-7f206ae09000 rw-p 00000000 00:00 0
7fff51bc5000-7fff51be6000 rw-p 00000000 00:00 0 [stack]
7fff51bf3000-7fff51bf5000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]

VM Arguments:
jvm_args: -Dinstall4j.jvmDir=/usr/local/jdk1.8.0_221 -Dexe4j.moduleName=/usr/local/nexus-3.18.1-01/bin/nexus -XX:+UnlockDiagnosticVMOptions -Dinstall4j.launcherId=245 -Dinstall4j.swt=false -Di4jv=0 -Di4jv=0 -Di4jv=0 -Di4jv=0 -Di4jv=0 -Xms2703m -Xmx2703m -XX:MaxDirectMemorySize=2703m -XX:+UnlockDiagnosticVMOptions -XX:+UnsyncloadClass -XX:+LogVMOutput -XX:LogFile=../sonatype-work/nexus3/log/jvm.log -XX:-OmitStackTraceInFastThrow -Djava.net.preferIPv4Stack=true -Dkaraf.home=. -Dkaraf.base=. -Dkaraf.etc=etc/karaf -Djava.util.logging.config.file=etc/karaf/java.util.logging.properties -Dkaraf.data=../sonatype-work/nexus3 -Djava.io.tmpdir=../sonatype-work/nexus3/tmp -Dkaraf.startLocalConsole=false -Di4j.vpt=true
java_command: com.install4j.runtime.launcher.UnixLauncher start 9d17dc87 0 0 org.sonatype.nexus.karaf.NexusMain
java_class_path (initial): /usr/local/nexus-3.18.1-01/.install4j/i4jruntime.jar:/usr/local/nexus-3.18.1-01/lib/boot/nexus-main.jar:/usr/local/nexus-3.18.1-01/lib/boot/org.apache.karaf.main-4.0.9.jar:/usr/local/nexus-3.18.1-01/lib/boot/org.osgi.core-6.0.0.jar:/usr/local/nexus-3.18.1-01/lib/boot/org.apache.karaf.diagnostic.boot-4.0.9.jar:/usr/local/nexus-3.18.1-01/lib/boot/org.apache.karaf.jaas.boot-4.0.9.jar
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=/usr/local/jdk1.8.0_221
CLASSPATH=.:/usr/local/jdk1.8.0_221/jre/lib/rt.jar:/usr/local/jdk1.8.0_221/lib/dt.jar:/usr/local/jdk1.8.0_221/lib/tools.jar
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/local/jdk1.8.0_221/bin:/root/bin
LD_LIBRARY_PATH=/usr/local/nexus-3.18.1-01/lib:
SHELL=/bin/bash
DYLD_LIBRARY_PATH=/usr/local/nexus-3.18.1-01/lib:

Signal Handlers:
SIGSEGV: [libjvm.so+0xad3d90], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGBUS: [libjvm.so+0xad3d90], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGFPE: [libjvm.so+0x90b8b0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGPIPE: [libjvm.so+0x90b8b0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGXFSZ: [libjvm.so+0x90b8b0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGILL: [libjvm.so+0x90b8b0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGUSR1: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none
SIGUSR2: [libjvm.so+0x90b780], 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:CentOS Linux release 7.5.1804 (Core)

uname:Linux 3.10.0-957.12.2.el7.x86_64 #1 SMP Tue May 14 21:24:32 UTC 2019 x86_64
libc:glibc 2.17 NPTL 2.17
rlimit: STACK 8192k, CORE 0k, NPROC 4096, NOFILE 65535, AS infinity
load average:0.00 0.01 0.05

/proc/meminfo:
MemTotal: 2046924 kB
MemFree: 74372 kB
MemAvailable: 1094708 kB
Buffers: 68504 kB
Cached: 1078072 kB
SwapCached: 0 kB
Active: 1291136 kB
Inactive: 550684 kB
Active(anon): 707268 kB
Inactive(anon): 21236 kB
Active(file): 583868 kB
Inactive(file): 529448 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 168 kB
Writeback: 0 kB
AnonPages: 695248 kB
Mapped: 62588 kB
Shmem: 33252 kB
Slab: 90872 kB
SReclaimable: 77656 kB
SUnreclaim: 13216 kB
KernelStack: 3344 kB
PageTables: 7460 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 1023460 kB
Committed_AS: 2171008 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 10556 kB
VmallocChunk: 34359719676 kB
HardwareCorrupted: 0 kB
AnonHugePages: 319488 kB
CmaTotal: 0 kB
CmaFree: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 59248 kB
DirectMap2M: 2037760 kB
DirectMap1G: 0 kB

container (cgroup) information:
container_type: cgroupv1
cpu_cpuset_cpus: 0-1
cpu_memory_nodes: 0
active_processor_count: 2
cpu_quota: -1
cpu_period: 100000
cpu_shares: -1
memory_limit_in_bytes: -1
memory_and_swap_limit_in_bytes: -1
memory_soft_limit_in_bytes: -1
memory_usage_in_bytes: 1886212096
memory_max_usage_in_bytes: 0

CPU:total 2 (initial active 2) (1 cores per cpu, 2 threads per core) family 6 model 85 stepping 4, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, rtm, 3dnowpref, lzcnt, ht, tsc, bmi1, bmi2, adx

/proc/cpuinfo:
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 85
model name : Intel(R) Xeon(R) Gold 6148 CPU @ 2.40GHz
stepping : 4
microcode : 0x1
cpu MHz : 2400.000
cache size : 28160 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 1
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl 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 ibrs ibpb fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f rdseed adx smap clflushopt clwb avx512cd xsaveopt xsavec xgetbv1 arat spec_ctrl
bogomips : 4800.00
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 85
model name : Intel(R) Xeon(R) Gold 6148 CPU @ 2.40GHz
stepping : 4
microcode : 0x1
cpu MHz : 2400.000
cache size : 28160 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 1
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl 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 ibrs ibpb fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f rdseed adx smap clflushopt clwb avx512cd xsaveopt xsavec xgetbv1 arat spec_ctrl
bogomips : 4800.00
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:

Memory: 4k page, physical 2046924k(74372k free), swap 0k(0k free)

vm_info: Java HotSpot(TM) 64-Bit Server VM (25.221-b11) for linux-amd64 JRE (1.8.0_221-b11), built on Jul 4 2019 04:27:00 by "java_re" with gcc 7.3.0

time: Wed Aug 14 10:52:40 2019
timezone: CST
elapsed time: 0 seconds (0d 0h 0m 0s)### 问题描述

问题出现的平台版本及自己尝试过哪些方法

相关代码

// 请把代码文本粘贴到下方(请勿用图片代替代码)

你期待的结果是什么?实际看到的错误信息又是什么?

阅读 1.2k
评论
    0 个回答
    撰写回答

    登录后参与交流、获取后续更新提醒

    相似问题
    推荐文章