Re: [PHP-DEV] Really odd PHP problem

2004-09-07 Thread Rasmus Lerdorf
On Wed, 8 Sep 2004, Xuefer wrote: > >> both mmcache and apc does not have "crash recover" > > > > The concept of a crash recover is somewhat flawed in my opinion. The only > > way to really do this is to catch SIGSEGV, SIGBUS and other such fatal > > signals and twiddle a knob somewhere in shared

Re: [PHP-DEV] Really odd PHP problem

2004-09-07 Thread Xuefer
>> both mmcache and apc does not have "crash recover" > > The concept of a crash recover is somewhat flawed in my opinion. The only > way to really do this is to catch SIGSEGV, SIGBUS and other such fatal > signals and twiddle a knob somewhere in shared memory that tells other > processes to flu

Re: [PHP-DEV] Really odd PHP problem

2004-09-07 Thread Zeev Suraski
At 07:05 07/09/2004, Rasmus Lerdorf wrote: > both mmcache and apc does not have "crash recover" The concept of a crash recover is somewhat flawed in my opinion. The only way to really do this is to catch SIGSEGV, SIGBUS and other such fatal signals and twiddle a knob somewhere in shared memory tha

Re: [PHP-DEV] Really odd PHP problem

2004-09-07 Thread Xuefer
asmus Lerdorf" <[EMAIL PROTECTED]> To: "Xuefer" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; "Russ Garrett" <[EMAIL PROTECTED]> Sent: Tuesday, September 07, 2004 12:05 PM Subject: Re: [PHP-DEV] Really odd PHP problem > On Tue, 7 Sep 2004, Xuefer

Re: [PHP-DEV] Really odd PHP problem

2004-09-06 Thread Rasmus Lerdorf
On Tue, 7 Sep 2004, Xuefer wrote: > APC works with apache2 DSO, and the optimizer is stable ONLY with my patches > check it out here: > http://pecl.php.net/bugs/search.php?cmd=display&status=Open&bug_type[]=APC > i've used APC from the time my last patch posted till now, having 0 crash. (if i > c

Re: [PHP-DEV] Really odd PHP problem

2004-09-06 Thread Xuefer
i can confirm it. it's the problem of cacher. mmcache is rather complex and NOT stable, although many ppl is running happily, they're not under heavy load. 1 hours to 1days after apache is restarted, mmcache end up with all page randomly crash (share mem courpo APC works with apache2 DSO, and th

Re: [PHP-DEV] Really odd PHP problem

2004-09-05 Thread Zeev Suraski
Is your server really unusable w/o a compiled code cache? Of not, try to remove it and see if the problem persists. One of the problems of most opcode caches is that a crash bug in PHP or one of its modules can end up resulting in a full server crash. I have to say though that it doesn't look

Re: [PHP-DEV] Really odd PHP problem

2004-09-05 Thread Rasmus Lerdorf
On Sun, 5 Sep 2004, Russ Garrett wrote: > This machine serves around 500,000 hits daily, and 99% of them are > PHP-parsed. By the way, that is not a lot of hits. Less than 6 requests per second. I tend to get worried when my servers can't do at least 80-100 requests/second. And you certainly sho

Re: [PHP-DEV] Really odd PHP problem

2004-09-05 Thread Rasmus Lerdorf
On Sun, 5 Sep 2004, Russ Garrett wrote: > The only third-party module we're using is Turck mmcache - removing it > is kind of difficult since running without any cache brings the machine > to its knees :). But you should be able to trivially replace it with pecl/apc as the peformance of the two a