|
|

08-16-2012, 12:21 PM
|
|
Member
|
|
Join Date: Sep 2008
Posts: 14
|
|
APC Cache shared memory mapping with SUPHP
Quote:
Originally Posted by mistwang
that feature is on our to-do list. no ETA yet.
|
Hello,
Is there any progress on this feature? We really need to have this feature while suphp enabled on the shared hosting environments.
Regards
|

08-17-2012, 11:18 AM
|
|
LiteSpeed Staff
|
|
Join Date: Oct 2010
Posts: 2,339
|
|
Quote:
Originally Posted by TarkanVeKurdu
Hello,
Is there any progress on this feature? We really need to have this feature while suphp enabled on the shared hosting environments.
Regards
|
This is being tested and will be out soon.
|

08-23-2012, 10:27 AM
|
|
Member
|
|
Join Date: Apr 2012
Posts: 41
|
|
my apc is clearing out again even my litespeed is not restarted (i compared the apc uptime & litespeed uptime). apc uptime is about 6 mins, while the lsws uptime is about 30 mins now.
It started to happen after my physical server restart. It was fine before.
my memory usage is low.. about 12 percent.
any idea what to check? 
__________________
I use litespeed
|

08-24-2012, 10:05 AM
|
|
Member
|
|
Join Date: Apr 2012
Posts: 41
|
|
Quote:
Originally Posted by webizen
|
It is disabled and i use dedicated server.
Litespeed uptime is very good (1 day+ -- since previous restart).
But APC uptime is 36 mins or so.
Any idea?
Code:
Runtime Settings
apc.cache_by_default 1
apc.canonicalize 1
apc.coredump_unmap 0
apc.enable_cli 1
apc.enabled 1
apc.file_md5 0
apc.file_update_protection 2
apc.filters
apc.gc_ttl 3600
apc.include_once_override 0
apc.lazy_classes 0
apc.lazy_functions 0
apc.max_file_size 20M
apc.mmap_file_mask /tmp/apc.nyEjzk
apc.num_files_hint 1000
apc.preload_path
apc.report_autofilter 0
apc.rfc1867 0
apc.rfc1867_freq 0
apc.rfc1867_name APC_UPLOAD_PROGRESS
apc.rfc1867_prefix upload_
apc.rfc1867_ttl 3600
apc.serializer default
apc.shm_segments 1
apc.shm_size 1024M
apc.slam_defense 1
apc.stat 0
apc.stat_ctime 0
apc.ttl 0
apc.use_request_time 1
apc.user_entries_hint 4096
apc.user_ttl 7200
apc.write_lock 1
Thanks.
Addition : i got this tips on stackoverflow :
"How many Litespeed processes do you have? I'm afraid that if you have more than 1 process, you'll have the same problem as with fastcgi/suphp, so you should try to recompile APC with --disable-apc-mmap".
How to know how many litespeed process that i have? i use 2 cpu license.
Code:
root@mybox [~]# pstree -p | grep litespeed
|-litespeed(19722)-+-httpd(19723)
| |-litespeed(19724)-+-lsphp5(19730)-+-lsphp5(19734)
| | |-{litespeed}(19726)
| | `-{litespeed}(19728)
| `-litespeed(19725)-+-lsphp5(19772)-+-lsphp5(19809)
| |-{litespeed}(19727)
| `-{litespeed}(19729)
__________________
I use litespeed
Last edited by semprot; 08-24-2012 at 11:25 AM..
Reason: More info
|

08-24-2012, 02:04 PM
|
|
LiteSpeed Staff
|
|
Join Date: Oct 2010
Posts: 2,339
|
|
|
for 2-cpu license, you have effectively two litespeed processes (1 parent pid 19722 and 2 active: pid 19724 and 19725 in your case).
|

08-25-2012, 03:25 PM
|
|
Member
|
|
Join Date: May 2011
Posts: 11
|
|
Same problems here also
Been reading different treads about this. Just upgraded to Litespeed 1 CPU version one month ago. I am now testing out Nginx also to see if I can get it to our server to work properly with APC.
|

08-31-2012, 05:40 PM
|
|
LiteSpeed Staff
|
|
Join Date: Oct 2010
Posts: 2,339
|
|
Quote:
Originally Posted by semprot
It is disabled and i use dedicated server.
Litespeed uptime is very good (1 day+ -- since previous restart).
But APC uptime is 36 mins or so.
Any idea?
Code:
Runtime Settings
apc.cache_by_default 1
apc.canonicalize 1
apc.coredump_unmap 0
apc.enable_cli 1
apc.enabled 1
apc.file_md5 0
apc.file_update_protection 2
apc.filters
apc.gc_ttl 3600
apc.include_once_override 0
apc.lazy_classes 0
apc.lazy_functions 0
apc.max_file_size 20M
apc.mmap_file_mask /tmp/apc.nyEjzk
apc.num_files_hint 1000
apc.preload_path
apc.report_autofilter 0
apc.rfc1867 0
apc.rfc1867_freq 0
apc.rfc1867_name APC_UPLOAD_PROGRESS
apc.rfc1867_prefix upload_
apc.rfc1867_ttl 3600
apc.serializer default
apc.shm_segments 1
apc.shm_size 1024M
apc.slam_defense 1
apc.stat 0
apc.stat_ctime 0
apc.ttl 0
apc.use_request_time 1
apc.user_entries_hint 4096
apc.user_ttl 7200
apc.write_lock 1
Thanks.
Addition : i got this tips on stackoverflow :
"How many Litespeed processes do you have? I'm afraid that if you have more than 1 process, you'll have the same problem as with fastcgi/suphp, so you should try to recompile APC with --disable-apc-mmap".
How to know how many litespeed process that i have? i use 2 cpu license.
Code:
root@mybox [~]# pstree -p | grep litespeed
|-litespeed(19722)-+-httpd(19723)
| |-litespeed(19724)-+-lsphp5(19730)-+-lsphp5(19734)
| | |-{litespeed}(19726)
| | `-{litespeed}(19728)
| `-litespeed(19725)-+-lsphp5(19772)-+-lsphp5(19809)
| |-{litespeed}(19727)
| `-{litespeed}(19729)
|
Our lab test shows '--disable-apc-mmap' makes no difference.
|

09-01-2012, 08:00 PM
|
|
Member
|
|
Join Date: Apr 2012
Posts: 41
|
|
Quote:
Originally Posted by webizen
Our lab test shows '--disable-apc-mmap' makes no difference.
|
Somehow my issue was fixed, but it appears again now.
The issue is still the same :
- litespeed uptime is good, but
- apc uptime is bad 
Any idea how to fix it?
__________________
I use litespeed
|

09-01-2012, 08:38 PM
|
|
LiteSpeed Staff
|
|
Join Date: Sep 2009
Posts: 2,226
|
|
Code:
- litespeed uptime is good, but
- apc uptime is bad
if you refresh the apc stats page repeatly,
check the apc.mmap_file_mask value, like /tmp/apc.nyEjzk,
you should see 2 different files, corresponding 2 groups of lsphp5.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 04:05 PM.
|
|