内存居高不下
#
4核8G
JDK:1.8.0_152-b16
启动参数:
-Xms5G
-Xmx5G
-Xmn2G
-XX:MetaspaceSize=256M
-XX:+UseParNewGC
运行一段时间后,top显示,RES 5.7G,内存使用率74%
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
xxx xxx 20 0 9600824 5.7g 7660 S 28.2 74.3 1661:03 java
Arthas 查看堆内存使用情况:
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
MEMORY
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
HEAP-MEMORY-USAGE 5154013184(4.80 GiB)/5368709120(5.00 GiB)/5154013184(4.80 GiB)/2446974200(2.28 GiB)
[committed/init/max/used]
NO-HEAP-MEMORY-USAGE 313065472(298.56 MiB)/2555904(2.44 MiB)/-1(-1 B)/293794536(280.18 MiB)
[committed/init/max/used]
PENDING-FINALIZE-COUNT 0
Memory used total max usage GC
heap 2460M 4915M 4915M 50.07% gc.parnew.count 5893
par_eden_space 1415M 1638M 1638M 86.39% gc.parnew.time(ms) 122270
par_survivor_space 70M 204M 204M 34.58% gc.marksweepcompact.count 6
tenured_gen 974M 3072M 3072M 31.73% gc.marksweepcompact.time(ms) 7047
nonheap 280M 298M -1 93.83%
code_cache 101M 103M 256M 39.78%
metaspace 157M 170M -1 92.11%
compressed_class_space 21M 24M 1024M 2.05%
direct 1M 1M - 100.00%
mapped 0K 0K - 100.00%
[~]$ cat /proc/pid/oom_score
745
NMT没有开启
目前怀疑存在堆外内存泄漏,还有其他排查方向吗?