1. If not installed, you should install accelerators / optimizers php
code. For example php-accelerator http://eaccelerator.net or apc
http://pecl.php.net/package/apc.
2. Pay attention to the settings cake-php/php (view's caching,
permanent connect to mysql, the absence of unnecessary redirects and
404 pages)
3. Try using system utilities to pinpoint the bottleneck in the
system. It is likely that the load creates not only php. You can use
this set of utilities: http://www.cyberciti.biz/tips/top-linux-monitoring-tools.html
4. With the help of a profiler is to find the php scripts / classes
that consume the most CPU time. Do not do this on a production server,
because profiler adds a serious cpu load on the server.
--
Andrew Okhmat <andy AT supportex.net>
http://Supportex.Net - linux remote installation, support, performance
and security tuning.
On Nov 23, 9:02 pm, Balrog <kraus.it...@gmail.com> wrote:
> Hello!
> We are running quite growing social network in Poland for students at
> CakePHP, now 70k users and 0.5M hits a day.
>
> We have 3 app servers for it with CakePHP 1.2.5 installed on each.
> Servers are Quad Core i7 920 + 8G RAM, so rather good machines.
>
> DB on separate box + nginx frontend for static content on other box.
>
> Load on each machine is now 5+, i see addons.mozilla using CakePHP
> with far greater traffic than ours
>
> Have they released info if they have made any significant changes to
> the Cake core ? It is rather publicly known that Cake seems to be
> rather poorly comparing to RoR or Django in performance.
>
> Any good pieces of advice on how to optimize your app (the cake
> itself, cause app is prettily good written, db also optimized) ?
>
> Is upcoming 1.3 or 2.0 anyhow faster or less-cpu-using?
>
> Regards
--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en.
No comments:
Post a Comment