V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
s609926202
V2EX  ›  服务器

腾讯云轻量服务器内存溢出,导致服务不可用

  •  
  •   s609926202 · 2023-02-03 10:54:49 +08:00 · 1880 次点击
    这是一个创建于 670 天前的主题,其中的信息可能已经有所发展或是发生改变。

    打印日志 /var/log/messages 如下: https://files.catbox.moe/sjktiv.txt

    提交工单说是 YDservice 导致的,如下:

    Feb  2 15:43:43 erp kernel: YDService invoked oom-killer: gfp_mask=0x201da, order=0, oom_score_adj=0
    Feb  2 15:43:43 erp kernel: YDService cpuset=/ mems_allowed=0
    Feb  2 15:43:43 erp kernel: CPU: 3 PID: 145762 Comm: YDService Kdump: loaded Tainted: G               ------------ T 3.10.0-1160.76.1.el7.x86_64 #1
    Feb  2 15:43:43 erp kernel: Hardware name: Tencent Cloud CVM, BIOS seabios-1.9.1-qemu-project.org 04/01/2014
    Feb  2 15:43:43 erp kernel: Call Trace:
    Feb  2 15:43:43 erp kernel: [<ffffffffba5865c9>] dump_stack+0x19/0x1b
    Feb  2 15:43:43 erp kernel: [<ffffffffba581668>] dump_header+0x90/0x229
    Feb  2 15:43:43 erp kernel: [<ffffffffb9f06a42>] ? ktime_get_ts64+0x52/0xf0
    Feb  2 15:43:43 erp kernel: [<ffffffffb9f5e0ff>] ? delayacct_end+0x8f/0xb0
    Feb  2 15:43:43 erp kernel: [<ffffffffb9fc25ad>] oom_kill_process+0x2cd/0x490
    Feb  2 15:43:43 erp kernel: [<ffffffffb9fc1f9d>] ? oom_unkillable_task+0xcd/0x120
    Feb  2 15:43:43 erp kernel: [<ffffffffb9fc2c9a>] out_of_memory+0x31a/0x500
    Feb  2 15:43:43 erp kernel: [<ffffffffb9fc9894>] __alloc_pages_nodemask+0xad4/0xbe0
    Feb  2 15:43:43 erp kernel: [<ffffffffba0193b8>] alloc_pages_current+0x98/0x110
    Feb  2 15:43:43 erp kernel: [<ffffffffb9fbe057>] __page_cache_alloc+0x97/0xb0
    Feb  2 15:43:43 erp kernel: [<ffffffffb9fc1000>] filemap_fault+0x270/0x420
    Feb  2 15:43:43 erp kernel: [<ffffffffc0579756>] ext4_filemap_fault+0x36/0x50 [ext4]
    Feb  2 15:43:43 erp kernel: [<ffffffffb9fee7da>] __do_fault.isra.61+0x8a/0x100
    Feb  2 15:43:43 erp kernel: [<ffffffffb9feed8c>] do_read_fault.isra.63+0x4c/0x1b0
    Feb  2 15:43:43 erp kernel: [<ffffffffb9ff65d0>] handle_mm_fault+0xa20/0xfb0
    Feb  2 15:43:43 erp kernel: [<ffffffffba594653>] __do_page_fault+0x213/0x500
    Feb  2 15:43:43 erp kernel: [<ffffffffba594a26>] trace_do_page_fault+0x56/0x150
    Feb  2 15:43:43 erp kernel: [<ffffffffba593fa2>] do_async_page_fault+0x22/0xf0
    Feb  2 15:43:43 erp kernel: [<ffffffffba5907a8>] async_page_fault+0x28/0x30
    Feb  2 15:43:43 erp kernel: Mem-Info:
    Feb  2 15:43:43 erp kernel: active_anon:1066364 inactive_anon:702010 isolated_anon:0#012 active_file:7190 inactive_file:13796 isolated_file:0#012 unevictable:0 dirty:7 writeback:1 unstable:0#012 slab_reclaimable:22147 slab_unreclaimable:31150#012 mapped:1269 shmem:162 pagetables:32924 bounce:0#012 free:26222 free_pcp:963 free_cma:0
    Feb  2 15:43:43 erp kernel: Node 0 DMA free:15892kB min:132kB low:164kB high:196kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:15992kB managed:15908kB mlocked:0kB dirty:0kB writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:0kB slab_unreclaimable:16kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? yes
    Feb  2 15:43:43 erp kernel: lowmem_reserve[]: 0 2830 7802 7802
    Feb  2 15:43:43 erp kernel: Node 0 DMA32 free:53216kB min:24468kB low:30584kB high:36700kB active_anon:1178284kB inactive_anon:1309888kB active_file:18644kB inactive_file:30232kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:3129208kB managed:2898776kB mlocked:0kB dirty:24kB writeback:4kB mapped:3624kB shmem:164kB slab_reclaimable:47604kB slab_unreclaimable:66460kB kernel_stack:28704kB pagetables:51644kB unstable:0kB bounce:0kB free_pcp:2120kB local_pcp:364kB free_cma:0kB writeback_tmp:0kB pages_scanned:5386 all_unreclaimable? no
    Feb  2 15:43:43 erp kernel: lowmem_reserve[]: 0 0 4971 4971
    Feb  2 15:43:43 erp kernel: Node 0 Normal free:44576kB min:42976kB low:53720kB high:64464kB active_anon:3087172kB inactive_anon:1498152kB active_file:10632kB inactive_file:21084kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:5242880kB managed:5093932kB mlocked:0kB dirty:4kB writeback:0kB mapped:1452kB shmem:484kB slab_reclaimable:40984kB slab_unreclaimable:58124kB kernel_stack:72672kB pagetables:80052kB unstable:0kB bounce:0kB free_pcp:2024kB local_pcp:240kB free_cma:0kB writeback_tmp:0kB pages_scanned:35383 all_unreclaimable? no
    Feb  2 15:43:43 erp kernel: lowmem_reserve[]: 0 0 0 0
    Feb  2 15:43:43 erp kernel: Node 0 DMA: 1*4kB (U) 0*8kB 1*16kB (U) 0*32kB 2*64kB (U) 1*128kB (U) 1*256kB (U) 0*512kB 1*1024kB (U) 1*2048kB (M) 3*4096kB (M) = 15892kB
    Feb  2 15:43:43 erp kernel: Node 0 DMA32: 2633*4kB (UEM) 302*8kB (UEM) 485*16kB (UEM) 451*32kB (EM) 155*64kB (EM) 66*128kB (UEM) 5*256kB (E) 0*512kB 0*1024kB 0*2048kB 0*4096kB = 54788kB
    Feb  2 15:43:43 erp kernel: Node 0 Normal: 787*4kB (UEM) 804*8kB (UEM) 854*16kB (UEM) 328*32kB (UEM) 134*64kB (UEM) 19*128kB (EM) 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 44748kB
    Feb  2 15:43:43 erp kernel: Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=1048576kB
    Feb  2 15:43:43 erp kernel: Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB
    Feb  2 15:43:43 erp kernel: 26945 total pagecache pages
    Feb  2 15:43:43 erp kernel: 6381 pages in swap cache
    Feb  2 15:43:43 erp kernel: Swap cache stats: add 7984839, delete 7978489, find 45854679/47861074
    Feb  2 15:43:43 erp kernel: Free swap  = 0kB
    Feb  2 15:43:43 erp kernel: Total swap = 4194300kB
    Feb  2 15:43:43 erp kernel: 2097020 pages RAM
    Feb  2 15:43:43 erp kernel: 0 pages HighMem/MovableOnly
    Feb  2 15:43:43 erp kernel: 94866 pages reserved
    

    看不太明白,请教下是 YDservice 导致的,还是 chrome 进程(日志文件中)太多导致的?

    2 条回复    2023-02-03 13:24:31 +08:00
    opengps
        1
    opengps  
       2023-02-03 11:24:51 +08:00
    YDService 确实 oom 了,但是 chrome 也确实占据了太多内存,资源不够了。只要原因应该是 chrome
    YDService 平常占用资源很少,没了他就丧失了在阿里云重置密码等功能,建议保留
    s609926202
        2
    s609926202  
    OP
       2023-02-03 13:24:31 +08:00
    经过技术支持再次排查,确认非 YDService 导致的,而是内存溢出导致,基本可以确认是 chrome 进程开开多导致了、、
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5479 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 09:00 · PVG 17:00 · LAX 01:00 · JFK 04:00
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.