フレームワークなどでのPHPシステムが重い時の対処

CakePHPで、ローカルではサクサク動くシステムが
サーバーに載せたら対した処理でもない部分で異常に重い。
ページを開くだけで1分以上かかるなど遅すぎ。

原因は単純で、PHPのメモリ設定が小さすぎただけ。
フレームワークはそのページの処理自体は単純でも
共通部分の処理の読み込みなどでそこそこメモリが必要。

ちなみにいつも忘れるのでphp.iniの場所を探すには

php --ini

You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

コメントを残す

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

CAPTCHA