开发者

symfony: what should I install/do to "accelerate" my website?

I have deploy a website in the production env开发者_运维百科iroment, but it's going a bit slow, you know it takes too much time to load the pages..

What should I install to "accelerate" my website? I read something about APL, or ADL (I can't remember the name..)

sf 1.4

Regards

Javi


You didn't gave us much info here...

  • use a profiler/debugger like xdebug http://xdebug.org/ to see where the bottlenecks are
  • use an upcode cache like http://eaccelerator.net/ or http://php.net/manual/en/book.apc.php
  • update the server hardware(increase the RAM)
  • use another webserver except apache( http://nginx.net/ , http://www.lighttpd.net/ )
  • use a caching mechanism for on different layers (DB or page) http://www.sitepoint.com/caching-php-performance/ , http://www.igvita.com/2008/02/11/nginx-and-memcached-a-400-boost/
  • use a CDN http://en.wikipedia.org/wiki/Content_delivery_network
  • partition your database http://en.wikipedia.org/wiki/Partition_%28database%29 , http://dev.mysql.com/doc/refman/5.1/en/partitioning.html (assuming you use mysql)
  • if the server load is high, then add another hdd, and put them in RAID. Also a and a multi-code CPU might help(depending on your specific website)


Here's a great list of all the things you should do when deploying symfony, including adding an opcode cache: http://symfony-check.org/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜