Patent ID: 7793304
Filing Date: 2010-09-07
Classification: H04L

Abstract:
1. A method of monitoring memory usage, the method comprising: determining whether memory monitoring is enabled within an application server environment from within an application executing within the application server environment; creating a memory allocation event after determining that memory monitoring is enabled, the memory allocation event associated with an object that is an instance of a first class, wherein the first class is a cached class; allocating memory to the object; creating a cached class object, wherein: creating an instance object that includes a reference to the object, wherein the instance object is an instance of a third class configured to monitor instances of the first class; adding the instance object to a set of instance objects of the cached class object; determining whether memory associated with the object has been deallocated by determining whether memory associated with the object has been garbage collected by referencing an acquired reference to the object from the instance object; and sending a memory event notification to a monitoring system in response to determining that the object has been deallocated.