2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

メモ: oom-killerを経験した

Last updated at Posted at 2015-01-28

参考

№2566 サーバー不調の原因について助言をお願いします。 - Web Patio - CentOSで自宅サーバー構築

ログ

/var/log/messages
[水  1月 28 16:14:46 2015] httpd invoked oom-killer: gfp_mask=0x280da, order=0, oom_score_adj=0
[水  1月 28 16:14:46 2015] httpd cpuset=/ mems_allowed=0
[水  1月 28 16:14:46 2015] CPU: 0 PID: 19472 Comm: httpd Not tainted 3.15.7-1-ARCH #1
[水  1月 28 16:14:46 2015] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.7.5-0-ge51488c-20140602_164612-nilsson.home.kraxel.org 04/01/2014
[水  1月 28 16:14:46 2015]  0000000000000000 00000000baffa112 ffff880027593a70 ffffffff8150880e
[水  1月 28 16:14:46 2015]  ffff88002ba79e90 ffff880027593ae8 ffffffff81508004 0000000000000000
[水  1月 28 16:14:46 2015]  0000000000000000 ffff880037d4b2f0 ffff88003cad0360 ffff880027593ab8
[水  1月 28 16:14:46 2015] Call Trace:
[水  1月 28 16:14:46 2015]  [<ffffffff8150880e>] dump_stack+0x4d/0x6f
[水  1月 28 16:14:46 2015]  [<ffffffff81508004>] dump_header+0xad/0x235
[水  1月 28 16:14:46 2015]  [<ffffffff8150aa86>] ? preempt_schedule_irq+0x46/0x80
[水  1月 28 16:14:46 2015]  [<ffffffff81143cac>] oom_kill_process+0x26c/0x3f0
[水  1月 28 16:14:46 2015]  [<ffffffff810d1ce0>] ? rcu_read_unlock_special.part.58+0x170/0x1e0
[水  1月 28 16:14:46 2015]  [<ffffffff8114456b>] out_of_memory+0x52b/0x580
[水  1月 28 16:14:46 2015]  [<ffffffff8114a13d>] __alloc_pages_nodemask+0xb3d/0xb50
[水  1月 28 16:14:46 2015]  [<ffffffff8118f43f>] alloc_pages_vma+0xaf/0x1c0
[水  1月 28 16:14:46 2015]  [<ffffffff8116f88b>] handle_mm_fault+0xdbb/0x1090
[水  1月 28 16:14:46 2015]  [<ffffffff8151157f>] __do_page_fault+0x18f/0x600
[水  1月 28 16:14:46 2015]  [<ffffffff81177651>] ? mprotect_fixup+0x151/0x260
[水  1月 28 16:14:46 2015]  [<ffffffff81511a12>] do_page_fault+0x22/0x30
[水  1月 28 16:14:46 2015]  [<ffffffff8150e538>] page_fault+0x28/0x30
[水  1月 28 16:14:46 2015] Mem-Info:
[水  1月 28 16:14:46 2015] Node 0 DMA per-cpu:
[水  1月 28 16:14:46 2015] CPU    0: hi:    0, btch:   1 usd:   0
[水  1月 28 16:14:46 2015] Node 0 DMA32 per-cpu:
[水  1月 28 16:14:46 2015] CPU    0: hi:  186, btch:  31 usd:  30
[水  1月 28 16:14:46 2015] active_anon:225560 inactive_anon:21 isolated_anon:0
 active_file:372 inactive_file:395 isolated_file:0
 unevictable:0 dirty:0 writeback:0 unstable:0
 free:12226 slab_reclaimable:2890 slab_unreclaimable:3903
 mapped:315 shmem:67 pagetables:5441 bounce:0
 free_cma:0
[水  1月 28 16:14:46 2015] Node 0 DMA free:4620kB min:700kB low:872kB high:1048kB active_anon:10676kB inactive_anon:0kB active_file:8kB inactive_file:0kB unevictable:0kB
[水  1月 28 16:14:46 2015] Node 0 DMA free:4620kB min:700kB low:872kB high:1048kB active_anon:10676kB inactive_anon:0kB active_file:8kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:15992kB managed:15908kB mlocked:0kB dirty:0kB writeback:0kB mapped:0kB shmem:4kB slab_reclaimable:124kB slab_unreclaimable:152kB kernel_stack:16kB pagetables:228kB unstable:0kB bounce:0kB free_cma:0kB writeback_tmp:0kB pages_scanned:8 all_unreclaimable? no
[水  1月 28 16:14:46 2015] lowmem_reserve[]: 0 980 980 980
[水  1月 28 16:14:46 2015] Node 0 DMA32 free:44284kB min:44352kB low:55440kB high:66528kB active_anon:891564kB inactive_anon:84kB active_file:1480kB inactive_file:1580kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:1032064kB managed:1006196kB mlocked:0kB dirty:0kB writeback:0kB mapped:1260kB shmem:264kB slab_reclaimable:11436kB slab_unreclaimable:15460kB kernel_stack:2432kB pagetables:21536kB unstable:0kB bounce:0kB free_cma:0kB writeback_tmp:0kB pages_scanned:247 all_unreclaimable? no
[水  1月 28 16:14:46 2015] lowmem_reserve[]: 0 0 0 0
[水  1月 28 16:14:46 2015] Node 0 DMA: 37*4kB (UEM) 21*8kB (UEM) 9*16kB (UE) 10*32kB (UE) 10*64kB (UEM) 3*128kB (UE) 3*256kB (EM) 2*512kB (UE) 1*1024kB (M) 0*2048kB 0*4096kB = 4620kB
[水  1月 28 16:14:46 2015] Node 0 DMA32: 485*4kB (UEM) 437*8kB (UEM) 334*16kB (UEM) 227*32kB (UE) 192*64kB (UEM) 63*128kB (UE) 15*256kB (UEM) 0*512kB 0*1024kB 1*2048kB (R) 0*4096kB = 44284kB
[水  1月 28 16:14:46 2015] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB
[水  1月 28 16:14:46 2015] 841 total pagecache pages
[水  1月 28 16:14:46 2015] 0 pages in swap cache
[水  1月 28 16:14:46 2015] Swap cache stats: add 0, delete 0, find 0/0
[水  1月 28 16:14:46 2015] Free swap  = 0kB
[水  1月 28 16:14:46 2015] Total swap = 0kB
[水  1月 28 16:14:46 2015] 262014 pages RAM
[水  1月 28 16:14:46 2015] 0 pages HighMem/MovableOnly
[水  1月 28 16:14:46 2015] 6467 pages reserved
[水  1月 28 16:14:46 2015] 0 pages hwpoisoned
[水  1月 28 16:14:46 2015] [ pid ]   uid  tgid total_vm      rss nr_ptes swapents oom_score_adj name
[水  1月 28 16:14:46 2015] [  110]     0   110   106658      641      75        0             0 systemd-journal
[水  1月 28 16:14:46 2015] [  130]     0   130     6476      169      15        0         -1000 systemd-udevd
[水  1月 28 16:14:46 2015] [  148]    89   148   147530    27295      98        0             0 mysqld
[水  1月 28 16:14:46 2015] [  151]    81   151     6209       96      17        0          -900 dbus-daemon
[水  1月 28 16:14:46 2015] [  161]     0   161     5043       54      14        0             0 fcron
[水  1月 28 16:14:46 2015] [  162]     0   162     3826       70      11        0             0 systemd-logind
[水  1月 28 16:14:46 2015] [  167]     0   167     2217       29      10        0             0 agetty
[水  1月 28 16:14:46 2015] [  232]     0   232     3882       76      13        0             0 dovecot
[水  1月 28 16:14:46 2015] [  263]    76   263     2340       37      11        0             0 anvil
[水  1月 28 16:14:46 2015] [  264]     0   264     2371       99      11        0             0 log
[水  1月 28 16:14:46 2015] [  375]     0   375     3105       61      11        0             0 master
[水  1月 28 16:14:46 2015] [  377]    73   377    16643      288      32        0             0 qmgr
[水  1月 28 16:14:46 2015] [  390]    73   390    16620      253      33        0             0 tlsmgr
[水  1月 28 16:14:46 2015] [ 5698]     0  5698    10003      148      25        0         -1000 sshd
[水  1月 28 16:14:46 2015] [20435]     0 20435   107479    82107     182        0             0 pdns_recursor
[水  1月 28 16:14:46 2015] [21286]  1207 21286     3830      208      13        0             0 imap
[水  1月 28 16:14:46 2015] [ 4997]     0  4997     6952       97      17        0             0 vsftpd
[水  1月 28 16:14:46 2015] [15525]     0 15525    56656     1247     112        0             0 httpd
[水  1月 28 16:14:46 2015] [16909]    33 16909    61285     6206     120        0             0 httpd
[水  1月 28 16:14:46 2015] [16920]    33 16920    59579     6163     117        0             0 httpd
[水  1月 28 16:14:46 2015] [17806]    99 17806     8018      109      21        0             0 vsftpd
[水  1月 28 16:14:46 2015] [17808]  1182 17808     8043      108      20        0             0 vsftpd
[水  1月 28 16:14:46 2015] [18380]    73 18380    16562      207      33        0             0 pickup
[水  1月 28 16:14:46 2015] [18537]    33 18537    79718     6204     120        0             0 httpd
[水  1月 28 16:14:46 2015] [18876]    33 18876    81591     7570     127        0             0 httpd
[水  1月 28 16:14:46 2015] [19012]    33 19012    58993     6100     116        0             0 httpd
[水  1月 28 16:14:46 2015] [19292]    33 19292    60533     5443     117        0             0 httpd
[水  1月 28 16:14:46 2015] [19298]    33 19298    58090     3047     113        0             0 httpd
[水  1月 28 16:14:46 2015] [19307]    33 19307    60389     5284     117        0             0 httpd
[水  1月 28 16:14:46 2015] [19331]    33 19331    60389     5283     117        0             0 httpd
[水  1月 28 16:14:46 2015] [19405]    33 19405    60389     5283     117        0             0 httpd
[水  1月 28 16:14:46 2015] [19410]     0 19410     2956      106      11        0             0 config
[水  1月 28 16:14:46 2015] [19411]    76 19411    13601      213      29        0             0 auth
[水  1月 28 16:14:46 2015] [19412]     0 19412    14125      244      30        0             0 auth
[水  1月 28 16:14:46 2015] [19443]    33 19443    60389     5267     117        0             0 httpd
[水  1月 28 16:14:46 2015] [19449]    33 19449    61078     5800     118        0             0 httpd
[水  1月 28 16:14:46 2015] [19450]    33 19450    61142     5855     118        0             0 httpd
[水  1月 28 16:14:46 2015] [19453]    33 19453    60687     5541     117        0             0 httpd
[水  1月 28 16:14:46 2015] [19454]    33 19454    60687     5541     117        0             0 httpd
[水  1月 28 16:14:46 2015] [19455]    33 19455    76492     5244     117        0             0 httpd
[水  1月 28 16:14:46 2015] [19456]    33 19456    60687     5541     117        0             0 httpd
[水  1月 28 16:14:46 2015] [19461]    33 19461    75757     4216     115        0             0 httpd
[水  1月 28 16:14:46 2015] [19462]    33 19462    76492     4977     117        0             0 httpd
[水  1月 28 16:14:46 2015] [19463]    33 19463    75961     4437     115        0             0 httpd
[水  1月 28 16:14:46 2015] [19465]    33 19465    76023     4474     116        0             0 httpd
[水  1月 28 16:14:46 2015] [19466]    33 19466    75026     3827     114        0             0 httpd
[水  1月 28 16:14:46 2015] [19467]    33 19467    75961     4413     115        0             0 httpd
[水  1月 28 16:14:46 2015] [19471]    33 19471    75082     3637     114        0             0 httpd
[水  1月 28 16:14:46 2015] [19472]    33 19472    75781     4187     115        0             0 httpd
[水  1月 28 16:14:46 2015] [19474]    33 19474    75082     3633     114        0             0 httpd
[水  1月 28 16:14:46 2015] [19475]    33 19475    40823     1167      81        0             0 httpd
[水  1月 28 16:14:46 2015] [19476]    33 19476    56689     1261     106        0             0 httpd
[水  1月 28 16:14:46 2015] [19477]    33 19477    55591     1265     107        0             0 httpd
[水  1月 28 16:14:46 2015] [19478]    33 19478    40422     1114      81        0             0 httpd
[水  1月 28 16:14:46 2015] [19480]    33 19480    56656     1249     106        0             0 httpd
[水  1月 28 16:14:46 2015] [19482]    33 19482    56656     1249     106        0             0 httpd
[水  1月 28 16:14:46 2015] [19483]    33 19483    56656     1249     106        0             0 httpd
[水  1月 28 16:14:46 2015] [19484]    33 19484    56656     1249     106        0             0 httpd
[水  1月 28 16:14:46 2015] [19485]    33 19485    56656     1249     106        0             0 httpd
[水  1月 28 16:14:46 2015] [19488]    33 19488    56656     1249     106        0             0 httpd
[水  1月 28 16:14:46 2015] [19491]    33 19491    56656     1249     106        0             0 httpd
[水  1月 28 16:14:46 2015] [19492]    33 19492    56656     1249     106        0             0 httpd
[水  1月 28 16:14:46 2015] [19493]    33 19493    56656     1249     106        0             0 httpd
[水  1月 28 16:14:46 2015] [19494]    33 19494    56656     1249     106        0             0 httpd
[水  1月 28 16:14:46 2015] [19495]    33 19495    56656     1249     106        0             0 httpd
[水  1月 28 16:14:46 2015] Out of memory: Kill process 20435 (pdns_recursor) score 312 or sacrifice child
[水  1月 28 16:14:51 2015] Killed process 20435 (pdns_recursor) total-vm:429916kB, anon-rss:328428kB, file-rss:0kB

apache 2.4.10

対応(?)

/etc/php/php.ini
-memory_limit=128M
+memory_limit=64M
sudo systemctl restart httpd
$ php -i | grep memory_limit
memory_limit => 64M => 64M

念のためOSも再起動した。しばらく様子見る。

pdns-recursorも原因?

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?