内存不足,导致Java 进程被杀掉。
[ 1534.300650] Kernel panic - not syncing: Out of memory: system-wide panic_on_oom is enabled
[ 1534.301803] CPU: 5 PID: 2930 Comm: java Kdump: loaded Tainted: G O 5.10.0-60.18.0.50.r1083_58.hce2.x86_64 #1
[ 1534.303268] Hardware name: OpenStack Foundation OpenStack Nova, BIOS rel-1.10.2-0-g5f4c7b1-20181220_000000-szxrtosci10000 04/01/2014
[ 1534.304831] Call Trace:
[ 1534.305248] dump_stack+0x57/0x6e
[ 1534.305768] panic+0x1a9/0x410
[ 1534.306255] out_of_memory.cold+0x2f/0x8b
[ 1534.306860] __alloc_pages+0xeb7/0x1040
[ 1534.307436] pagecache_get_page+0x1e3/0x560
[ 1534.308068] filemap_fault+0x3a2/0x790
[ 1534.308656] ext4_filemap_fault+0x2d/0x50 [ext4]
[ 1534.309318] __do_fault+0x34/0x1e0
[ 1534.309854] do_read_fault+0x31/0xf0
[ 1534.310391] do_fault+0x75/0x150
[ 1534.310903] __handle_mm_fault+0x3f9/0x6f0
[ 1534.311648] handle_mm_fault+0xbc/0x2e0
[ 1534.312264] exc_page_fault+0x1db/0x5e0
[ 1534.312874] ? asm_exc_page_fault+0x8/0x30
[ 1534.313482] asm_exc_page_fault+0x1e/0x30
[ 1534.314092] RIP: 0033:0x7ff171d481aa
[ 1534.314638] Code: Unable to access opcode bytes at RIP 0x7ff171d48180.
一、可以关闭内核参数:
sudo vim /etc/sysctl.conf vm.panic_on_oom = 0 sudo sysctl -p
二、优化内存的使用
crash 信息查看