LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > PHP > Trying to use APC but it seems to be clearing out?

Reply
 
Thread Tools Display Modes
  #61  
Old 08-16-2012, 12:21 PM
TarkanVeKurdu TarkanVeKurdu is offline
Member
 
Join Date: Sep 2008
Posts: 14
Default APC Cache shared memory mapping with SUPHP

Quote:
Originally Posted by mistwang View Post
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
Reply With Quote
  #62  
Old 08-17-2012, 11:18 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
Quote:
Originally Posted by TarkanVeKurdu View Post
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.
Reply With Quote
  #63  
Old 08-23-2012, 10:27 AM
semprot semprot is offline
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
Reply With Quote
  #64  
Old 08-23-2012, 11:39 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
if you have PHP suEXEC (http://www.litespeedtech.com/docs/we...ral/#phpSuExec) enabled (for shared hosting), APC uptime will be like this.
Reply With Quote
  #65  
Old 08-24-2012, 10:05 AM
semprot semprot is offline
Member
 
Join Date: Apr 2012
Posts: 41
Quote:
Originally Posted by webizen View Post
if you have PHP suEXEC (http://www.litespeedtech.com/docs/we...ral/#phpSuExec) enabled (for shared hosting), APC uptime will be like this.
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
Reply With Quote
  #66  
Old 08-24-2012, 02:04 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
for 2-cpu license, you have effectively two litespeed processes (1 parent pid 19722 and 2 active: pid 19724 and 19725 in your case).
Reply With Quote
  #67  
Old 08-25-2012, 03:25 PM
whatsup whatsup is offline
Member
 
Join Date: May 2011
Posts: 11
Default 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.
Reply With Quote
  #68  
Old 08-31-2012, 05:40 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
Quote:
Originally Posted by semprot View Post
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.
Reply With Quote
  #69  
Old 09-01-2012, 08:00 PM
semprot semprot is offline
Member
 
Join Date: Apr 2012
Posts: 41
Quote:
Originally Posted by webizen View Post
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
Reply With Quote
  #70  
Old 09-01-2012, 08:38 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,218
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:02 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.