开发者

cakephp allocate huge memory on a new server

I have a site using cakephp1.2.8 running on a ubuntu9.04 server. It works fine with 16M memory_limit. Now I moved the site to a new CentOS5.5 VPS. Then the server starts to show errors like this:

开发者_高级运维

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 342095888 bytes) in Unknown on line 0

It displays pages correctly, but shows this error at the bottom. The number of bytes it tried to allocate is random. Did I miss something?


Is the new server 64bit? Does the new server have any more apache/php modules that the other?

CakePHP is fat... we have ours set to 90~MB

You can always go through your index/dispatcher/controllers and debug with the memory usage and dumps.

Also does the new VPS DB have more data? You could be pulling in to many objects with your finds, you might want to limit the query/recursiveness.

Hope it helps

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜