PDA

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


jmatthews
01-27-2008, 08:47 AM
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.

mistwang
01-27-2008, 05:19 PM
There is a memory limit configuration in php.ini as well.

jmatthews
01-28-2008, 05:31 AM
Probably something wrong with server then, I followed instructions from http://nix101.com/2007/09/22/setting-up-a-secure-and-fast-php-build-for-litespeed

and I also tried recompiling PHP from the panel, both just say cc1 : unable to allocate memory

about 64mb

mistwang
01-28-2008, 02:09 PM
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.

jmatthews
01-29-2008, 05:28 AM
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.

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

mistwang
01-29-2008, 12:43 PM
try "ulimit -a", raise the memory then start LSWS. see if it helps.