LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   Bug Reports (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=9)
-   -   [solved] APC goes crazy under LSWS 4.1.10 & 4.1.11 (http://www.litespeedtech.com/support/forum/showthread.php?t=5736)

Rowlf 02-28-2012 03:32 AM

[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 :).

webizen 02-28-2012 01:46 PM

what do you mean by APC crashes? anything in error log? is this shared hosting or dedicated?

Rowlf 02-28-2012 02:07 PM

Quote:

Originally Posted by webizen (Post 32088)
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.

NiteWave 02-28-2012 08:58 PM

please refer
http://www.litespeedtech.com/support...ead.php?t=5676
see if any helpful

Rowlf 02-28-2012 10:38 PM

Quote:

Originally Posted by NiteWave (Post 32093)

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?

NiteWave 02-28-2012 11:12 PM

following output will help:
#pstree -p
#ps -ef|grep lsphp5

Rowlf 03-01-2012 03:56 AM

Quote:

Originally Posted by NiteWave (Post 32098)
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

Rowlf 03-01-2012 03:59 AM

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.

Rowlf 03-01-2012 04:01 AM

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


webizen 03-01-2012 10:11 AM

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?


All times are GMT -7. The time now is 11:17 PM.