[PHP] Re: Stack Overflow with: zend optimizer

2002-07-08 Thread colin mcdonald

Richard Lynch wrote:
 
 You *MIGHT* try installing the Optimizer on a Dev box and turning on *ONE*
 opitmization group/feature at a time and then pounding on that Dev server
 with 'ab' until you narrow down which optimizations are the trouble-makers.

Tried that.  Each optimization value/setting fails in the same way.

 
 Why in the *WORLD* do you have hundreds of includes, though?
 

Easier to organize, maintain and it's the only a group of developers can 
  work efficiently on a project at the same time.

 
 You do realize that including a hundred include files is incredibly slow,
 right?...  You may be able to drastically improve performance if there's any
 way to combine those files...
 

We tested this a long time ago and there was little time difference 
between one file and many files.  I think this has to do with the fact 
that the page already take roughly a 2 seconds to load, so a couple tens 
of milliseconds didn't make a difference.

Thanks for the advice,

colin


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Stack Overflow with: zend optimizer

2002-07-08 Thread colin mcdonald

Oh yeah, this is what I did to stabilize the server:

-take out zend_optimizer from php.ini
-put process isolation level to HIGH (as Michael suggested)
-put IIS in the ISAPI filter list
-disable chaching of isapi applications

colin

Colin McDonald wrote:
 Richard Lynch wrote:
 

 You *MIGHT* try installing the Optimizer on a Dev box and turning on 
 *ONE*
 opitmization group/feature at a time and then pounding on that Dev server
 with 'ab' until you narrow down which optimizations are the 
 trouble-makers.
 
 
 Tried that.  Each optimization value/setting fails in the same way.
 

 Why in the *WORLD* do you have hundreds of includes, though?
 
  
 
 Easier to organize, maintain and it's the only a group of developers can 
  work efficiently on a project at the same time.
 

 You do realize that including a hundred include files is incredibly slow,
 right?...  You may be able to drastically improve performance if 
 there's any
 way to combine those files...

 
 We tested this a long time ago and there was little time difference 
 between one file and many files.  I think this has to do with the fact 
 that the page already take roughly a 2 seconds to load, so a couple tens 
 of milliseconds didn't make a difference.
 
 Thanks for the advice,
 
 colin
 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Stack Overflow with: zend optimizer

2002-07-06 Thread Richard Lynch

Hi there,

zend optimizer 1.3.1 / IIS 5 / PHP 4.2.1 / Windows 2000

I've been getting Stack Overflow errors frequently.  Our software has
hundreds of db queries and hundreds of includes per page execution.  Just to
give you some context, so I can't tell you exactly what I'm doing that's
causing this.

I recently disabled the zend optimizer from the server and since then I
haven't run it again.  Could it be that it the Zend Optimizer that's causing
this problem?

Anything is possible...

The Optimizer *does* have to examine the source code and do things with it. 
I would guess that there are some analyses that might be recursive and could
overflow the stack...

You *MIGHT* try installing the Optimizer on a Dev box and turning on *ONE*
opitmization group/feature at a time and then pounding on that Dev server
with 'ab' until you narrow down which optimizations are the trouble-makers.

Why in the *WORLD* do you have hundreds of includes, though?

You do realize that including a hundred include files is incredibly slow,
right?...  You may be able to drastically improve performance if there's any
way to combine those files...

To test this:

Make a list of a sample of a 100 files that get included in one page hit.

Then cat all those files into 1 big file.

Strip out all the 'include' calls.

A/B compare the real page and the big fat page under stress.

-- 
Like Music?  http://l-i-e.com/artists.htm


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php