On Thu, Jan 19, 2017 at 10:27 AM, Matt Riedemann <mriedem at linux.vnet.ibm.com > wrote: > On 1/18/2017 4:53 AM, Jens Rosenboom wrote: > >> To me it looks like the times of 2G are long gone, Nova is using >> almost 2G all by itself. And 8G may be getting tight if additional >> stuff like Ceph is being added. >> >> > I'm not really surprised at all about Nova being a memory hog with the > versioned object stuff we have which does it's own nesting of objects. > > What tools to people use to be able to profile the memory usage by the > types of objects in memory while this is running? objgraph and guppy/heapy http://smira.ru/wp-content/uploads/2011/08/heapy.html https://www.huyng.com/posts/python-performance-analysis You can also use gc.get_objects() ( https://docs.python.org/2/library/gc.html#gc.get_objects) to get a list of all objects in memory and go from there. Slots (https://docs.python.org/2/reference/datamodel.html#slots) are useful for reducing the memory usage of objects. > > -- > > Thanks, > > Matt Riedemann > > > > __________________________________________________________________________ > OpenStack Development Mailing List (not for usage questions) > Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20170119/f55e8786/attachment.html>