pilarj Posted August 19, 2013 Share Posted August 19, 2013 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 More sharing options...
tomerg3 Posted August 19, 2013 Share Posted August 19, 2013 How much ram do you have assigned to PHP? Link to comment Share on other sites More sharing options...
pilarj Posted August 19, 2013 Author Share Posted August 19, 2013 In php.ini is memory_limit set to -1 Link to comment Share on other sites More sharing options...
tomerg3 Posted August 19, 2013 Share Posted August 19, 2013 I have never seen -1 set as the memory limit, it needs to be an actual number. Link to comment Share on other sites More sharing options...
pilarj Posted August 19, 2013 Author Share Posted August 19, 2013 its default value, which was set by hosting provider and by documentation ( http://cz2.php.net/manual/en/ini.core.php#ini.memory-limit ), it means unlimited. Link to comment Share on other sites More sharing options...
tomerg3 Posted August 19, 2013 Share Posted August 19, 2013 Try setting it to 512 and see what error you get. It may be related to how Apache is installed on your server too. Is it a dedicated server, who set it up? Do you have a sysadmin to manage it? Link to comment Share on other sites More sharing options...
karolwild Posted August 19, 2013 Share Posted August 19, 2013 (edited) hello tomerg3 see xxx.info.php Edited August 19, 2013 by karolwild (see edit history) Link to comment Share on other sites More sharing options...
pilarj Posted August 20, 2013 Author Share Posted August 20, 2013 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 More sharing options...
Recommended Posts