From: Jost B. <jos...@ya...> - 2005-12-01 18:55:39
|
Hi Janno, > I'm using the bridge to make about 50000 calls to a > Java method that takes > ArrayList as a parameter (containing some Date, > Integer and String objects) and > returns a HashMap. Php 4 does not release allocated handles. If you call: for($i=0; $i<100000; $i++) $s=new String("123"); php 4 creates 100000 string objects which will be released by the bridge when the script terminates. Since PHP5 each string instance is released immediately, so the VM cannot run out of memory, even if the script runs forever. So I would recommend to upgrate to the latest stable php5 version, which is php 5.0.5, and to use PHP/Java Bridge 2.0.8. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |