Re: Stack Overflow with: zend optimizer
| From: | Richard Lynch | Date: | Sat, 06 Jul 2002 03:37:52 +0000 |
| Subject: | Re: Stack Overflow with: zend optimizer | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-105814@lists.php.net to get a copy of this message | ||
>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