Hi,
I am using PHP 4.3.9 in Linux 2.4.20-37. When I run this program:
echo "Memory Usage: " . memory_get_usag e() . "\n";
for($i=1;$i<100 0;$i++){
$dom = domxml_open_fil e("xml/ht_players.xml" );
unset($dom);
}
echo "Memory Usage: " . memory_get_usag e() . "\n";
I get the this results:
Memory Usage: 15336
Memory Usage: 795544
Why memory usage grow so much if I use unset($dom)?. There is anyway
to prevent/fix this ?
Grettings.
-k
PS: excuse my bad english :S
I am using PHP 4.3.9 in Linux 2.4.20-37. When I run this program:
echo "Memory Usage: " . memory_get_usag e() . "\n";
for($i=1;$i<100 0;$i++){
$dom = domxml_open_fil e("xml/ht_players.xml" );
unset($dom);
}
echo "Memory Usage: " . memory_get_usag e() . "\n";
I get the this results:
Memory Usage: 15336
Memory Usage: 795544
Why memory usage grow so much if I use unset($dom)?. There is anyway
to prevent/fix this ?
Grettings.
-k
PS: excuse my bad english :S
Comment