1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.1 Server Randomly Drops

Discussion in 'Troubleshooting and Problems' started by eccentricson, Jun 11, 2012.

  1. eccentricson

    eccentricson Member


    I'm looking through the server logs when the server crashes and it seems to be running out of memory. This just started happening everyday, recently. Within the last 2-3 weeks. Here's an entry from the messages file on the server:


    Jun 10 10:38:58 pure-ftpd: (?@127.0.0.1) [INFO] __cpanel__service__auth__ftpd__Z296FPlyOlxyfOAO891ULsNd4VOeEWNUMrP72tIGZA20HEOwq2U1bNFdoO2ztqly is now logged in
    Jun 10 10:38:58 pure-ftpd: (__cpanel__service__auth__ftpd__Z296FPlyOlxyfOAO891ULsNd4VOeEWNUMrP72tIGZA20HEOwq2U1bNFdoO2ztqly@127.0.0.1) [INFO] Logout.
    Jun 10 10:42:05 kernel: php invoked oom-killer: gfp_mask=0x201d2, order=0, oomkilladj=0
    Jun 10 10:42:10 kernel:
    Jun 10 10:42:10 kernel: Call Trace:
    Jun 10 10:42:13 kernel: [<ffffffff802bf71b>] out_of_memory+0x8b/0x203
    Jun 10 10:42:13 kernel: [<ffffffff8020f947>] __alloc_pages+0x27f/0x308
    Jun 10 10:42:13 kernel: [<ffffffff802138db>] __do_page_cache_readahead+0xc6/0x1ab
    Jun 10 10:42:13 kernel: [<ffffffff802141c7>] filemap_nopage+0x14c/0x360
    Jun 10 10:42:13 kernel: [<ffffffff80208e8c>] __handle_mm_fault+0x442/0x1445
    Jun 10 10:42:13 kernel: [<ffffffff8026769a>] do_page_fault+0xf7b/0x12e0
    Jun 10 10:42:13 kernel: [<ffffffff802297cf>] do_brk+0x1c6/0x273
    Jun 10 10:42:13 kernel: [<ffffffff80264931>] _spin_lock_irqsave+0x9/0x14
    Jun 10 10:42:13 kernel: [<ffffffff8026082b>] error_exit+0x0/0x6e
    Jun 10 10:42:13 kernel:
    Jun 10 10:42:15 kernel: Mem-info:
    Jun 10 10:42:15 kernel: DMA per-cpu:
    Jun 10 10:42:15 kernel: cpu 0 hot: high 186, batch 31 used:115
    Jun 10 10:42:15 kernel: cpu 0 cold: high 62, batch 15 used:52
    Jun 10 10:42:15 kernel: cpu 1 hot: high 186, batch 31 used:24
    Jun 10 10:42:15 kernel: cpu 1 cold: high 62, batch 15 used:54
    Jun 10 10:42:15 kernel: DMA32 per-cpu: empty
    Jun 10 10:42:15 kernel: Normal per-cpu: empty
    Jun 10 10:42:15 kernel: HighMem per-cpu: empty
    Obviously, it's running out of memory on the server, but why? What started killing the memory?
    Is there anyway I can check to see if it's a certain plugin?
    Thanks!
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  3. eccentricson

    eccentricson Member

    Not quite a server problem. What is asking for the memory? The OOM Killer is crashing it, but what is causing the OOM Killer to intervene? A plugin of some kind?
     
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    I have never dealt with this problem before. But my understanding is that your server is out of memory so OOM Killer begins randomly killing processes. The question becomes, what is consuming all of your memory? If you run "top" then you can look for memory-heavy processes.
     
  5. eccentricson

    eccentricson Member

    More than likely, top will show php, but I can build a script to capture that every 5 minutes so I can review.. Might not be a bad idea. Xenforo doesn't have anything that is like a debugger to figure out which plugin it is?
     
  6. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    XenForo is subject to PHP's memory_limit which should prevent memory exhaustion for PHP applications like XenForo. If PHP is responsible for consuming all of your memory then you need to look at your PHP configuration and not client applications like XenForo.

    A memory_limit error in XenForo would be of the form, "Allowed memory size of X bytes exhausted (tried to allocate Y bytes)." An error like this would show on your forum pages. The error you are getting is different.
     

Share This Page