01-19-2013, 12:46 PM
Join Date: Jan 2013
I'm trying to get XCache 3.0.1 configured so I can use namespacing (prefixing variable names with user id).
I haven't activated Litespeed on port 80 yet as I'm trying to get Xcache working with Apache first so I know what works before I move everything to litespeed.
I've got APC working well with Litespeed LSAPI (CloudLinux CageFS Suexec deamon) and with ASL's Trotix in front I get download times of a echo "hello world" php script of between 14 and 60ms, which concidering I'm moving from modsecurity + apache where I had times between 50 and 140ms it's very good.
When I activate Xcache 3.0.1 however Apache FCGI processes seem to crash quite often, I can't login to the admin page, and I don't get any impression that anything is being accelerated.
I've come to the conclusion that I haven't managed to configure it correctly or that I've got something that isn't compatible.
Does XCache work with Suexec ? I've read advice here from a few years ago saying that it wasn't compatible (this was XCache 1.3 and older versions of Litespeed). Should I work correctly with the current versions of Litespeed ?
Here's my current configuration :
I'm not sure how the mmap works, I've created /tmp/xcache and set it's chmod to 777
extension = xcache.so
xcache.admin.enable_auth = On
xcache.admin.user = "user"
xcache.admin.pass = "mymd5********"
xcache.shm_scheme = "mmap"
xcache.size = 128M
xcache.count = 32
xcache.slots = 20K
xcache.ttl = 600
xcache.gc_interval = 600
xcache.var_size = 4M
xcache.var_count = 1
xcache.var_slots = 8K
xcache.var_ttl = 120
xcache.var_maxttl = 300
xcache.var_gc_interval = 300
xcache.var_namespace_mode = 2
xcache.var_namespace = "gid"
xcache.readonly_protection = On
xcache.mmap_path = "/tmp/xcache"
xcache.coredump_directory = ""
xcache.coredump_type = 0
xcache.disable_on_crash = Off
xcache.experimental = Off
xcache.cacher = On
xcache.stat = On
xcache.optimizer = Off
xcache.coverager = Off
Maybe I shouldn't created that folder ? I created it because I didn't see any files names xcache in the tmp folder.
I've read that xcache.mmap_path shouldn't be a folder, and it didn't like /dev/zero either…
Here are a few errors I was getting when Xcache was activated :
I'm gessing that if I get these errors with FCGID I will also get them with litespeed…
Connection reset by peer: mod_fcgid: error reading data from FastCGI server
Premature end of script headers: index.php, referer…
mod_fcgid: process /usr/local/cpanel/cgi-sys/php5(1047863) exit(communication error), get signal 11, possible coredump generated
I forgot to give my server configuration as some settings refer to this.
I've got a total of 32 CPU threads and 256GB of RAM. I want Xcache to make the best use possible of these ressources.
Last edited by Monarobase; 01-19-2013 at 12:52 PM..