|
From: <php...@li...> - 2008-04-15 12:39:04
|
Ah, so you're saying a call to
unset($myJavaObj);
within PHP will cause the object to be deallocated on the Java side. If so, that's awesome! Is this the case when using either the all-PHP bridge code or the C-based DLL/so? Right now we are using the all-PHP bridge code because of another error (Apache crashing) when trying to load the DLL.
Thanks again,
Orion
----- Original Message ----
From: "php...@li..." <php...@li...>
To: php...@li...
Sent: Tuesday, April 15, 2008 8:34:20 AM
Subject: Re: [Php-java-bridge-users] OutOfMemory Exception
Hi,
> 1. Any way to release an object after finished with it on the PHP side?
PHP doesn't have a garbage collector. It uses a reference counter which cannot free certain
objects (and its associated Java peers).
However, this isn't a problem because each PHP script cannot run for more than 30 seconds. If the
PHP script terminates, all cycles are released automatically.
> 2. Any ini flags (java.persistent_connections=Off, for example) that could help clear the
> JavaBridge cache?
On protocol level you could send a <U objectID /> to the back end. But PHP reference counter does
this automatically.
Regards,
Jost Boekemeier
__________________________________________________________
Gesendet von Yahoo! Mail.
Der Lieblings-Mailbox der Welt.
http://de.overview.mail.yahoo.com
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|