Hello,
We are trying to get Xcache up and running with litespeed's process group.
I noticed that the cache was not kept for long to I set up a simple php script to test what was happeing.
If I refresh the page every 35 seconds the cache stays accessible however if I leave the script idle for 36 seconds or more the cache is reset.
It's not an xcache issue, nor is it PHP as I even set max_execution_time to 60 seconds and it did not change the cache being reset after 35 seconds.
I've searched in litespeed's settings and haven't found one that corresponds to the 35 seconds.
Here are all my time related settings :
General >
Graceful Restart Timeout (secs) : 1200
Tuning >
Connection Timeout (secs) : 600
Keep-Alive Timeout (secs) : 5
External App >lsphp5
Environment : LSAPI_MAX_PROCESS_TIME=600
Initial Request Timeout (secs) : 600
Connection Keepalive Timeout : 120
Max Idle Time : -1
What setting am I missing ? Is there a new setting for the process group children ?
I see process group parents that are never killed, which I believe is the Max Idle Time : -1, why would xcache's variable memory be reset every 35 seconds ?
This time (35 seconds) is reproducable, it always works if called within 35 seconds and always is reset starting at 36 seconds.
My Xcache settings are :
Thanks !
We are trying to get Xcache up and running with litespeed's process group.
I noticed that the cache was not kept for long to I set up a simple php script to test what was happeing.
PHP:
<?php
$time = time();
if (!xcache_isset("time")) {
xcache_set('time', $time);
}
$xcachecurtime = xcache_get('time');
print('xcache cache duration : '. ($time - $xcachecurtime). ' seconds.');
It's not an xcache issue, nor is it PHP as I even set max_execution_time to 60 seconds and it did not change the cache being reset after 35 seconds.
I've searched in litespeed's settings and haven't found one that corresponds to the 35 seconds.
Here are all my time related settings :
General >
Graceful Restart Timeout (secs) : 1200
Tuning >
Connection Timeout (secs) : 600
Keep-Alive Timeout (secs) : 5
External App >lsphp5
Environment : LSAPI_MAX_PROCESS_TIME=600
Initial Request Timeout (secs) : 600
Connection Keepalive Timeout : 120
Max Idle Time : -1
What setting am I missing ? Is there a new setting for the process group children ?
I see process group parents that are never killed, which I believe is the Max Idle Time : -1, why would xcache's variable memory be reset every 35 seconds ?
This time (35 seconds) is reproducable, it always works if called within 35 seconds and always is reset starting at 36 seconds.
My Xcache settings are :
Code:
xcache.ttl = 3600
xcache.gc_interval = 300
xcache.var_ttl = 43200
xcache.var_maxttl = 43200
xcache.var_gc_interval = 300
Last edited by a moderator: