Forum Moderators: coopster

Message Too Old, No Replies

memory get usage() in empty file HIGH

         

nosterus

9:06 pm on Dec 29, 2010 (gmt 0)

10+ Year Member



Hello,
I've tested 3 hostings.
I created new file on each of them with the following content:
<?php echo memory_get_usage(); ?>


I get different results on different hosts. What is normal.
but....

One hosting has PHP5.2 and memory_get_usage shows 90kb.
The other hosting also has PHP5.2 and it shows 54kb of memory usage.

On my local machine (centos 5.5 apache2.2 php5.3.4) It shows 610kb memory usage on empty PHP file. I guess that's a lot compared to other hosts.

What should be causing that memory difference? My guess would be php extensions but.. I've comapred phpInfo()s and I don't really see a big difference

this is my PHP configuration:

'./configure' '--disable-all' '--enable-cgi' '--with-pear' '--with-zlib' '--enable-xml' '--with-libdir=lib64' '--with-config-file-path=/usr/local/etc' '--with-mysql=mysqlnd' '--enable-libxml' '--enable-session' '--with-mcrypt' '--enable-mbstring' '--with-iconv' '--with-bz2' '--enable-zip' '--with-gd' '--enable-simplexml' '--with-jpeg-dir' '--with-freetype-dir' '--with-curl' '--enable-dom' '--enable-mbregex' '--enable-zend-multibyte' '--enable-ftp' '--enable-bcmath' '--enable-exif' '--enable-pdo=shared' '--enable-sockets' 



any ideas?

nosterus

11:48 pm on Dec 29, 2010 (gmt 0)

10+ Year Member



found something - [bugs.php.net...]