Login  Register

Memory leak

Posted by Tomd on Oct 21, 2011; 4:51pm
URL: https://forum.jogamp.org/Memory-leak-tp3441326.html

I am using V1.1.1a with an application that displays 3D diagrams.

The memory usage cycles up and down, mainly caused by java.nio.DirectDoubleBuffer. That is probably just normal garbage collection.

However I also use GLPbuffer for creating static images of the 3D graphics. After doing that, I find that the range of fluctuation due to DirectDoubleBuffer is quite a lot larger. It is as if static image code is still grabbing buffers even though it has, AFAIK, been released. Each time I create an image, the total amount of memory taken before GC increases by 20MB or so.

This isn't technically a memory leak, because the buffers are always freed eventually. But I fear that if someone created a number of images the allocations might use up all memory before the GC kicked in.

Anyone have any pointers as to what I might be missing?