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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > [solved] APC goes crazy under LSWS 4.1.10 & 4.1.11

Reply
 
Thread Tools Display Modes
  #1  
Old 02-28-2012, 03:32 AM
Rowlf Rowlf is offline
Member
 
Join Date: Jan 2010
Posts: 14
Default [solved] APC goes crazy under LSWS 4.1.10 & 4.1.11

A while ago I had to disable APC for PHP as it was resetting every minute or two. It's only now that I've traced it to an LSWS update.

The details:

1) I'm using the 32-bit version and the bug is there both in the Standard and Enterprise editions.
2) PHP 5.3.8 with APC enabled works normally under 4.1.9, APC goes nuts if I upgrade to 4.1.10 or 4.1.11.
3) Compiling PHP 5.3.10 and switching to it under LSWS 4.1.11 does not help - APC still crashes.

Please help .

Last edited by NiteWave; 03-11-2012 at 05:33 PM..
Reply With Quote
  #2  
Old 02-28-2012, 01:46 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
what do you mean by APC crashes? anything in error log? is this shared hosting or dedicated?
Reply With Quote
  #3  
Old 02-28-2012, 02:07 PM
Rowlf Rowlf is offline
Member
 
Join Date: Jan 2010
Posts: 14
Quote:
Originally Posted by webizen View Post
what do you mean by APC crashes? anything in error log? is this shared hosting or dedicated?
I mean it resets every minute or two, deleting the entire cache that was built over the short period that it was up. I'm in the process of moving my sites from a VPS (Debian lenny) to Amazon EC2 (Amazon Linux, CentOS-based) and I'm experiencing these problems in both environments. The production box (Debian lenny) is working normally now that I've downgraded to LSWS 4.1.9, I'll enable APC on the test box again and see if there's anything in the error logs.
Reply With Quote
  #4  
Old 02-28-2012, 08:58 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
please refer
http://www.litespeedtech.com/support...ead.php?t=5676
see if any helpful
Reply With Quote
  #5  
Old 02-28-2012, 10:38 PM
Rowlf Rowlf is offline
Member
 
Join Date: Jan 2010
Posts: 14
Quote:
Originally Posted by NiteWave View Post
Tried that, it held out for 3 minutes . And then started resetting again. What can I do to get you more info? I tried enabling DEBUG level logging, but there doesn't seem to be anything useful there. What should I look for?
Reply With Quote
  #6  
Old 02-28-2012, 11:12 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
following output will help:
#pstree -p
#ps -ef|grep lsphp5
Reply With Quote
  #7  
Old 03-01-2012, 03:56 AM
Rowlf Rowlf is offline
Member
 
Join Date: Jan 2010
Posts: 14
Quote:
Originally Posted by NiteWave View Post
following output will help:
#pstree -p
#ps -ef|grep lsphp5
#pstree -p
Code:
init(1)-+-agetty(1563)
        |-atd(1516)
        |-auditd(1071)---{auditd}(1072)
        |-crond(1506)
        |-dbus-daemon(1107)
        |-dhclient(1034)
        |-fail2ban-server(23385)-+-{fail2ban-serve}(23386)
        |                        `-{fail2ban-serve}(23387)
        |-gam_server(1590)
        |-litespeed(24425)-+-httpd(24426)
        |                  `-litespeed(24427)-+-{litespeed}(24428)
        |                                     `-{litespeed}(24429)
        |-mingetty(1544)
        |-mingetty(1548)
        |-mingetty(1552)
        |-mingetty(1556)
        |-mingetty(1560)
        |-mingetty(1564)
        |-mysqld_safe(21913)---mysqld(22179)-+-{mysqld}(22188)
        |                                    |-{mysqld}(22189)
        |                                    |-{mysqld}(22190)
        |                                    |-{mysqld}(22191)
        |                                    |-{mysqld}(22192)
        |                                    |-{mysqld}(22193)
        |                                    |-{mysqld}(22194)
        |                                    |-{mysqld}(22195)
        |                                    |-{mysqld}(22196)
        |                                    |-{mysqld}(22197)
        |                                    |-{mysqld}(22199)
        |                                    |-{mysqld}(22200)
        |                                    |-{mysqld}(22201)
        |                                    |-{mysqld}(22202)
        |                                    `-{mysqld}(22210)
        |-ntpd(1169)
        |-rsyslogd(1086)-+-{rsyslogd}(1089)
        |                `-{rsyslogd}(1090)
        |-sendmail(1450)
        |-sendmail(1458)
        |-ssh-agent(24410)
        |-sshd(1149)---sshd(24385)---sshd(24388)---bash(24389)-+-cat(24474)
        |                                                      `-pstree(24473)
        |-udevd(621)-+-udevd(827)
        |            `-udevd(1562)
        `-yum-updatesd(1588)

#ps -ef|grep lsphp5
Code:
ec2-user 24476 24389  0 11:55 pts/0    00:00:00 grep lsphp5
Reply With Quote
  #8  
Old 03-01-2012, 03:59 AM
Rowlf Rowlf is offline
Member
 
Join Date: Jan 2010
Posts: 14
The above was on LSWS 4.1.11 with PHP 5.3.10 compiled which included Suhosin, APC, memcache and eAccelerator extensions (though only Suhosin + APC were enabled at the time).

I have also tried enabling eAccelerator and the same thing happens to eAccelerator cache - it resets every few minutes.
Reply With Quote
  #9  
Old 03-01-2012, 04:01 AM
Rowlf Rowlf is offline
Member
 
Join Date: Jan 2010
Posts: 14
just noticed that there were no lsphp processes in the output above given that this is not a production box, here it is again with me frantically clicking through the pages of a test site:
Code:
        |-litespeed(24425)-+-httpd(24426)
        |                  `-litespeed(24427)-+-admin_php(24479)
        |                                     |-lsphp5(24481)
        |                                     |-{litespeed}(24428)
        |                                     `-{litespeed}(24429)
Code:
ec2-user 24481 24427  2 11:59 ?        00:00:02 lsphp5
ec2-user 24514 24389  0 12:01 pts/0    00:00:00 grep lsphp5
Reply With Quote
  #10  
Old 03-01-2012, 10:11 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
lsphp5 is there running as ec2-user. is this shared hosting or dedicated environment (PHP suEXEC yes or no)? ls LSWS running as ec2-user?

Last edited by webizen; 03-01-2012 at 10:16 AM..
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 06:17 PM.



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