Bj�rn, Detaching/Reattaching plus changing the scene graph in between not only is memory consuming, it is also time consuming. (Btw, freeing memory is time consuming, too.) Since a servlet is meant to serve multiple pages (jpgs in your case) per second in parallel (isn't it?), you surely will run into scalability problems here. It's by design. I use the same approach by avoiding detaching, by running j3d in a separate process and by propagating the rendered image from j3d process to the servlet engine process.
Bernd On Thursday 03 July 2003 19:42, Bj�rn Voigt wrote: || Hi everybody, || || I programmed an servlet, which produces an terrain elevation model || of a geograhpical area. I use offscreen rendering and put aout a JPEG. || || The Offscreen Canvas and the Universe are static, the generate() Method || is synchronized. After the Rendering the SceneGraph will be detached and || the Canvas and Universe instances reused. || || But after some runs I get an out of memory error. || || Is it possible to release the BranchGroup and make the memory free again || after using it. || || I use the following system configuration || || j2sdk1.4.1_3 || java3D-1.3.1 || tomcat 4.1.12LE 1.4 || || || thank in advance || || Bj�rn || || ========================================================================== ||= To unsubscribe, send email to [EMAIL PROTECTED] and include in the || body of the message "signoff JAVA3D-INTEREST". For general help, send || email to [EMAIL PROTECTED] and include in the body of the message || "help". =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
