fatal error: runtime: out of memory
阅读原文时间:2023年07月08日阅读:1

[root@VM_0_10_centos frp_0.27.0_linux_amd64]# top
top - 21:09:19 up 2 days, 4 min, 2 users, load average: 0.00, 0.01, 0.00
Tasks: 89 total, 1 running, 88 sleeping, 0 stopped, 0 zombie
Cpu(s): 1.0%us, 0.3%sy, 0.0%ni, 98.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 1922248k total, 1850436k used, 71812k free, 1524k buffers
Swap: 0k total, 0k used, 0k free, 22156k cached
Unknown command - try 'h' for help
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
15945 confluen 20 0 2192m 916m 2480 S 0.3 **48.8 ** 6:35.41 java
1 root 20 0 19368 928 608 S 0.0 0.0 0:01.62 init
2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd
3 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/0
4 root 20 0 0 0 0 S 0.0 0.0 0:00.83 ksoftirqd/0
5 root RT 0 0 0 0 S 0.0 0.0 0:00.00 stopper/0
6 root RT 0 0 0 0 S 0.0 0.0 0:00.19 watchdog/0
7 root 20 0 0 0 0 S 0.0 0.0 0:07.91 events/0
8 root 20 0 0 0 0 S 0.0 0.0 0:00.00 events/0
9 root 20 0 0 0 0 S 0.0 0.0 0:00.00 events_long/0

处理

[root@VM_0_10_centos frp_0.27.0_linux_amd64]# ps aux | grep confluence 502 ** 15945** 0.2 48.8 2244912 938720 ? Sl Nov30 6:35 /opt/atlassian/confluence/jre//bin/java -Djava.util.logging.config.file=/opt/atlassian/confluence/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xms1024m -Xmx1024m -XX:MaxPermSize=256m -XX:+UseG1GC -Djava.awt.headless=true -Xloggc:/opt/atlassian/confluence/logs/gc-2019-11-30_21:18:35.log -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=2M -XX:-PrintGCDetails -XX:+PrintGCTimeStamps -XX:-PrintTenuringDistribution -Djava.endorsed.dirs=/opt/atlassian/confluence/endorsed -classpath /opt/atlassian/confluence/bin/bootstrap.jar:/opt/atlassian/confluence/bin/tomcat-juli.jar -Dcatalina.base=/opt/atlassian/confluence -Dcatalina.home=/opt/atlassian/confluence -Djava.io.tmpdir=/opt/atlassian/confluence/temp org.apache.catalina.startup.Bootstrap start
root 29794 0.0 0.0 103328 848 pts/1 S+ 21:09 0:00 grep confluence
[root@VM_0_10_centos frp_0.27.0_linux_amd64]# kill 15945
[root@VM_0_10_centos frp_0.27.0_linux_amd64]# ps aux | grep confluence
root 29846 0.0 0.0 103328 848 pts/1 S+ 21:09 0:00 grep confluence
[root@VM_0_10_centos frp_0.
27
.0_linux_amd64]# top
top - 21:12:17 up 2 days, 7 min, 2 users, load average: 0.01, 0.01, 0.00
Tasks: 88 total, 1 running, 87 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.3%us, 0.3%sy, 0.0%ni, 99.0%id, 0.3%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 1922248k total, 936176k used, 986072k free, 2172k buffers
Swap: 0k total, 0k used, 0k free, 43456k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1910 root 20 0 525m 10m 1696 S 0.7 0.6 8:21.38 barad_agent
1 root 20 0 19368 924 604 S 0.0 0.0 0:01.62 init
2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd
3 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/0
4 root 20 0 0 0 0 S 0.0 0.0 0:00.83 ksoftirqd/0
5 root RT 0 0 0 0 S 0.0 0.0 0:00.00 stopper/0