APC and shm_size above 250MB throws error

Sindre

Well-Known Member
#1
Hello,

I am having a problem with APC in LiteSpeed. If I set apc.shm_size to anything above 251M, the page will not load and core dumps are generated in /usr/local/lsws/fcgi-bin

Also, a lot of these entries show up in the error_log:

[27-Aug-2013 20:41:22 UTC] PHP Fatal error: PHP Startup: apc_mmap: mmap failed: in Unknown on line 0

Seems like some sys limit is kicking in, but can't figure out where to find it. I am running CloudLinux with CageFS and LiteSpeed with suEXEC.

Any help will be appreciated.
 

Sindre

Well-Known Member
#8
see if following directive helps:
apc.mmap_file_mask = /tmp/apc.XXXXXX
(add to php.ini)


please try to raise the soft/hard limit anyway, see if any difference.
Thanks. I removed the soft/hard limit completely (will be limited by LVE anyway), and guess what; it worked :) Strange...
 
Top