Re: [fw-general] ZF 1.8 and Performance Guide (using find/sed to remove require once calls)

2009-05-12 Thread Tony Ford
If you want to remove the disk as a bottleneck then get apc going and  
turn apc.stat=0. This will cache your scripts in memory and never go  
back to disk until you clear the cache (and/or restart apache).


 - Tony

On May 12, 2009, at 12:40 AM, Laurens0619 wrote:



Hi Matthew,

I am trying to gain performance because our server (ibm as/400) is  
really

slow with disk access.
I've tried the solution from the manual by removing the require_once
statements and use the autoloader.

I get the same error, just blank pages. I have error reporting on so  
I can't

find the problem.
Autoloader is on by using the new architecture with zend_application.

Thanks in advance,
Laurens


Matthew Weier O'Phinney-3 wrote:


-- j5  wrote
(on Friday, 01 May 2009, 02:33 PM -0700):

I was tinkering with ZF 1.8 and the performance guide.

Specifically:

C.2.2.1. Strip require_once calls with find and sed.

The sed/find commands here have changed I noticed.  When I run  
these new

commands I get the following error:

-bash: syntax error near unexpected token `('


I took a look at the commands again and I thought I found a  
missing '

error


I've fixed this on trunk and the 1.8 release branch now, and the  
changes

will show when we release 1.8.1. Thanks for the report!



so I tried the revised commands:

find . -name '*.php' -not -wholename '*/Loader/Autoloader.php' - 
print0 |

\
xargs -0 sed --regexp-extended --in-place 's/(require_once)/\/\/  
\1/g'


(I added a ' after Autoloader.php).

That looked like it worked. But now when I browse to my website, I  
get a

blank page.


I am not sure if what I did fixed anything or what..

Anyone have any suggestions?


Do you have display_errors on? If not, turn it on to see if any  
errors

are being reported.

--
Matthew Weier O'Phinney
Project Lead| matt...@zend.com
Zend Framework  | http://framework.zend.com/




--
View this message in context: 
http://www.nabble.com/ZF-1.8-and-Performance-Guide-%28using-find-sed-to-remove-require-once-calls%29-tp23340034p23497684.html
Sent from the Zend Framework mailing list archive at Nabble.com.





Re: [fw-general] ZF 1.8 and Performance Guide (using find/sed to remove require once calls)

2009-05-12 Thread Laurens0619

Hi Matthew,

I am trying to gain performance because our server (ibm as/400) is really
slow with disk access.
I've tried the solution from the manual by removing the require_once
statements and use the autoloader. 

I get the same error, just blank pages. I have error reporting on so I can't
find the problem.
Autoloader is on by using the new architecture with zend_application.

Thanks in advance, 
Laurens


Matthew Weier O'Phinney-3 wrote:
> 
> -- j5  wrote
> (on Friday, 01 May 2009, 02:33 PM -0700):
>> I was tinkering with ZF 1.8 and the performance guide.
>> 
>> Specifically:
>> 
>> C.2.2.1. Strip require_once calls with find and sed.
>> 
>> The sed/find commands here have changed I noticed.  When I run these new
>> commands I get the following error:
>> 
>> -bash: syntax error near unexpected token `('
>> 
>> 
>> I took a look at the commands again and I thought I found a missing '
>> error
> 
> I've fixed this on trunk and the 1.8 release branch now, and the changes
> will show when we release 1.8.1. Thanks for the report!
> 
> 
>> so I tried the revised commands:
>> 
>> find . -name '*.php' -not -wholename '*/Loader/Autoloader.php' -print0 |
>> \
>> xargs -0 sed --regexp-extended --in-place 's/(require_once)/\/\/ \1/g'
>> 
>> (I added a ' after Autoloader.php).
>> 
>> That looked like it worked. But now when I browse to my website, I get a
>> blank page.
>> 
>> 
>> I am not sure if what I did fixed anything or what..
>> 
>> Anyone have any suggestions?
> 
> Do you have display_errors on? If not, turn it on to see if any errors
> are being reported.
> 
> -- 
> Matthew Weier O'Phinney
> Project Lead| matt...@zend.com
> Zend Framework  | http://framework.zend.com/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/ZF-1.8-and-Performance-Guide-%28using-find-sed-to-remove-require-once-calls%29-tp23340034p23497684.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] ZF 1.8 and Performance Guide (using find/sed to remove require once calls)

2009-05-02 Thread Matthew Weier O'Phinney
-- j5  wrote
(on Friday, 01 May 2009, 02:33 PM -0700):
> I was tinkering with ZF 1.8 and the performance guide.
> 
> Specifically:
> 
> C.2.2.1. Strip require_once calls with find and sed.
> 
> The sed/find commands here have changed I noticed.  When I run these new
> commands I get the following error:
> 
> -bash: syntax error near unexpected token `('
> 
> 
> I took a look at the commands again and I thought I found a missing ' error

I've fixed this on trunk and the 1.8 release branch now, and the changes
will show when we release 1.8.1. Thanks for the report!


> so I tried the revised commands:
> 
> find . -name '*.php' -not -wholename '*/Loader/Autoloader.php' -print0 | \
> xargs -0 sed --regexp-extended --in-place 's/(require_once)/\/\/ \1/g'
> 
> (I added a ' after Autoloader.php).
> 
> That looked like it worked. But now when I browse to my website, I get a
> blank page.
> 
> 
> I am not sure if what I did fixed anything or what..
> 
> Anyone have any suggestions?

Do you have display_errors on? If not, turn it on to see if any errors
are being reported.

-- 
Matthew Weier O'Phinney
Project Lead| matt...@zend.com
Zend Framework  | http://framework.zend.com/


Re: [fw-general] ZF 1.8 and Performance Guide (using find/sed to remove require once calls)

2009-05-01 Thread Jamie Krasnoo
Sounds like you're using the new Autoloader. Read
http://devzone.zend.com/article/4525-Developing-a-Comprehensive-Autoloaderand
that will give you more insight as to how it works.

My guess is that you don't have
$autoloader->suppressNotFoundWarnings(false); and that's why you're getting
a blank page.

The command line listing at C.2.2.1. does have a missing ' in it. Worked
fine for me when I corrected it and ran it against the library.

Jamie

On Fri, May 1, 2009 at 2:33 PM, j5  wrote:

>
> Hey,
>
> I was tinkering with ZF 1.8 and the performance guide.
>
> Specifically:
>
> C.2.2.1. Strip require_once calls with find and sed.
>
> The sed/find commands here have changed I noticed.  When I run these new
> commands I get the following error:
>
> -bash: syntax error near unexpected token `('
>
>
> I took a look at the commands again and I thought I found a missing ' error
> so I tried the revised commands:
>
> find . -name '*.php' -not -wholename '*/Loader/Autoloader.php' -print0 | \
> xargs -0 sed --regexp-extended --in-place 's/(require_once)/\/\/ \1/g'
>
> (I added a ' after Autoloader.php).
>
> That looked like it worked. But now when I browse to my website, I get a
> blank page.
>
>
> I am not sure if what I did fixed anything or what..
>
> Anyone have any suggestions?
>
> Thanks
> --
> View this message in context:
> http://www.nabble.com/ZF-1.8-and-Performance-Guide-%28using-find-sed-to-remove-require-once-calls%29-tp23340034p23340034.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>


[fw-general] ZF 1.8 and Performance Guide (using find/sed to remove require once calls)

2009-05-01 Thread j5

Hey,

I was tinkering with ZF 1.8 and the performance guide.

Specifically:

C.2.2.1. Strip require_once calls with find and sed.

The sed/find commands here have changed I noticed.  When I run these new
commands I get the following error:

-bash: syntax error near unexpected token `('


I took a look at the commands again and I thought I found a missing ' error
so I tried the revised commands:

find . -name '*.php' -not -wholename '*/Loader/Autoloader.php' -print0 | \
xargs -0 sed --regexp-extended --in-place 's/(require_once)/\/\/ \1/g'

(I added a ' after Autoloader.php).

That looked like it worked. But now when I browse to my website, I get a
blank page.


I am not sure if what I did fixed anything or what..

Anyone have any suggestions?

Thanks
-- 
View this message in context: 
http://www.nabble.com/ZF-1.8-and-Performance-Guide-%28using-find-sed-to-remove-require-once-calls%29-tp23340034p23340034.html
Sent from the Zend Framework mailing list archive at Nabble.com.