Hi Aron, On 02/07/2011 12:16 PM, Aron Bierbaum wrote: > I have been trying to track down a memory leak in our application. In the > process I found a very interesting behavior. If you compile the attached test > application it seems to continually consume memory. Does this point to an > issue > with OpenSG, or am I doing something wrong.
I can see two possible things that would consume memory: 1. The ChangeList is never cleared and never committed, so it grows without bounds, unless you make it read-only first. 2. The object ids are stored in a vector, so creating and destroying a lot of objects can grow that vector (slowly). 1. shouldn't be a an issue in 1.8, but will be in 2, 2. should be fixed in current 2. What does valgrind say to your memory leak? Dirk ------------------------------------------------------------------------------ The modern datacenter depends on network connectivity to access resources and provide services. The best practices for maximizing a physical server's connectivity to a physical network are well understood - see how these rules translate into the virtual world? http://p.sf.net/sfu/oracle-sfdevnlfb _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users