From: <php...@li...> - 2008-04-15 12:34:27
|
Thanks Jost for the quick response. We have no threads on the Java side, so I can't see how we could be holding onto a reference... other than in objects that are being returned through the bridge layer. Our code is very simple - a request comes in, calculation happens, and an object gets created and returned. No background threads, etc. I guess my question is - when do those returned objects get de-referenced by the bridge layer? Ideally it would be when the PHP side deferences it (using unset($myJavaObj) or similar), but I'm guessing that's unlikely. Given that, it doesn't look like there is any dereference(), free(), recycle(), etc. function that can be called from the PHP side to release the object manually. Can you give me some insight into that life cycle? Thanks, Orion ----- Original Message ---- From: "php...@li..." <php...@li...> To: php...@li... Sent: Tuesday, April 15, 2008 8:10:04 AM Subject: Re: [Php-java-bridge-users] OutOfMemory Exception Hi, first of all, this is a out of memory error. An error is not a exception and it shouldn't be handled as such. This error means that there's some bug in your application code, probably a thread permanently referencing your object graph. Please see our FAQ for details/tips how to debug your code. > @java_reset(); The above construct is used in our release tests, it should never ever be used in client code. Please see our API documentation for details. 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 |