Jump to content

Out of memory: kill process apache2


Recommended Posts

Hi,

I have installed prestashop 1.5.4.1 to VPN, but when there comes about 20ppls server fall down and is still restarting, it isn't unreachable with some code, but it takes a long time to load index page. On VPN is linux and here is log from syslog

 

Aug 19 19:45:31 vm8410 kernel: [1545340.081258] php-cgi invoked oom-killer: gfp_mask=0x201da, order=0, oom_adj=0
Aug 19 19:45:31 vm8410 kernel: [1545340.081264] php-cgi cpuset=/ mems_allowed=0
Aug 19 19:45:31 vm8410 kernel: [1545340.081268] Pid: 1175, comm: php-cgi Not tainted 2.6.32-5-amd64 #1
Aug 19 19:45:31 vm8410 kernel: [1545340.081270] Call Trace:
Aug 19 19:45:31 vm8410 kernel: [1545340.081280]  [<ffffffff810b643c>] ? oom_kill_process+0x7f/0x23f
Aug 19 19:45:31 vm8410 kernel: [1545340.081285]  [<ffffffff8106bb5e>] ? timekeeping_get_ns+0xe/0x2e
Aug 19 19:45:31 vm8410 kernel: [1545340.081289]  [<ffffffff810b6960>] ? __out_of_memory+0x12a/0x141
Aug 19 19:45:31 vm8410 kernel: [1545340.081293]  [<ffffffff810b6ab7>] ? out_of_memory+0x140/0x172
Aug 19 19:45:31 vm8410 kernel: [1545340.081299]  [<ffffffff8117e6d1>] ? submit_bio+0xd6/0xf2
Aug 19 19:45:31 vm8410 kernel: [1545340.081303]  [<ffffffff810ba81c>] ? __alloc_pages_nodemask+0x4ec/0x5fc
Aug 19 19:45:31 vm8410 kernel: [1545340.081308]  [<ffffffff810bbd85>] ? __do_page_cache_readahead+0x9b/0x1b4
Aug 19 19:45:31 vm8410 kernel: [1545340.081312]  [<ffffffff810bbeba>] ? ra_submit+0x1c/0x20
Aug 19 19:45:31 vm8410 kernel: [1545340.081315]  [<ffffffff810b4b87>] ? filemap_fault+0x17d/0x2f6
Aug 19 19:45:31 vm8410 kernel: [1545340.081320]  [<ffffffff810cab26>] ? __do_fault+0x54/0x3c3
Aug 19 19:45:31 vm8410 kernel: [1545340.081324]  [<ffffffff810cce7a>] ? handle_mm_fault+0x3b8/0x80f
Aug 19 19:45:31 vm8410 kernel: [1545340.081328]  [<ffffffff8118e647>] ? _atomic_dec_and_lock+0x33/0x50
Aug 19 19:45:31 vm8410 kernel: [1545340.081334]  [<ffffffff812ff306>] ? do_page_fault+0x2e0/0x2fc
Aug 19 19:45:31 vm8410 kernel: [1545340.081338]  [<ffffffff812fd1a5>] ? page_fault+0x25/0x30
Aug 19 19:45:31 vm8410 kernel: [1545340.081341] Mem-Info:
Aug 19 19:45:31 vm8410 kernel: [1545340.081342] Node 0 DMA per-cpu:
Aug 19 19:45:31 vm8410 kernel: [1545340.081345] CPU    0: hi:    0, btch:   1 usd:   0
Aug 19 19:45:31 vm8410 kernel: [1545340.081347] CPU    1: hi:    0, btch:   1 usd:   0
Aug 19 19:45:31 vm8410 kernel: [1545340.081349] Node 0 DMA32 per-cpu:
Aug 19 19:45:31 vm8410 kernel: [1545340.081352] CPU    0: hi:  186, btch:  31 usd:   0
Aug 19 19:45:31 vm8410 kernel: [1545340.081354] CPU    1: hi:  186, btch:  31 usd:  29
Aug 19 19:45:31 vm8410 kernel: [1545340.081360] active_anon:353394 inactive_anon:133161 isolated_anon:17
Aug 19 19:45:31 vm8410 kernel: [1545340.081361]  active_file:119 inactive_file:241 isolated_file:79
Aug 19 19:45:31 vm8410 kernel: [1545340.081362]  unevictable:0 dirty:0 writeback:0 unstable:0
Aug 19 19:45:31 vm8410 kernel: [1545340.081363]  free:3473 slab_reclaimable:1977 slab_unreclaimable:4257
Aug 19 19:45:31 vm8410 kernel: [1545340.081365]  mapped:104673 shmem:118230 pagetables:13552 bounce:0
Aug 19 19:45:31 vm8410 kernel: [1545340.081367] Node 0 DMA free:8056kB min:40kB low:48kB high:60kB active_anon:3812kB inactive_anon:2400kB active_file:4kB inactive_file:12kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:15352kB mlocked:0kB dirty:0kB writeback:0kB mapped:1724kB shmem:1956kB slab_reclaimable:120kB slab_unreclaimable:464kB kernel_stack:488kB pagetables:384kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
Aug 19 19:45:31 vm8410 kernel: [1545340.081380] lowmem_reserve[]: 0 2004 2004 2004
Aug 19 19:45:31 vm8410 kernel: [1545340.081391] Node 0 DMA32 free:5836kB min:5704kB low:7128kB high:8556kB active_anon:1409764kB inactive_anon:530244kB active_file:472kB inactive_file:952kB unevictable:0kB isolated(anon):68kB isolated(file):316kB present:2052308kB mlocked:0kB dirty:0kB writeback:0kB mapped:416968kB shmem:470964kB slab_reclaimable:7788kB slab_unreclaimable:16564kB kernel_stack:1832kB pagetables:53824kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:128 all_unreclaimable? no
Aug 19 19:45:31 vm8410 kernel: [1545340.081406] lowmem_reserve[]: 0 0 0 0
Aug 19 19:45:31 vm8410 kernel: [1545340.081411] Node 0 DMA: 8*4kB 69*8kB 21*16kB 13*32kB 5*64kB 2*128kB 4*256kB 2*512kB 2*1024kB 1*2048kB 0*4096kB = 8056kB
Aug 19 19:45:31 vm8410 kernel: [1545340.081423] Node 0 DMA32: 1055*4kB 12*8kB 1*16kB 2*32kB 1*64kB 1*128kB 1*256kB 0*512kB 1*1024kB 0*2048kB 0*4096kB = 5868kB
Aug 19 19:45:31 vm8410 kernel: [1545340.081433] 118640 total pagecache pages
Aug 19 19:45:31 vm8410 kernel: [1545340.081435] 0 pages in swap cache
Aug 19 19:45:31 vm8410 kernel: [1545340.081438] Swap cache stats: add 0, delete 0, find 0/0
Aug 19 19:45:31 vm8410 kernel: [1545340.081440] Free swap  = 0kB
Aug 19 19:45:31 vm8410 kernel: [1545340.081442] Total swap = 0kB
Aug 19 19:45:31 vm8410 kernel: [1545340.090545] 524285 pages RAM
Aug 19 19:45:31 vm8410 kernel: [1545340.090547] 9016 pages reserved
Aug 19 19:45:31 vm8410 kernel: [1545340.090549] 267466 pages shared
Aug 19 19:45:31 vm8410 kernel: [1545340.090551] 390112 pages non-shared
Aug 19 19:45:31 vm8410 kernel: [1545340.090555] Out of memory: kill process 28025 (apache2) score 1202822 or a child
Aug 19 19:45:31 vm8410 kernel: [1545340.092381] Killed process 1121 (php-cgi)

 

I have turn cache ON. And backend is doing it too.

Could anyone help me please ? How can I track where could be problem or what can I do.

 

Thanks for every answer

 

P.S.: Url is : http://mocnyshop.sk

Link to comment
Share on other sites

ok, I tried set it to 512, but now I have to wait till customers come, its always about 7pm GMT +2. I think that there in Presta is something what is downloading so long or contains so much data.

 

I tried to get memory_get_usage at the footer of the site and I get about 18MB, isn't is so much ?

Link to comment
Share on other sites

×
×
  • Create New...