Re: Accelerating cakePHP

2007-12-17 Thread jarmstrong


I have been researching Resin/Quercus for my production apps but I have been
running into many issues within the CakePHP dbo abstraction layer. I have
tried stepping through it but everything keeps pointing back to the MySQL
JDBC driver interacting differently than the native php mysql module. Right
now it is always failing in the deep-linking of the database associations
will Null pointer exceptions coming from the JDBC connection (and yes I set
persistant DB connections to on).

I was really hoping this would be another viable solution as the performance
gains people are seeing with Drupal on a setup like this are pretty drastic.
-- 
View this message in context: 
http://www.nabble.com/Accelerating-cakePHP-tp14354575p14372569.html
Sent from the CakePHP mailing list archive at Nabble.com.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Accelerating cakePHP

2007-12-16 Thread SeanW

Also look at

http://www.ibm.com/developerworks/linux/library/l-tune-lamp-1/
(tuning Linux)
http://www.ibm.com/developerworks/linux/library/l-tune-lamp-2.html
(tuning Apache and PHP)
http://www.ibm.com/developerworks/linux/library/l-tune-lamp-3.html
(tuning MySQL)

Sean

On Dec 16, 3:29 am, majna <[EMAIL PROTECTED]> wrote:
> before John David Anderson tips,
> try to configure apache to fit your site needs.
> tweak mysql conf. if your queries took more then few ms.
> use nix ramdisk on  php files for disk IO
>
> On Dec 15, 9:21 pm, "John David Anderson (_psychic_)"
>
> <[EMAIL PROTECTED]> wrote:
> > On Dec 15, 2007, at 1:12 PM, Chris Hartjes wrote:
>
> > > On Dec 15, 2007 3:00 PM, Pillow <[EMAIL PROTECTED]> wrote:
>
> > >> Hi,
> > >> I've website which has about 3 uniq visits per day (up to 1500
> > >> online). The problem is that CMS written on CakePHP consumes too much
> > >> of CPUs power.
>
> > >> Almost everything is beeing cached (whole views, sometimes db
> > >> results).
>
> > >> In addition the same site was earlier driven by some poor free system
> > >> which hadn't even had cache, and the CPU usage was about 6 times
> > >> less.
>
> > >> Do you have any tricks and tips to speed up system based on cake?
>
> > > Sounds like it was poorly designed, as 3 hits a day isn't what I
> > > would consider high traffic.  However, I would suggest the following:
>
> > (agreed)
>
> > > 1) install a PHP opcode cache like APC
> > > 2) make sure you have appropriate database indexes in place
> > > 3) spend some time profiling your code using tools like Xdebug and
> > > Cachegrind to find out where the slow spots really are.
>
> > I might also add
>
> > 4) Move rewrite instructions to apache conf rather than .htaccess
> > 5) Use unbind model (or something similar) more extensively.
>
> > -- John
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Accelerating cakePHP

2007-12-16 Thread majna

before John David Anderson tips,
try to configure apache to fit your site needs.
tweak mysql conf. if your queries took more then few ms.
use nix ramdisk on  php files for disk IO





On Dec 15, 9:21 pm, "John David Anderson (_psychic_)"
<[EMAIL PROTECTED]> wrote:
> On Dec 15, 2007, at 1:12 PM, Chris Hartjes wrote:
>
>
>
>
>
> > On Dec 15, 2007 3:00 PM, Pillow <[EMAIL PROTECTED]> wrote:
>
> >> Hi,
> >> I've website which has about 3 uniq visits per day (up to 1500
> >> online). The problem is that CMS written on CakePHP consumes too much
> >> of CPUs power.
>
> >> Almost everything is beeing cached (whole views, sometimes db
> >> results).
>
> >> In addition the same site was earlier driven by some poor free system
> >> which hadn't even had cache, and the CPU usage was about 6 times
> >> less.
>
> >> Do you have any tricks and tips to speed up system based on cake?
>
> > Sounds like it was poorly designed, as 3 hits a day isn't what I
> > would consider high traffic.  However, I would suggest the following:
>
> (agreed)
>
> > 1) install a PHP opcode cache like APC
> > 2) make sure you have appropriate database indexes in place
> > 3) spend some time profiling your code using tools like Xdebug and
> > Cachegrind to find out where the slow spots really are.
>
> I might also add
>
> 4) Move rewrite instructions to apache conf rather than .htaccess
> 5) Use unbind model (or something similar) more extensively.
>
> -- John
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Accelerating cakePHP

2007-12-15 Thread John David Anderson (_psychic_)


On Dec 15, 2007, at 1:12 PM, Chris Hartjes wrote:

>
> On Dec 15, 2007 3:00 PM, Pillow <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>> I've website which has about 3 uniq visits per day (up to 1500
>> online). The problem is that CMS written on CakePHP consumes too much
>> of CPUs power.
>>
>> Almost everything is beeing cached (whole views, sometimes db
>> results).
>>
>> In addition the same site was earlier driven by some poor free system
>> which hadn't even had cache, and the CPU usage was about 6 times  
>> less.
>>
>> Do you have any tricks and tips to speed up system based on cake?
>>
>
> Sounds like it was poorly designed, as 3 hits a day isn't what I
> would consider high traffic.  However, I would suggest the following:

(agreed)

> 1) install a PHP opcode cache like APC
> 2) make sure you have appropriate database indexes in place
> 3) spend some time profiling your code using tools like Xdebug and
> Cachegrind to find out where the slow spots really are.

I might also add

4) Move rewrite instructions to apache conf rather than .htaccess
5) Use unbind model (or something similar) more extensively.

-- John

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Accelerating cakePHP

2007-12-15 Thread Chris Hartjes

On Dec 15, 2007 3:00 PM, Pillow <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I've website which has about 3 uniq visits per day (up to 1500
> online). The problem is that CMS written on CakePHP consumes too much
> of CPUs power.
>
> Almost everything is beeing cached (whole views, sometimes db
> results).
>
> In addition the same site was earlier driven by some poor free system
> which hadn't even had cache, and the CPU usage was about 6 times less.
>
> Do you have any tricks and tips to speed up system based on cake?
>

Sounds like it was poorly designed, as 3 hits a day isn't what I
would consider high traffic.  However, I would suggest the following:

1) install a PHP opcode cache like APC
2) make sure you have appropriate database indexes in place
3) spend some time profiling your code using tools like Xdebug and
Cachegrind to find out where the slow spots really are.


-- 
Chris Hartjes

My motto for 2007:  "Just build it, damnit!"

@TheKeyboard - http://www.littlehart.net/atthekeyboard

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Accelerating cakePHP

2007-12-15 Thread Pillow

Hi,
I've website which has about 3 uniq visits per day (up to 1500
online). The problem is that CMS written on CakePHP consumes too much
of CPUs power.

Almost everything is beeing cached (whole views, sometimes db
results).

In addition the same site was earlier driven by some poor free system
which hadn't even had cache, and the CPU usage was about 6 times less.

Do you have any tricks and tips to speed up system based on cake?

Thx,
Pillow
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---