Login  Register

Re: Un-managed Memory Usage

Posted by Art B on Nov 17, 2015; 4:58pm
URL: https://forum.jogamp.org/Un-managed-Memory-Usage-tp4035789p4035793.html

The problem exists on Mac.  It likely exists on Linux as well.

The garbage collector is doing its job as the Java heap gradually rises and falls.

Here's the results from testing more yesterday afternoon:

I ran the application until it ran out of memory on Windows and a Mac.  I then opened a bunch of web pages and applications.  This is where there are differences between the two systems.  Windows released some of the shareable working set memory for use by these other applications.  Eventually it freed around 10 GB for use.  Mac did not.  It just crashed.

According to the profiler the java objects are getting dereferenced properly.  In the application there are less than 100 direct byte buffers created.  These buffers are reused and this number never grows while the application is running.

As soon as the main "scene" is shutdown and disposed both Windows and Mac will instantly release the (20+ GB of) system memory.

I'm going to try and hunt down the Visual VM plugin and see if that provides any insight.

Thanks