Can anyone explain why the same PHP application running on a Windows server reports memory_get_peak_usage() as ~3.25mb, but on OS X gives ~19.5mb?
Obviously one is very wrong, but I don't know which to believe.
Can anyone explain why the same PHP application running on a Windows server reports memory_get_peak_usage() as ~3.25mb, but on OS X gives ~19.5mb?
Obviously one is very wrong, but I don't know which to believe.
What SAPI (server API) is php run under? With some SAPI's, the memory_usage functions return the memory of the entire process (including the PHP interpreter and web server client) whereas others return just the scripts memory usage (Minus the overhead). So likely neither is wrong, they are just describing different things...