白日梦想家Zzzzz 2022-09-19 11:27 采纳率: 56.5%
浏览 42
已结题

linux上tomcat启动时部分项目未启动

linxu上tomcat 部署了多个web项目,启动了一半,日志打印启动完了,还有一部分项目没有启动,看到有报错文件如下


#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 1431830528 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:2640), pid=9945, tid=0x00007f1e8d3bd700
#
# JRE version:  (8.0_181-b13) (build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.181-b13 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 (0x00007f1e8400e800):  JavaThread "Unknown thread" [_thread_in_vm, id=9946, stack(0x00007f1e8d2bd000,0x00007f1e8d3be000)]

Stack: [0x00007f1e8d2bd000,0x00007f1e8d3be000],  sp=0x00007f1e8d3bc380,  free space=1020k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0xad21aa]  VMError::report_and_die()+0x2ba
V  [libjvm.so+0x5022db]  report_vm_out_of_memory(char const*, int, unsigned long, VMErrorType, char const*)+0x8b
V  [libjvm.so+0x92fe33]  os::Linux::commit_memory_impl(char*, unsigned long, bool)+0x123
V  [libjvm.so+0x930059]  os::pd_commit_memory(char*, unsigned long, unsigned long, bool)+0x29
V  [libjvm.so+0x9272ba]  os::commit_memory(char*, unsigned long, unsigned long, bool)+0x2a
V  [libjvm.so+0x99d2e3]  PSVirtualSpace::expand_by(unsigned long)+0x53
V  [libjvm.so+0x98d3f7]  PSOldGen::initialize(ReservedSpace, unsigned long, char const*, int)+0xb7
V  [libjvm.so+0x2dc1ea]  AdjoiningGenerations::AdjoiningGenerations(ReservedSpace, GenerationSizer*, unsigned long)+0x39a
V  [libjvm.so+0x951426]  ParallelScavengeHeap::initialize()+0x1d6
V  [libjvm.so+0xa9a1e3]  Universe::initialize_heap()+0xf3
V  [libjvm.so+0xa9a74e]  universe_init()+0x3e
V  [libjvm.so+0x644875]  init_globals()+0x65
V  [libjvm.so+0xa7eefe]  Threads::create_vm(JavaVMInitArgs*, bool*)+0x23e
V  [libjvm.so+0x6d8d74]  JNI_CreateJavaVM+0x74
C  [libjli.so+0x797e]  JavaMain+0x9e
C  [libpthread.so.0+0x7e25]  start_thread+0xc5


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

Java Threads: ( => current thread )

Other Threads:

=>0x00007f1e8400e800 (exited) JavaThread "Unknown thread" [_thread_in_vm, id=9946, stack(0x00007f1e8d2bd000,0x00007f1e8d3be000)]

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

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:02 6291466                            /devapp/java/jdk1.8.0_181/bin/java
00600000-00601000 rw-p 00000000 fd:02 6291466                            /devapp/java/jdk1.8.0_181/bin/java
022f5000-02316000 rw-p 00000000 00:00 0                                  [heap]
d5580000-100000000 rw-p 00000000 00:00 0 
7f1e6ead7000-7f1e6ed47000 rwxp 00000000 00:00 0 
7f1e6ed47000-7f1e7dad7000 ---p 00000000 00:00 0 
7f1e7dad7000-7f1e84000000 r--p 00000000 fd:00 33592238                   /usr/lib/locale/locale-archive
7f1e84000000-7f1e8403d000 rw-p 00000000 00:00 0 
7f1e8403d000-7f1e88000000 ---p 00000000 00:00 0 
7f1e89dee000-7f1e8a079000 rw-p 00000000 00:00 0 
7f1e8a079000-7f1e8a323000 ---p 00000000 00:00 0 
7f1e8a323000-7f1e8a484000 rw-p 00000000 00:00 0 
7f1e8a484000-7f1e8a83a000 ---p 00000000 00:00 0 
7f1e8a83a000-7f1e8a855000 r-xp 00000000 fd:02 6291604                    /devapp/java/jdk1.8.0_181/jre/lib/amd64/libzip.so
7f1e8a855000-7f1e8aa55000 ---p 0001b000 fd:02 6291604                    /devapp/java/jdk1.8.0_181/jre/lib/amd64/libzip.so
7f1e8aa55000-7f1e8aa56000 rw-p 0001b000 fd:02 6291604                    /devapp/java/jdk1.8.0_181/jre/lib/amd64/libzip.so
7f1e8aa56000-7f1e8aa62000 r-xp 00000000 fd:00 83989                      /usr/lib64/libnss_files-2.17.so
7f1e8aa62000-7f1e8ac61000 ---p 0000c000 fd:00 83989                      /usr/lib64/libnss_files-2.17.so
7f1e8ac61000-7f1e8ac62000 r--p 0000b000 fd:00 83989                      /usr/lib64/libnss_files-2.17.so
7f1e8ac62000-7f1e8ac63000 rw-p 0000c000 fd:00 83989                      /usr/lib64/libnss_files-2.17.so
7f1e8ac63000-7f1e8ac69000 rw-p 00000000 00:00 0 
7f1e8ac69000-7f1e8ac73000 r-xp 00000000 fd:02 6291563                    /devapp/java/jdk1.8.0_181/jre/lib/amd64/libinstrument.so
7f1e8ac73000-7f1e8ae72000 ---p 0000a000 fd:02 6291563                    /devapp/java/jdk1.8.0_181/jre/lib/amd64/libinstrument.so
7f1e8ae72000-7f1e8ae73000 rw-p 00009000 fd:02 6291563                    /devapp/java/jdk1.8.0_181/jre/lib/amd64/libinstrument.so
7f1e8ae73000-7f1e8ae9e000 r-xp 00000000 fd:02 6291568                    /devapp/java/jdk1.8.0_181/jre/lib/amd64/libjava.so
7f1e8ae9e000-7f1e8b09d000 ---p 0002b000 fd:02 6291568                    /devapp/java/jdk1.8.0_181/jre/lib/amd64/libjava.so
7f1e8b09d000-7f1e8b09f000 rw-p 0002a000 fd:02 6291568                    /devapp/java/jdk1.8.0_181/jre/lib/amd64/libjava.so
7f1e8b09f000-7f1e8b0ac000 r-xp 00000000 fd:02 6291603                    /devapp/java/jdk1.8.0_181/jre/lib/amd64/libverify.so
7f1e8b0ac000-7f1e8b2ac000 ---p 0000d000 fd:02 6291603                    /devapp/java/jdk1.8.0_181/jre/lib/amd64/libverify.so
7f1e8b2ac000-7f1e8b2ae000 rw-p 0000d000 fd:02 6291603                    /devapp/java/jdk1.8.0_181/jre/lib/amd64/libverify.so
7f1e8b2ae000-7f1e8b2b5000 r-xp 00000000 fd:00 87969                      /usr/lib64/librt-2.17.so
7f1e8b2b5000-7f1e8b4b4000 ---p 00007000 fd:00 87969                      /usr/lib64/librt-2.17.so
7f1e8b4b4000-7f1e8b4b5000 r--p 00006000 fd:00 87969                      /usr/lib64/librt-2.17.so
7f1e8b4b5000-7f1e8b4b6000 rw-p 00007000 fd:00 87969                      /usr/lib64/librt-2.17.so
7f1e8b4b6000-7f1e8b5b7000 r-xp 00000000 fd:00 83979                      /usr/lib64/libm-2.17.so
7f1e8b5b7000-7f1e8b7b6000 ---p 00101000 fd:00 83979                      /usr/lib64/libm-2.17.so
7f1e8b7b6000-7f1e8b7b7000 r--p 00100000 fd:00 83979                      /usr/lib64/libm-2.17.so
7f1e8b7b7000-7f1e8b7b8000 rw-p 00101000 fd:00 83979                      /usr/lib64/libm-2.17.so
7f1e8b7b8000-7f1e8c494000 r-xp 00000000 fd:02 6291607                    /devapp/java/jdk1.8.0_181/jre/lib/amd64/server/libjvm.so
7f1e8c494000-7f1e8c694000 ---p 00cdc000 fd:02 6291607                    /devapp/java/jdk1.8.0_181/jre/lib/amd64/server/libjvm.so
7f1e8c694000-7f1e8c76e000 rw-p 00cdc000 fd:02 6291607                    /devapp/java/jdk1.8.0_181/jre/lib/amd64/server/libjvm.so
7f1e8c76e000-7f1e8c7b9000 rw-p 00000000 00:00 0 
7f1e8c7b9000-7f1e8c971000 r-xp 00000000 fd:00 83971                      /usr/lib64/libc-2.17.so
7f1e8c971000-7f1e8cb71000 ---p 001b8000 fd:00 83971                      /usr/lib64/libc-2.17.so
7f1e8cb71000-7f1e8cb75000 r--p 001b8000 fd:00 83971                      /usr/lib64/libc-2.17.so
7f1e8cb75000-7f1e8cb77000 rw-p 001bc000 fd:00 83971                      /usr/lib64/libc-2.17.so
7f1e8cb77000-7f1e8cb7c000 rw-p 00000000 00:00 0 
7f1e8cb7c000-7f1e8cb7e000 r-xp 00000000 fd:00 83977                      /usr/lib64/libdl-2.17.so
7f1e8cb7e000-7f1e8cd7e000 ---p 00002000 fd:00 83977                      /usr/lib64/libdl-2.17.so
7f1e8cd7e000-7f1e8cd7f000 r--p 00002000 fd:00 83977                      /usr/lib64/libdl-2.17.so
7f1e8cd7f000-7f1e8cd80000 rw-p 00003000 fd:00 83977                      /usr/lib64/libdl-2.17.so
7f1e8cd80000-7f1e8cd96000 r-xp 00000000 fd:02 6291885                    /devapp/java/jdk1.8.0_181/lib/amd64/jli/libjli.so
7f1e8cd96000-7f1e8cf95000 ---p 00016000 fd:02 6291885                    /devapp/java/jdk1.8.0_181/lib/amd64/jli/libjli.so
7f1e8cf95000-7f1e8cf96000 rw-p 00015000 fd:02 6291885                    /devapp/java/jdk1.8.0_181/lib/amd64/jli/libjli.so
7f1e8cf96000-7f1e8cfad000 r-xp 00000000 fd:00 83997                      /usr/lib64/libpthread-2.17.so
7f1e8cfad000-7f1e8d1ac000 ---p 00017000 fd:00 83997                      /usr/lib64/libpthread-2.17.so
7f1e8d1ac000-7f1e8d1ad000 r--p 00016000 fd:00 83997                      /usr/lib64/libpthread-2.17.so
7f1e8d1ad000-7f1e8d1ae000 rw-p 00017000 fd:00 83997                      /usr/lib64/libpthread-2.17.so
7f1e8d1ae000-7f1e8d1b2000 rw-p 00000000 00:00 0 
7f1e8d1b2000-7f1e8d1d3000 r-xp 00000000 fd:00 83964                      /usr/lib64/ld-2.17.so
7f1e8d2bd000-7f1e8d2c0000 ---p 00000000 00:00 0 
7f1e8d2c0000-7f1e8d3c2000 rw-p 00000000 00:00 0                          [stack:9946]
7f1e8d3c5000-7f1e8d3c8000 rw-p 00000000 00:00 0 
7f1e8d3c8000-7f1e8d3d0000 rw-s 00000000 fd:00 38067565                   /tmp/hsperfdata_snmocha/9945
7f1e8d3d0000-7f1e8d3d1000 rw-p 00000000 00:00 0 
7f1e8d3d1000-7f1e8d3d2000 r--p 00000000 00:00 0 
7f1e8d3d2000-7f1e8d3d3000 rw-p 00000000 00:00 0 
7f1e8d3d3000-7f1e8d3d4000 r--p 00021000 fd:00 83964                      /usr/lib64/ld-2.17.so
7f1e8d3d4000-7f1e8d3d5000 rw-p 00022000 fd:00 83964                      /usr/lib64/ld-2.17.so
7f1e8d3d5000-7f1e8d3d6000 rw-p 00000000 00:00 0 
7fff7d317000-7fff7d339000 rw-p 00000000 00:00 0                          [stack]
7fff7d39a000-7fff7d39c000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]

VM Arguments:
jvm_args: -Djava.util.logging.config.file=/devapp/apache-tomcat-8.5.69/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xms2048M -Xmx2048M -XX:+UseBiasedLocking -XX:PermSize=128M -XX:MaxPermSize=256M -XX:+DisableExplicitGC -javaagent:/home/snmocha/webgate-agent/lib/webgate-agent.jar -Dwebgate.agent.name=testgw -Dwebgate.was.instance.home=/home/snmocha/webgate-agent/agentInfo/testgw -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -javaagent:/home/snmocha/webgate-agent/lib/webgate-agent.jar -Dwebgate.agent.name=testoa -Dwebgate.was.instance.home=/home/snmocha/webgate-agent/agentInfo/testoa -Dignore.endorsed.dirs= -Dcatalina.base=/devapp/apache-tomcat-8.5.69 -Dcatalina.home=/devapp/apache-tomcat-8.5.69 -Djava.io.tmpdir=/devapp/apache-tomcat-8.5.69/temp 
java_command: org.apache.catalina.startup.Bootstrap start
java_class_path (initial): /devapp/apache-tomcat-8.5.69/bin/bootstrap.jar:/devapp/apache-tomcat-8.5.69/bin/tomcat-juli.jar:/home/snmocha/webgate-agent/lib/webgate-agent.jar:/home/snmocha/webgate-agent/lib/webgate-agent.jar
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=/devapp/java/jdk1.8.0_181
CLASSPATH=/devapp/apache-tomcat-8.5.69/bin/bootstrap.jar:/devapp/apache-tomcat-8.5.69/bin/tomcat-juli.jar
PATH=/devapp/java/jdk1.8.0_181/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/openssh86/bin:/usr/local/sbin:/home/snmocha/.local/bin:/home/snmocha/bin
SHELL=/bin/bash

Signal Handlers:
SIGSEGV: [libjvm.so+0xad2a40], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGBUS: [libjvm.so+0xad2a40], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGFPE: [libjvm.so+0x92a610], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGPIPE: [libjvm.so+0x92a610], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGXFSZ: [libjvm.so+0x92a610], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGILL: [libjvm.so+0x92a610], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGUSR1: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none
SIGUSR2: [libjvm.so+0x92be70], sa_mask[0]=00000000000000000000000000000000, sa_flags=SA_RESTART|SA_SIGINFO
SIGHUP: SIG_DFL, 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:Red Hat Enterprise Linux Server release 7.4 (Maipo)

uname:Linux 3.10.0-693.el7.x86_64 #1 SMP Thu Jul 6 19:56:57 EDT 2017 x86_64
libc:glibc 2.17 NPTL 2.17 
rlimit: STACK 8192k, CORE 0k, NPROC 4096, NOFILE 65535, AS infinity
load average:0.25 0.26 0.16

/proc/meminfo:
MemTotal:        3882072 kB
MemFree:          105068 kB
MemAvailable:      35816 kB
Buffers:             824 kB
Cached:            67528 kB
SwapCached:       487608 kB
Active:          2583820 kB
Inactive:         991268 kB
Active(anon):    2553068 kB
Inactive(anon):   959168 kB
Active(file):      30752 kB
Inactive(file):    32100 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       4063228 kB
SwapFree:         415984 kB
Dirty:                48 kB
Writeback:             0 kB
AnonPages:       3019600 kB
Mapped:            21064 kB
Shmem:              5232 kB
Slab:              75648 kB
SReclaimable:      39216 kB
SUnreclaim:        36432 kB
KernelStack:       27904 kB
PageTables:        25764 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     6004264 kB
Committed_AS:   10862220 kB
VmallocTotal:   34359738367 kB
VmallocUsed:      156564 kB
VmallocChunk:   34359341052 kB
HardwareCorrupted:     0 kB
AnonHugePages:      8192 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:       92096 kB
DirectMap2M:     3053568 kB
DirectMap1G:     3145728 kB


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

/proc/cpuinfo:
processor    : 0
vendor_id    : GenuineIntel
cpu family    : 6
model        : 79
model name    : Intel(R) Xeon(R) CPU E5-2650 v4 @ 2.20GHz
stepping    : 0
microcode    : 0xb000038
cpu MHz        : 2196.545
cache size    : 30720 KB
physical id    : 0
siblings    : 1
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 dts mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc 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 fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 invpcid rtm rdseed adx smap xsaveopt arat
bogomips    : 4394.91
clflush size    : 64
cache_alignment    : 64
address sizes    : 43 bits physical, 48 bits virtual
power management:

processor    : 1
vendor_id    : GenuineIntel
cpu family    : 6
model        : 79
model name    : Intel(R) Xeon(R) CPU E5-2650 v4 @ 2.20GHz
stepping    : 0
microcode    : 0xb000038
cpu MHz        : 2196.545
cache size    : 30720 KB
physical id    : 2
siblings    : 1
core id        : 0
cpu cores    : 1
apicid        : 2
initial apicid    : 2
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 dts mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc 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 fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 invpcid rtm rdseed adx smap xsaveopt arat
bogomips    : 4394.91
clflush size    : 64
cache_alignment    : 64
address sizes    : 43 bits physical, 48 bits virtual
power management:



Memory: 4k page, physical 3882072k(105068k free), swap 4063228k(415984k free)

vm_info: Java HotSpot(TM) 64-Bit Server VM (25.181-b13) for linux-amd64 JRE (1.8.0_181-b13), built on Jul  7 2018 00:56:38 by "java_re" with gcc 4.3.0 20080428 (Red Hat 4.3.0-8)

time: Mon Sep 19 09:25:37 2022
elapsed time: 0 seconds (0d 0h 0m 0s)

也按百度给tomcat下bin的catalina.sh文件添加如下

img


还是未解决问题

  • 写回答

4条回答

      报告相同问题?

      相关推荐 更多相似问题

      问题事件

      • 系统已结题 10月22日
      • 已采纳回答 10月14日
      • 创建了问题 9月19日

      悬赏问题

      • ¥15 关于Qt中COM组件向调用组件方发送消息的问题
      • ¥15 有人能帮我看一下这个码怎么解
      • ¥15 oracle更新一列的所有timestamp默认精度
      • ¥50 servicNow二次开发集成
      • ¥15 matlab绘制二维偏微分方程
      • ¥15 AHK如何设置一个按键手工插入延迟
      • ¥15 我不知道怎么说,也不知道怎么写
      • ¥15 c语言九宫格问题纠错
      • ¥15 数值方法(MATLAB版)第四版课后习题求解
      • ¥15 关于#java#的运行时间过长问题,如何解决?