Different memory usage on different server with th

2019-06-03 05:45发布

I have a PHP website build with Zend Framework 1.11. And I got different memory usage on the following two servers:

A: MacOS + Apache/2.2.20 + PHP 5.3.6

B: Scientific Linux 64 + Apache/2.2.15 + PHP 5.3.3

For a exactly same page and condition, it cost 14MB on server A, but only 4MB on server B (calculate by xdebug).

here is the mainly difference step:

A:
11288560 Zend_Application->run( )
B:
2740744 Zend_Application->run( )

Can anyone tell me what's the problem? And is there any way I can analyse the memory's detail usage?

1条回答
我欲成王,谁敢阻挡
2楼-- · 2019-06-03 06:43

Possible reasons for this are:

Different PHP versions can use more or less memory, although in this case it's unlikely given the subtle difference between the two versions.

More likely, it's that the system with higher usage has more mods enabled in the php config.

查看更多
登录 后发表回答