|Using LiteSpeed 2.2.2 standard, APC 3.0.12p2 and PHP 5.1.6 LSAPI.
I am also getting
in my stderr.log when I have APC enabled.
FATAL: emalloc(): Unable to allocate x bytes
This happens when I use a self-created PHP script which loads a 8MB serialized (on disk) object and plays with it. Didn't try to see what exactly in my script made it spit this error; I would guess it errors out when loading the object.
The only way I found to make it work is to disable apc in php.ini
I tried using either 0 or high values (300M/450M) as memory soft/hard limits in both Server > Security > CGI Resource and VHost > External Apps > LSAPI App, but it didn't help al all.
Thanks for any pointer on how to resolve / debug.
- Guillaume Boudreau