Skip to main content

Memory Leaks

1 reply [Last post]
paulby
Offline
Joined: 2003-06-13

I've found a number of places in lg3d (and one in Java 3D) where large amounts of data (textures) are being held by the system even after the user has removed the parent Frame3D from lg3d. Once I get this fixed we should see much better memory usage in lg3d.

Rgds

Paul

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
paulby
Offline
Joined: 2003-06-13

I think the issue is resolved. Please try out the nightly builds tomorrow, or if you work from CVS do a bringover and let me know. You will need to install Java3D 1.5 beta 1 (which is included in the nightly bundles) as we fixed a related memory leak in Java3D.

From my observations memory usage will hover at around 150MB once you have started and closed a few X applications. However the VM will not aggressively reclaim this memory which means it looks like we are using more memory than we really are. I think is due to some SoftReferences in the image code because if you stress the system or manually invoke a GC the memory is reclaimed.

Hopefully this fix will mean lg3d is much more stable over long periods of operation.