NutzCN Logo
问答 struts2+jsp+spring+ibatis+tomcat7 应用OOM 求助
发布于 91天前 作者 lusparioTT 197 次浏览 复制 上一个帖子 下一个帖子
标签:

jvm oom gc log 日志 对虚拟机不懂怎么调优,求帮助

#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 877133824 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=11822, tid=0x00007f02672fa700
#
# JRE version: Java(TM) SE Runtime Environment (8.0_112-b15) (build 1.8.0_112-b15)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.112-b15 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

VM Arguments:
jvm_args: -Djava.util.logging.config.file=/mydata/apache-tomcat-7.0.68/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.awt.headless=true -Dfile.encoding=GBK -Xms1024M -Xmx4096M -XX:NewSize=512m -XX:MaxNewSize=512m -XX:+DisableExplicitGC 
---------------  S Y S T E M  信息---------------

OS:CentOS Linux release 7.2.1511 (Core) 

uname:Linux 3.10.0-327.36.3.el7.x86_64 #1 SMP Mon Oct 24 16:09:20 UTC 2016 x86_64
libc:glibc 2.17 NPTL 2.17 
rlimit: STACK 8192k, CORE 0k, NPROC 15094, NOFILE 100002, AS infinity
load average:0.08 0.05 0.05

/proc/meminfo:
MemTotal:        3882420 kB
MemFree:          158016 kB
MemAvailable:     274676 kB
Buffers:           27780 kB
Cached:           232548 kB
SwapCached:            0 kB
Active:          3418024 kB
Inactive:         135140 kB
Active(anon):    3296612 kB
Inactive(anon):     9320 kB
Active(file):     121412 kB

Heap:
 PSYoungGen      total 507904K, used 0K [0x00000007a0000000, 0x00000007c0000000, 0x00000007c0000000)
  eden space 498688K, 0% used [0x00000007a0000000,0x00000007a0000000,0x00000007be700000)
  from space 9216K, 0% used [0x00000007bf700000,0x00000007bf700000,0x00000007c0000000)
  to   space 12800K, 0% used [0x00000007be700000,0x00000007be700000,0x00000007bf380000)
 ParOldGen       total 1457152K, used 95612K [0x00000006c0000000, 0x0000000718f00000, 0x00000007a0000000)
  object space 1457152K, 6% used [0x00000006c0000000,0x00000006c5d5f010,0x0000000718f00000)
 Metaspace       used 62287K, capacity 66152K, committed 66776K, reserved 1110016K
  class space    used 5969K, capacity 6475K, committed 6656K, reserved 1048576K

Card table byte_map: [0x00007f0288846000,0x00007f0289047000] byte_map_base: 0x00007f0285246000

Marking Bits: (ParMarkBitMap*) 0x00007f028b13dc80
 Begin Bits: [0x00007f0268000000, 0x00007f026c000000)
 End Bits:   [0x00007f026c000000, 0x00007f0270000000)

Polling page: 0x00007f028bd81000

CodeCache: size=245760Kb used=56590Kb max_used=57021Kb free=189169Kb
 bounds [0x00007f0275000000, 0x00007f0278830000, 0x00007f0284000000]
 total_blobs=15224 nmethods=14546 adapters=590
 compilation: enabled
GC Heap History (10 events):
Event: 1066406.458 GC heap after
Heap after GC invocations=5901 (full 3):
 PSYoungGen      total 514560K, used 3424K [0x00000007a0000000, 0x00000007c0000000, 0x00000007c0000000)
  eden space 504320K, 0% used [0x00000007a0000000,0x00000007a0000000,0x00000007bec80000)
  from space 10240K, 33% used [0x00000007bf600000,0x00000007bf958000,0x00000007c0000000)
  to   space 9728K, 0% used [0x00000007bec80000,0x00000007bec80000,0x00000007bf600000)
 ParOldGen       total 1457152K, used 1450166K [0x00000006c0000000, 0x0000000718f00000, 0x00000007a0000000)
  object space 1457152K, 99% used [0x00000006c0000000,0x000000071882d928,0x0000000718f00000)
 Metaspace       used 62477K, capacity 66518K, committed 66776K, reserved 1110016K
  class space    used 6003K, capacity 6536K, committed 6656K, reserved 1048576K
}
Event: 1066616.910 GC heap before
{Heap before GC invocations=5902 (full 3):
 PSYoungGen      total 514560K, used 507744K [0x00000007a0000000, 0x00000007c0000000, 0x00000007c0000000)
  eden space 504320K, 100% used [0x00000007a0000000,0x00000007bec80000,0x00000007bec80000)
  from space 10240K, 33% used [0x00000007bf600000,0x00000007bf958000,0x00000007c0000000)
  to   space 9728K, 0% used [0x00000007bec80000,0x00000007bec80000,0x00000007bf600000)
 ParOldGen       total 1457152K, used 1450166K [0x00000006c0000000, 0x0000000718f00000, 0x00000007a0000000)
  object space 1457152K, 99% used [0x00000006c0000000,0x000000071882d928,0x0000000718f00000)
 Metaspace       used 62477K, capacity 66518K, committed 66776K, reserved 1110016K
  class space    used 6003K, capacity 6536K, committed 6656K, reserved 1048576K
Event: 1066616.936 GC heap after
Heap after GC invocations=5902 (full 3):
 PSYoungGen      total 514048K, used 5405K [0x00000007a0000000, 0x00000007c0000000, 0x00000007c0000000)
  eden space 504320K, 0% used [0x00000007a0000000,0x00000007a0000000,0x00000007bec80000)
  from space 9728K, 55% used [0x00000007bec80000,0x00000007bf1c7710,0x00000007bf600000)
  to   space 9728K, 0% used [0x00000007bf680000,0x00000007bf680000,0x00000007c0000000)
 ParOldGen       total 1457152K, used 1450174K [0x00000006c0000000, 0x0000000718f00000, 0x00000007a0000000)
  object space 1457152K, 99% used [0x00000006c0000000,0x000000071882f928,0x0000000718f00000)
 Metaspace       used 62477K, capacity 66518K, committed 66776K, reserved 1110016K
  class space    used 6003K, capacity 6536K, committed 6656K, reserved 1048576K
}
Event: 1066833.570 GC heap before
{Heap before GC invocations=5903 (full 3):
 PSYoungGen      total 514048K, used 509725K [0x00000007a0000000, 0x00000007c0000000, 0x00000007c0000000)
  eden space 504320K, 100% used [0x00000007a0000000,0x00000007bec80000,0x00000007bec80000)
  from space 9728K, 55% used [0x00000007bec80000,0x00000007bf1c7710,0x00000007bf600000)
  to   space 9728K, 0% used [0x00000007bf680000,0x00000007bf680000,0x00000007c0000000)
 ParOldGen       total 1457152K, used 1450174K [0x00000006c0000000, 0x0000000718f00000, 0x00000007a0000000)
  object space 1457152K, 99% used [0x00000006c0000000,0x000000071882f928,0x0000000718f00000)
 Metaspace       used 62477K, capacity 66518K, committed 66776K, reserved 1110016K
  class space    used 6003K, capacity 6536K, committed 6656K, reserved 1048576K
Event: 1066833.597 GC heap after
Heap after GC invocations=5903 (full 3):
 PSYoungGen      total 515072K, used 5165K [0x00000007a0000000, 0x00000007c0000000, 0x00000007c0000000)
  eden space 505344K, 0% used [0x00000007a0000000,0x00000007a0000000,0x00000007bed80000)
  from space 9728K, 53% used [0x00000007bf680000,0x00000007bfb8b4c0,0x00000007c0000000)
  to   space 9216K, 0% used [0x00000007bed80000,0x00000007bed80000,0x00000007bf680000)
 ParOldGen       total 1457152K, used 1450182K [0x00000006c0000000, 0x0000000718f00000, 0x00000007a0000000)
  object space 1457152K, 99% used [0x00000006c0000000,0x0000000718831928,0x0000000718f00000)
 Metaspace       used 62477K, capacity 66518K, committed 66776K, reserved 1110016K
  class space    used 6003K, capacity 6536K, committed 6656K, reserved 1048576K
}
Event: 1067047.273 GC heap before
{Heap before GC invocations=5904 (full 3):
 PSYoungGen      total 515072K, used 510502K [0x00000007a0000000, 0x00000007c0000000, 0x00000007c0000000)
  eden space 505344K, 99% used [0x00000007a0000000,0x00000007bed7e600,0x00000007bed80000)
  from space 9728K, 53% used [0x00000007bf680000,0x00000007bfb8b4c0,0x00000007c0000000)
  to   space 9216K, 0% used [0x00000007bed80000,0x00000007bed80000,0x00000007bf680000)
 ParOldGen       total 1457152K, used 1450182K [0x00000006c0000000, 0x0000000718f00000, 0x00000007a0000000)
  object space 1457152K, 99% used [0x00000006c0000000,0x0000000718831928,0x0000000718f00000)
 Metaspace       used 62477K, capacity 66518K, committed 66776K, reserved 1110016K
  class space    used 6003K, capacity 6536K, committed 6656K, reserved 1048576K
Event: 1067047.305 GC heap after
Heap after GC invocations=5904 (full 3):
 PSYoungGen      total 514560K, used 5261K [0x00000007a0000000, 0x00000007c0000000, 0x00000007c0000000)
  eden space 505344K, 0% used [0x00000007a0000000,0x00000007a0000000,0x00000007bed80000)
  from space 9216K, 57% used [0x00000007bed80000,0x00000007bf2a34e0,0x00000007bf680000)
  to   space 9216K, 0% used [0x00000007bf700000,0x00000007bf700000,0x00000007c0000000)
 ParOldGen       total 1457152K, used 1450182K [0x00000006c0000000, 0x0000000718f00000, 0x00000007a0000000)
  object space 1457152K, 99% used [0x00000006c0000000,0x0000000718831928,0x0000000718f00000)
 Metaspace       used 62477K, capacity 66518K, committed 66776K, reserved 1110016K
  class space    used 6003K, capacity 6536K, committed 6656K, reserved 1048576K
}
Event: 1067202.172 GC heap before
{Heap before GC invocations=5905 (full 3):
 PSYoungGen      total 514560K, used 510605K [0x00000007a0000000, 0x00000007c0000000, 0x00000007c0000000)
  eden space 505344K, 100% used [0x00000007a0000000,0x00000007bed80000,0x00000007bed80000)
  from space 9216K, 57% used [0x00000007bed80000,0x00000007bf2a34e0,0x00000007bf680000)
  to   space 9216K, 0% used [0x00000007bf700000,0x00000007bf700000,0x00000007c0000000)
 ParOldGen       total 1457152K, used 1450182K [0x00000006c0000000, 0x0000000718f00000, 0x00000007a0000000)
  object space 1457152K, 99% used [0x00000006c0000000,0x0000000718831928,0x0000000718f00000)
 Metaspace       used 62477K, capacity 66518K, committed 66776K, reserved 1110016K
  class space    used 6003K, capacity 6536K, committed 6656K, reserved 1048576K
Event: 1067202.209 GC heap after
Heap after GC invocations=5905 (full 3):
 PSYoungGen      total 507904K, used 9199K [0x00000007a0000000, 0x00000007c0000000, 0x00000007c0000000)
  eden space 498688K, 0% used [0x00000007a0000000,0x00000007a0000000,0x00000007be700000)
  from space 9216K, 99% used [0x00000007bf700000,0x00000007bfffbc08,0x00000007c0000000)
  to   space 12800K, 0% used [0x00000007be700000,0x00000007be700000,0x00000007bf380000)
 ParOldGen       total 1457152K, used 1456554K [0x00000006c0000000, 0x0000000718f00000, 0x00000007a0000000)
  object space 1457152K, 99% used [0x00000006c0000000,0x0000000718e6a828,0x0000000718f00000)
 Metaspace       used 62477K, capacity 66518K, committed 66776K, reserved 1110016K
  class space    used 6003K, capacity 6536K, committed 6656K, reserved 1048576K
}
Event: 1067202.209 GC heap before
{Heap before GC invocations=5906 (full 4):
 PSYoungGen      total 507904K, used 9199K [0x00000007a0000000, 0x00000007c0000000, 0x00000007c0000000)
  eden space 498688K, 0% used [0x00000007a0000000,0x00000007a0000000,0x00000007be700000)
  from space 9216K, 99% used [0x00000007bf700000,0x00000007bfffbc08,0x00000007c0000000)
  to   space 12800K, 0% used [0x00000007be700000,0x00000007be700000,0x00000007bf380000)
 ParOldGen       total 1457152K, used 1456554K [0x00000006c0000000, 0x0000000718f00000, 0x00000007a0000000)
  object space 1457152K, 99% used [0x00000006c0000000,0x0000000718e6a828,0x0000000718f00000)
 Metaspace       used 62477K, capacity 66518K, committed 66776K, reserved 1110016K
  class space    used 6003K, capacity 6536K, committed 6656K, reserved 1048576K
5 回复

-Xms1024M -Xmx4096M 准备调整为-Xms3g -Xmx3g 不知方向对不对

这机器总共才4G内存, 你配了-Xmx4096m,不死才怪

奇怪的是这个参数一直这样从来没死过 新功能发布后两周吧就oom了

新功能吃内存

来自炫酷的 NutzCN

添加回复
请先登陆
回到顶部