我每次都收到一个hs_err_pid.log

时间:2019-12-08 18:28:10

标签: java out-of-memory hs-err

我的Linux Debian 8 Server充满了hs_err_pid.log 日志显示:

#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 1922564096 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=32767, tid=0x00007f8f73a36700
#
# JRE version:  (8.0_231-b11) (build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.231-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 (0x00007f8f6c00a800):  JavaThread "Unknown thread" [_thread_in_vm, id=300, stack(0x00007f8f73936000,0x00007f8f73a37000)]

Stack: [0x00007f8f73936000,0x00007f8f73a37000],  sp=0x00007f8f73a355d0,  free space=1021k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) V  [libjvm.so+0xad4455]  VMError::report_and_die()+0x2e5 V  [libjvm.so+0x4e0787]  report_vm_out_of_memory(char const*, int, unsigned long, VMErrorType, char const*)+0x67 V  [libjvm.so+0x910680]  os::pd_commit_memory(char*, unsigned long, unsigned long, bool)+0x100 V  [libjvm.so+0x907caf]  os::commit_memory(char*, unsigned long, unsigned long, bool)+0x1f V  [libjvm.so+0x98ca96]  PSVirtualSpace::expand_by(unsigned long)+0x56 V  [libjvm.so+0x97d34c]  PSOldGen::initialize(ReservedSpace, unsigned long, char const*, int)+0x8c V  [libjvm.so+0x2bd0be]  AdjoiningGenerations::AdjoiningGenerations(ReservedSpace, GenerationSizer*, unsigned long)+0x2fe V  [libjvm.so+0x93afc2]  ParallelScavengeHeap::initialize()+0x222 V  [libjvm.so+0xa9807a]  Universe::initialize_heap()+0x16a V  [libjvm.so+0xa98363]  universe_init()+0x33 V  [libjvm.so+0x632400]  init_globals()+0x50 V  [libjvm.so+0xa7aa99]  Threads::create_vm(JavaVMInitArgs*, bool*)+0x409 V  [libjvm.so+0x6d7f7f]  JNI_CreateJavaVM+0x4f C  [libjli.so+0x7ee4]  JavaMain+0x84 C  [libpthread.so.0+0x8064]  start_thread+0xc4


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

Java Threads: ( => current thread )

Other Threads:

=>0x00007f8f6c00a800 (exited) JavaThread "Unknown thread" [_thread_in_vm, id=300, stack(0x00007f8f73936000,0x00007f8f73a37000)]

VM state:not at safepoint (not fully initialized)

VM Mutex/Monitor currently owned by a thread: None

heap address: 0x0000000714200000, size: 2750 MB, Compressed Oops mode: Non-zero based:0x00000007141ff000, 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 08:03 531268        /usr/lib/jvm/jdk1.8.0_231/bin/java 00600000-00601000 r--p 00000000 08:03 531268                             /usr/lib/jvm/jdk1.8.0_231/bin/java 00601000-00602000 rw-p 00001000 08:03 531268                             /usr/lib/jvm/jdk1.8.0_231/bin/java 0243e000-0245f000 rw-p 00000000 00:00 0                                  [heap] 786b80000-7c0000000 rw-p 00000000 00:00 0  7f8f5ce63000-7f8f5d000000 rw-p 00000000 00:00 0 7f8f5d000000-7f8f5d270000 rwxp 00000000 00:00 0  7f8f5d270000-7f8f6c000000 ---p 00000000 00:00 0  7f8f6c000000-7f8f6c033000 rw-p 00000000 00:00 0  7f8f6c033000-7f8f70000000 ---p 00000000 00:00 0  7f8f700a4000-7f8f7019c000 rw-p 00000000 00:00 0  7f8f7019c000-7f8f70530000 ---p 00000000 00:00 0  7f8f70530000-7f8f70706000 rw-p 00000000 00:00 0  7f8f70706000-7f8f70abc000 ---p 00000000 00:00 0  7f8f70abc000-7f8f70ad7000 r-xp 00000000 08:03 655529                   /usr/lib/jvm/jdk1.8.0_231/jre/lib/amd64/libzip.so 7f8f70ad7000-7f8f70cd6000 ---p 0001b000 08:03 655529                   /usr/lib/jvm/jdk1.8.0_231/jre/lib/amd64/libzip.so 7f8f70cd6000-7f8f70cd7000 r--p 0001a000 08:03 655529                   /usr/lib/jvm/jdk1.8.0_231/jre/lib/amd64/libzip.so 7f8f70cd7000-7f8f70cd8000 rw-p 0001b000 08:03 655529                   /usr/lib/jvm/jdk1.8.0_231/jre/lib/amd64/libzip.so 7f8f70cd8000-7f8f70ce3000 r-xp 00000000 08:03 393236                   /lib/x86_64-linux-gnu/libnss_files-2.19.so 7f8f70ce3000-7f8f70ee2000
---p 0000b000 08:03 393236                     /lib/x86_64-linux-gnu/libnss_files-2.19.so 7f8f70ee2000-7f8f70ee3000 r--p 0000a000 08:03 393236                     /lib/x86_64-linux-gnu/libnss_files-2.19.so 7f8f70ee3000-7f8f70ee4000 rw-p 0000b000 08:03 393236                     /lib/x86_64-linux-gnu/libnss_files-2.19.so 7f8f70ee4000-7f8f70eee000 r-xp 00000000 08:03 393238                     /lib/x86_64-linux-gnu/libnss_nis-2.19.so 7f8f70eee000-7f8f710ed000
---p 0000a000 08:03 393238                     /lib/x86_64-linux-gnu/libnss_nis-2.19.so 7f8f710ed000-7f8f710ee000 r--p 00009000 08:03 393238                     /lib/x86_64-linux-gnu/libnss_nis-2.19.so 7f8f710ee000-7f8f710ef000 rw-p 0000a000 08:03 393238                     /lib/x86_64-linux-gnu/libnss_nis-2.19.so 7f8f710ef000-7f8f71104000 r-xp 00000000 08:03 393233                     /lib/x86_64-linux-gnu/libnsl-2.19.so 7f8f71104000-7f8f71303000 ---p 00015000 08:03 393233                     /lib/x86_64-linux-gnu/libnsl-2.19.so 7f8f71303000-7f8f71304000 r--p 00014000 08:03 393233                     /lib/x86_64-linux-gnu/libnsl-2.19.so 7f8f71304000-7f8f71305000 rw-p 00015000 08:03 393233                     /lib/x86_64-linux-gnu/libnsl-2.19.so 7f8f71305000-7f8f71307000 rw-p 00000000 00:00 0  7f8f71307000-7f8f7130e000 r-xp 00000000 08:03 393234 /lib/x86_64-linux-gnu/libnss_compat-2.19.so 7f8f7130e000-7f8f7150d000
---p 00007000 08:03 393234                     /lib/x86_64-linux-gnu/libnss_compat-2.19.so 7f8f7150d000-7f8f7150e000 r--p 00006000 08:03 393234                     /lib/x86_64-linux-gnu/libnss_compat-2.19.so 7f8f7150e000-7f8f7150f000 rw-p 00007000 08:03 393234                     /lib/x86_64-linux-gnu/libnss_compat-2.19.so 7f8f7150f000-7f8f7153b000 r-xp 00000000 08:03 655520                     /usr/lib/jvm/jdk1.8.0_231/jre/lib/amd64/libjava.so 7f8f7153b000-7f8f7173b000 ---p 0002c000 08:03 655520                   /usr/lib/jvm/jdk1.8.0_231/jre/lib/amd64/libjava.so 7f8f7173b000-7f8f7173c000 r--p 0002c000 08:03 655520                   /usr/lib/jvm/jdk1.8.0_231/jre/lib/amd64/libjava.so 7f8f7173c000-7f8f7173e000 rw-p 0002d000 08:03 655520                   /usr/lib/jvm/jdk1.8.0_231/jre/lib/amd64/libjava.so 7f8f7173e000-7f8f7174b000 r-xp 00000000 08:03 655511                   /usr/lib/jvm/jdk1.8.0_231/jre/lib/amd64/libverify.so 7f8f7174b000-7f8f7194a000 ---p 0000d000 08:03 655511                   /usr/lib/jvm/jdk1.8.0_231/jre/lib/amd64/libverify.so 7f8f7194a000-7f8f7194c000 r--p 0000c000 08:03 655511                   /usr/lib/jvm/jdk1.8.0_231/jre/lib/amd64/libverify.so 7f8f7194c000-7f8f7194d000 rw-p 0000e000 08:03 655511                   /usr/lib/jvm/jdk1.8.0_231/jre/lib/amd64/libverify.so 7f8f7194d000-7f8f71954000 r-xp 00000000 08:03 393242                   /lib/x86_64-linux-gnu/librt-2.19.so 7f8f71954000-7f8f71b53000 ---p 00007000 08:03 393242                     /lib/x86_64-linux-gnu/librt-2.19.so 7f8f71b53000-7f8f71b54000 r--p 00006000 08:03 393242                     /lib/x86_64-linux-gnu/librt-2.19.so 7f8f71b54000-7f8f71b55000 rw-p 00007000 08:03 393242                     /lib/x86_64-linux-gnu/librt-2.19.so 7f8f71b55000-7f8f71c55000 r-xp 00000000 08:03 393231                     /lib/x86_64-linux-gnu/libm-2.19.so 7f8f71c55000-7f8f71e54000 ---p 00100000 08:03 393231                     /lib/x86_64-linux-gnu/libm-2.19.so 7f8f71e54000-7f8f71e55000 r--p 000ff000 08:03 393231                     /lib/x86_64-linux-gnu/libm-2.19.so 7f8f71e55000-7f8f71e56000 rw-p 00100000 08:03 393231                     /lib/x86_64-linux-gnu/libm-2.19.so 7f8f71e56000-7f8f72b3f000 r-xp 00000000 08:03 655527                     /usr/lib/jvm/jdk1.8.0_231/jre/lib/amd64/server/libjvm.so 7f8f72b3f000-7f8f72d3e000 ---p 00ce9000 08:03 655527                   /usr/lib/jvm/jdk1.8.0_231/jre/lib/amd64/server/libjvm.so 7f8f72d3e000-7f8f72dd4000 r--p 00ce8000 08:03 655527                   /usr/lib/jvm/jdk1.8.0_231/jre/lib/amd64/server/libjvm.so 7f8f72dd4000-7f8f72e05000 rw-p 00d7e000 08:03 655527                   /usr/lib/jvm/jdk1.8.0_231/jre/lib/amd64/server/libjvm.so 7f8f72e05000-7f8f72e40000 rw-p 00000000 00:00 0  7f8f72e40000-7f8f72fe1000 r-xp 00000000 08:03 393227                   /lib/x86_64-linux-gnu/libc-2.19.so 7f8f72fe1000-7f8f731e1000 ---p 001a1000 08:03 393227                     /lib/x86_64-linux-gnu/libc-2.19.so 7f8f731e1000-7f8f731e5000 r--p 001a1000 08:03 393227                     /lib/x86_64-linux-gnu/libc-2.19.so 7f8f731e5000-7f8f731e7000 rw-p 001a5000 08:03 393227                     /lib/x86_64-linux-gnu/libc-2.19.so 7f8f731e7000-7f8f731eb000 rw-p 00000000 00:00 0  7f8f731eb000-7f8f731ee000 r-xp 00000000 08:03 393230 /lib/x86_64-linux-gnu/libdl-2.19.so 7f8f731ee000-7f8f733ed000 ---p 00003000 08:03 393230                     /lib/x86_64-linux-gnu/libdl-2.19.so 7f8f733ed000-7f8f733ee000 r--p 00002000 08:03 393230                     /lib/x86_64-linux-gnu/libdl-2.19.so 7f8f733ee000-7f8f733ef000 rw-p 00003000 08:03 393230                     /lib/x86_64-linux-gnu/libdl-2.19.so 7f8f733ef000-7f8f73406000 r-xp 00000000 08:03 530578                     /usr/lib/jvm/jdk1.8.0_231/lib/amd64/jli/libjli.so 7f8f73406000-7f8f73605000 ---p 00017000 08:03 530578                   /usr/lib/jvm/jdk1.8.0_231/lib/amd64/jli/libjli.so 7f8f73605000-7f8f73606000 r--p 00016000 08:03 530578                   /usr/lib/jvm/jdk1.8.0_231/lib/amd64/jli/libjli.so 7f8f73606000-7f8f73607000 rw-p 00017000 08:03 530578                   /usr/lib/jvm/jdk1.8.0_231/lib/amd64/jli/libjli.so 7f8f73607000-7f8f7361f000 r-xp 00000000 08:03 393222                   /lib/x86_64-linux-gnu/libpthread-2.19.so 7f8f7361f000-7f8f7381e000
---p 00018000 08:03 393222                     /lib/x86_64-linux-gnu/libpthread-2.19.so 7f8f7381e000-7f8f7381f000 r--p 00017000 08:03 393222                     /lib/x86_64-linux-gnu/libpthread-2.19.so 7f8f7381f000-7f8f73820000 rw-p 00018000 08:03 393222                     /lib/x86_64-linux-gnu/libpthread-2.19.so 7f8f73820000-7f8f73824000 rw-p 00000000 00:00 0  7f8f73824000-7f8f73845000 r-xp 00000000 08:03 393224                     /lib/x86_64-linux-gnu/ld-2.19.so 7f8f7392e000-7f8f73936000 rw-s 00000000 08:03 524714                   /tmp/hsperfdata_root/32767 7f8f73936000-7f8f73939000 ---p 00000000 00:00 0  7f8f73939000-7f8f73a3b000 rw-p 00000000 00:00 0  7f8f73a3d000-7f8f73a41000 rw-p 00000000 00:00 0  7f8f73a41000-7f8f73a42000 r--p 00000000 00:00 0  7f8f73a42000-7f8f73a44000 rw-p 00000000 00:00 0  7f8f73a44000-7f8f73a45000 r--p 00020000 08:03 393224                   /lib/x86_64-linux-gnu/ld-2.19.so 7f8f73a45000-7f8f73a46000 rw-p 00021000 08:03 393224                     /lib/x86_64-linux-gnu/ld-2.19.so 7f8f73a46000-7f8f73a47000 rw-p 00000000 00:00 0  7ffe52e3e000-7ffe52e5f000 rw-p 00000000 00:00 0      [stack] 7ffe52f47000-7ffe52f49000 r--p 00000000 00:00 0                [vvar] 7ffe52f49000-7ffe52f4b000 r-xp 00000000 00:00 0                 [vdso] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0         [vsyscall]

VM Arguments: jvm_args: -Xmx2750M -Xms2750M  java_command: spigot-1.8.8.jar java_class_path (initial): spigot-1.8.8.jar Launcher Type: SUN_STANDARD

Environment Variables: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin SHELL=/bin/bash

Signal Handlers: SIGSEGV: [libjvm.so+0xad4d90], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO SIGBUS: [libjvm.so+0xad4d90], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO SIGFPE: [libjvm.so+0x90bc10], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO SIGPIPE: [libjvm.so+0x90bc10], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO SIGXFSZ: [libjvm.so+0x90bc10], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO SIGILL: [libjvm.so+0x90bc10], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO SIGUSR1: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none SIGUSR2: [libjvm.so+0x90bae0], sa_mask[0]=00100000000000000000000000000000, sa_flags=SA_RESTART|SA_SIGINFO SIGHUP: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none SIGINT: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none SIGTERM: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none SIGQUIT: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none


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

OS:PRETTY_NAME="Debian GNU/Linux 8 (jessie)" NAME="Debian GNU/Linux" VERSION_ID="8" VERSION="8 (jessie)" ID=debian HOME_URL="http://www.debian.org/" SUPPORT_URL="http://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"

uname:Linux 4.9.0-0.bpo.9-amd64 #1 SMP Debian 4.9.168-1~deb8u1 (2019-04-28) x86_64 libc:glibc 2.19 NPTL 2.19  rlimit: STACK 8192k, CORE 0k, NPROC 31867, NOFILE 65536, AS infinity load average:0.16 0.12
0.10

/proc/meminfo: MemTotal:        8179420 kB MemFree:           59664 kB MemAvailable:    1139824 kB Buffers:          173052 kB Cached:        1003224 kB SwapCached:            0 kB Active:          7223752 kB Inactive:         653372 kB Active(anon):    6763092 kB Inactive(anon):    99240 kB Active(file):     460660 kB Inactive(file):   554132 kB Unevictable:           0 kB Mlocked:       0 kB SwapTotal:             0 kB SwapFree:              0 kB Dirty:    228 kB Writeback:             0 kB AnonPages:       6700760 kB Mapped: 73024 kB Shmem:            161492 kB Slab:             189112 kB SReclaimable:     167972 kB SUnreclaim:        21140 kB KernelStack:   3648 kB PageTables:        21368 kB NFS_Unstable:          0 kB Bounce:                0 kB WritebackTmp:          0 kB CommitLimit:   4089708 kB Committed_AS:    7135840 kB VmallocTotal:   34359738367 kB VmallocUsed:           0 kB VmallocChunk:          0 kB HardwareCorrupted:     0 kB AnonHugePages:         0 kB ShmemHugePages:        0 kB ShmemPmdMapped:        0 kB HugePages_Total:       0 HugePages_Free:        0 HugePages_Rsvd:      0 HugePages_Surp:        0 Hugepagesize:       2048 kB DirectMap4k:    49008 kB DirectMap2M:     4145152 kB DirectMap1G:     6291456 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: -2 memory_soft_limit_in_bytes: -1 memory_usage_in_bytes: 8066248704 memory_max_usage_in_bytes: 0


CPU:total 2 (initial active 2) (2 cores per cpu, 1 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, tsc, bmi1, bmi2, adx

/proc/cpuinfo: processor    : 0 vendor_id   : GenuineIntel cpu family   : 6 model       : 85 model name : Intel(R) Xeon(R) Gold 6140 CPU @ 2.30GHz stepping : 4 microcode   : 0x1 cpu MHz       : 2294.608 cache size   : 16384 KB physical id  : 0 siblings    : 2 core id     : 0 cpu cores   : 2 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 xtopology 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 invpcid_single ssbd ibrs ibpb kaiser fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f avx512dq rdseed adx smap clflushopt clwb avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves arat pku ospke bugs     : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf bogomips    : 4589.21 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 6140 CPU @ 2.30GHz stepping : 4 microcode   : 0x1 cpu MHz       : 2294.608 cache size   : 16384 KB physical id  : 0 siblings    : 2 core id     : 1 cpu cores   : 2 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 xtopology 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 invpcid_single ssbd ibrs ibpb kaiser fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f avx512dq rdseed adx smap clflushopt clwb avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves arat pku ospke bugs     : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf bogomips    : 4589.21 clflush size  : 64 cache_alignment    : 64 address sizes  : 40 bits physical, 48 bits virtual power management:



Memory: 4k page, physical 8179420k(59664k free), swap 0k(0k free)

vm_info: Java HotSpot(TM) 64-Bit Server VM (25.231-b11) for linux-amd64 JRE (1.8.0_231-b11), built on Oct  5 2019 03:00:41 by "java_re" with gcc 7.3.0

time: Fri Dec  6 02:31:28 2019 timezone: CET elapsed time: 0 seconds (0d 0h 0m 0s)

有没有一种方法可以快速删除那些日志? 这使服务器非常慢。 我认为这是Java错误,但我不知道如何解决此问题。

0 个答案:

没有答案