Hi, try to use the vm parameter -Xincgc
this will slow down your servlet a little, but the memory handling is much better than without. also you will see that memory will be released to the system. but it will not help against memory leaks; also you should think about some cleanup code for getting rid of circular dependencies between objects. this strongly supports the garbage collection. in my viewer app i traverse almost the complete scenegraph to release references wherever possible... hope this helps, Karsten > -----Original Message----- > From: Discussion list for Java 3D API > [mailto:[EMAIL PROTECTED] Behalf Of Joerg > 'Herkules' Plewe > Sent: Thursday, July 03, 2003 5:10 PM > To: [EMAIL PROTECTED] > Subject: Re: [JAVA3D] Out of Memory in my java3d-Servlet > > > We experienced the same. Even releasing the complete 3D > environment doesn't > help. > I don't have any idea what to do against that. > > - J > > > ----- Original Message ----- > From: "Bj�rn Voigt" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, July 03, 2003 7:42 PM > Subject: [JAVA3D] Out of Memory in my java3d-Servlet > > > > 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". > ==========================================================================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".
