Linux Java 进程占用内存飙高原因,导致 Linux 强杀,求大神指点?

2018-04-02 13:17:56 +08:00
 liuwenfeng554

代码没有内存泄露,长时间开着内存一直在增加,导致某个大的被杀掉

[root@stream logs]# free -g total used free shared buff/cache available Mem: 15 8 5 0 1 7 Swap: 0 0 0

[root@stream logs]# top top - 13:14:08 up 6 days, 2:02, 3 users, load average: 0.15, 0.13, 0.14 Tasks: 206 total, 1 running, 205 sleeping, 0 stopped, 0 zombie %Cpu(s): 1.1 us, 0.2 sy, 0.0 ni, 98.6 id, 0.0 wa, 0.0 hi, 0.1 si, 0.0 st KiB Mem : 16267868 total, 5757884 free, 8479136 used, 2030848 buff/cache KiB Swap: 0 total, 0 free, 0 used. 7413668 avail Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
23392 root 20 0 3764144 149368 14068 S 4.3 0.9 0:07.10 java
23267 root 20 0 3766192 166640 14128 S 1.0 1.0 0:09.20 java
24153 root 20 0 3764144 146768 14108 S 0.7 0.9 0:07.43 java
24411 root 20 0 3766192 194480 14068 S 0.7 1.2 0:31.40 java
22545 root 20 0 3764144 133624 13916 S 0.3 0.8 0:04.16 java
22755 root 20 0 3766192 192436 14052 S 0.3 1.2 0:08.19 java
22971 root 20 0 3764144 146672 14052 S 0.3 0.9 0:06.63 java
23139 root 20 0 3766192 153868 14108 S 0.3 0.9 0:08.26 java
23308 root 20 0 3766192 159940 14120 S 0.3 1.0 0:09.29 java
23350 root 20 0 3766192 148472 14056 S 0.3 0.9 0:07.29 java
23440 root 20 0 3766192 146636 14056 S 0.3 0.9 0:06.98 java
23476 root 20 0 3766192 151900 14124 S 0.3 0.9 0:08.16 java
23689 root 20 0 3766192 157112 14112 S 0.3 1.0 0:08.07 java
23860 root 20 0 3766192 148032 14096 S 0.3 0.9 0:07.55 java
23898 root 20 0 3764144 128280 14020 S 0.3 0.8 0:06.04 java
23989 root 20 0 3766192 181688 14140 S 0.3 1.1 0:13.62 java
24111 root 20 0 3766192 142628 14072 S 0.3 0.9 0:06.53 java
24363 root 20 0 3764144 145956 14056 S 0.3 0.9 0:07.48 java
24446 root 20 0 3766192 171128 14056 S 0.3 1.1 0:11.92 java
24616 root 20 0 3764144 148288 14068 S 0.3 0.9 0:07.54 java

1297 次点击
所在节点   2018
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/443509

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX