[Sun Jan 27 10:39:48 2008] [apc-error] apc_mmap: mmap failed: Cannot allocate memory

Discussion in 'PHP' started by jmatthews, Jan 27, 2008.

  1. jmatthews

    jmatthews New Member

    After installing 3.3.4, this is all that's in stderr.log

    [Sun Jan 27 10:39:39 2008] [apc-error] apc_mmap: mmap failed: Cannot allocate memory
    [Sun Jan 27 10:39:39 2008] [apc-error] apc_mmap: mmap failed: Cannot allocate memory
    [Sun Jan 27 10:39:39 2008] [apc-error] apc_mmap: mmap failed: Cannot allocate memory
    [Sun Jan 27 10:39:46 2008] [apc-error] apc_mmap: mmap failed: Cannot allocate memory
    [Sun Jan 27 10:39:46 2008] [apc-error] apc_mmap: mmap failed: Cannot allocate memory
    [Sun Jan 27 10:39:46 2008] [apc-error] apc_mmap: mmap failed: Cannot allocate memory
    [Sun Jan 27 10:39:46 2008] [apc-error] apc_mmap: mmap failed: Cannot allocate memory
    [Sun Jan 27 10:39:47 2008] [apc-error] apc_mmap: mmap failed: Cannot allocate memory
    [Sun Jan 27 10:39:47 2008] [apc-error] apc_mmap: mmap failed: Cannot allocate memory
    [Sun Jan 27 10:39:48 2008] [apc-error] apc_mmap: mmap failed: Cannot allocate memory
    [Sun Jan 27 10:39:48 2008] [apc-error] apc_mmap: mmap failed: Cannot allocate memory
    [Sun Jan 27 10:39:48 2008] [apc-error] apc_mmap: mmap failed: Cannot allocate memory
    [Sun Jan 27 10:39:48 2008] [apc-error] apc_mmap: mmap failed: Cannot allocate memory
    [Sun Jan 27 10:39:48 2008] [apc-error] apc_mmap: mmap failed: Cannot allocate memory



    ---------------
    serverlog notice:
    33176-0#[site]] connection to [uds://tmp/lshttpd/lsphp.sock] on request #0, error: Connection reset by peer!
    ----------------

    HTML pages load fine. I've tried removing the hard and soft limits on everything.
    503 Service Request errors in browsers.
  2. mistwang

    mistwang LiteSpeed Staff

    There is a memory limit configuration in php.ini as well.
  3. jmatthews

    jmatthews New Member

  4. mistwang

    mistwang LiteSpeed Staff

    Which OS are you using? You may need to install LSWS with root user in order to lift the memory limit imposed by the OS by default.
  5. jmatthews

    jmatthews New Member

    It was installed as root.
    FBSD6.2-STABLE

    Looks like there is some form of memory limit, as when I custom compile PHP, it will error saying unable to allocate 64mb
  6. mistwang

    mistwang LiteSpeed Staff

    try "ulimit -a", raise the memory then start LSWS. see if it helps.

Share This Page