Performance tuning CakePHP application

前端 未结 5 1930
南笙
南笙 2021-02-06 14:17

I just got this quite large CakePHP app (about 20k lines of code), which isn\'t very clean and there is no documentation at all. The app is running in production, but it has rea

5条回答
  •  情深已故
    2021-02-06 14:48

    For checking whether you are bound by filesystem, memory or cpu try vmstat and iostat. For your app, if you are not already doing so, use memcached or APC to speed things up. Also, try installing xdebug and profile the code to see where it is slow. A high number of function calls is always fishy, as is long execution times. Might turn out it is your database. Maybe you can add caching to a few queries.

提交回复
热议问题