Public bug reported: Binary package hint: apache2
After upgrading my web server from Ubuntu Gutsy to Hardy, I couldn't get Apache 2 working correctly. I thought at first, that I was experiencing this bug : #224945 . But this one deals with memory leaks when mod_ssl is enabled. So, because I'm not using it on apache, I've decided to unload it. But it hasn't changed a thing. I've also updated my apache's version to get the latest, with the bug fixed. Nothing has changed so far... My problem is, after approximately four hours of execution, apache is overloading and taking all the memory and the swap so that my system produces an Out of memory error which wants to kill apache2 but doesn't succeed, which leads to a system crash. The weird thing is that the OOM error sometimes tries to kill other processes... Here's a dump from /var/log/syslog when an OOM happens : May 3 19:12:15 yoda kernel: [ 8267.512850] Out of memory: kill process 7986 (apache2) score 19064 or a child May 3 19:12:15 yoda kernel: [ 8267.513008] Killed process 7986 (apache2) May 3 19:12:15 yoda kernel: [ 8271.323940] apache2 invoked oom-killer: gfp_mask=0x1201d2, order=0, oomkilladj=0 May 3 19:12:15 yoda kernel: [ 8271.323974] Pid: 8012, comm: apache2 Not tainted 2.6.24-16-server #1 May 3 19:12:15 yoda kernel: [ 8271.324051] [oom_kill_process+0x10a/0x120] oom_kill_process+0x10a/0x120 May 3 19:12:15 yoda kernel: [ 8271.324136] [out_of_memory+0x167/0x1a0] out_of_memory+0x167/0x1a0 May 3 19:12:15 yoda kernel: [ 8271.324186] [agpgart:__alloc_pages+0x34c/0x380] __alloc_pages+0x34c/0x380 May 3 19:12:15 yoda kernel: [ 8271.324248] [__do_page_cache_readahead+0x11d/0x240] __do_page_cache_readahead+0x11d/0x240 May 3 19:12:15 yoda kernel: [ 8271.324314] [do_page_cache_readahead+0x4c/0x70] do_page_cache_readahead+0x4c/0x70 May 3 19:12:15 yoda kernel: [ 8271.324344] [filemap_fault+0x2f2/0x420] filemap_fault+0x2f2/0x420 May 3 19:12:15 yoda kernel: [ 8271.324408] [__do_fault+0x83/0x4c0] __do_fault+0x83/0x4c0 May 3 19:12:15 yoda kernel: [ 8271.324437] [libata:kunmap_atomic+0x2d/0x2e90] kunmap_atomic+0x2d/0x80 May 3 19:12:15 yoda kernel: [ 8271.324480] [do_wp_page+0x460/0x650] do_wp_page+0x460/0x650 May 3 19:12:15 yoda kernel: [ 8271.324510] [deadline_move_request+0x59/0x70] deadline_move_request+0x59/0x70 May 3 19:12:15 yoda kernel: [ 8271.324527] [elv_dispatch_add_tail+0x1c/0x60] elv_dispatch_add_tail+0x1c/0x60 May 3 19:12:15 yoda kernel: [ 8271.324590] [handle_mm_fault+0x21b/0xb80] handle_mm_fault+0x21b/0xb80 May 3 19:12:15 yoda kernel: [ 8271.324697] [sched_clock+0x13/0x30] sched_clock+0x13/0x30 May 3 19:12:15 yoda kernel: [ 8271.324771] [do_page_fault+0x143/0x900] do_page_fault+0x143/0x900 May 3 19:12:15 yoda kernel: [ 8271.324797] [__do_softirq+0x82/0x110] __do_softirq+0x82/0x110 May 3 19:12:15 yoda kernel: [ 8271.324864] [do_page_fault+0x0/0x900] do_page_fault+0x0/0x900 May 3 19:12:15 yoda kernel: [ 8271.324881] [error_code+0x72/0x78] error_code+0x72/0x78 May 3 19:12:15 yoda kernel: [ 8271.324920] [unix_create1+0x50/0x120] unix_create1+0x50/0x120 May 3 19:12:15 yoda kernel: [ 8271.324971] ======================= May 3 19:12:15 yoda kernel: [ 8271.324979] Mem-info: May 3 19:12:15 yoda kernel: [ 8271.324986] DMA per-cpu: May 3 19:12:15 yoda kernel: [ 8271.324996] CPU 0: Hot: hi: 0, btch: 1 usd: 0 Cold: hi: 0, btch: 1 usd: 0 May 3 19:12:15 yoda kernel: [ 8271.325008] Normal per-cpu: May 3 19:12:15 yoda kernel: [ 8271.325018] CPU 0: Hot: hi: 186, btch: 31 usd: 143 Cold: hi: 62, btch: 15 usd: 52 May 3 19:12:15 yoda kernel: [ 8271.325035] Active:86718 inactive:10 dirty:0 writeback:0 unstable:0 May 3 19:12:15 yoda kernel: [ 8271.325042] free:981 slab:3338 mapped:1 pagetables:1909 bounce:0 May 3 19:12:15 yoda kernel: [ 8271.325058] DMA free:1556kB min:104kB low:128kB high:156kB active:10512kB inactive:0kB present:16256kB pages_scanned:52482 all_unreclaimable? yes May 3 19:12:15 yoda kernel: [ 8271.325071] lowmem_reserve[]: 0 364 364 364 May 3 19:12:15 yoda kernel: [ 8271.325090] Normal free:2368kB min:2384kB low:2980kB high:3576kB active:336360kB inactive:40kB present:372812kB pages_scanned:540939 all_unreclaimable? yes May 3 19:12:15 yoda kernel: [ 8271.325104] lowmem_reserve[]: 0 0 0 0 May 3 19:12:15 yoda kernel: [ 8271.325116] DMA: 1*4kB 0*8kB 1*16kB 0*32kB 0*64kB 0*128kB 0*256kB 1*512kB 1*1024kB 0*2048kB 0*4096kB = 1556kB May 3 19:12:15 yoda kernel: [ 8271.325148] Normal: 31*4kB 0*8kB 0*16kB 0*32kB 1*64kB 1*128kB 2*256kB 1*512kB 1*1024kB 0*2048kB 0*4096kB = 2364kB May 3 19:12:15 yoda kernel: [ 8271.325184] Swap cache: add 0, delete 0, find 0/0, race 0+0 May 3 19:12:15 yoda kernel: [ 8271.325192] Free swap = 0kB May 3 19:12:15 yoda kernel: [ 8271.325200] Total swap = 0kB May 3 19:12:15 yoda kernel: [ 8271.325206] Free swap: 0kB May 3 19:12:15 yoda kernel: [ 8271.352327] 98032 pages of RAM May 3 19:12:15 yoda kernel: [ 8271.352343] 0 pages of HIGHMEM May 3 19:12:15 yoda kernel: [ 8271.352349] 1953 reserved pages May 3 19:12:15 yoda kernel: [ 8271.352355] 349943 pages shared May 3 19:12:15 yoda kernel: [ 8271.352361] 0 pages swap cached May 3 19:12:15 yoda kernel: [ 8271.352367] 0 pages dirty May 3 19:12:15 yoda kernel: [ 8271.352373] 0 pages writeback May 3 19:12:15 yoda kernel: [ 8271.352378] 1 pages mapped May 3 19:12:15 yoda kernel: [ 8271.352384] 3338 pages slab May 3 19:12:15 yoda kernel: [ 8271.352390] 1909 pages pagetables I can't tell you how to reproduce this bug because I don't know it yet, but I'm pretty sure it's an apache problem (or related with apache) because when it's not launched, this problem doesn't happen. I'm using Ubuntu Hardy Heron (8.04 LTS) Server with Apache 2.2.8-1 (it's the same with 2.2.8-4 by the way), libapache2-mod-php5 (5.2.4-5), MySQL (5.0.51a). Thank you for helping PS : Sorry for my English, I'm French... ** Affects: apache2 (Ubuntu) Importance: Undecided Status: New -- Apache 2 produces an OOM after 4 hours using https://bugs.launchpad.net/bugs/230878 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to apache2 in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs