Patent ID: 8001336

Claim:
A method for memory management in a computing environment, the method comprising: uniquely identifying a first object associated with a first task for an application executed on a server system, responsive to establishment of a session between a client system and the server system over a communication network, wherein the application services requests submitted by the client system to the server system, and wherein a first area of memory in the server system is allocated to the first object; determining a first execution scope for the first object according to a first execution context associated with the first object, wherein in the first context, a first life expectancy is determined for the first object within an execution environment hierarchy defined by an application execution context, a task execution context, and a current execution context, wherein in the application execution context, the first memory area remains allocated to the first object associated with controlling the application executed in the duration of the session, unless the server system's memory space approaches a predetermined threshold, wherein in the task execution context, the first memory area remains allocated to the first object associated with the first task, while the first task is executed within the context of the first application, unless the server system's memory space approaches a predetermined threshold, and wherein in the current execution context, the first memory area remains allocated to the first object associated with a component of the first task while said component remains active within the context of the first task, unless the server system's memory space approaches a predetermined threshold; determining a change in execution scope of the first object, in response to monitoring the first execution context, wherein the first execution context is based on a flow state of a user using the client system during the established session and the first life expectancy of the first object within the execution environmental hierarchy defined by the application execution context, the task execution context and the current execution context; determining an appropriate memory management and object clean up scheme based on the user flow state and the determined first life expectancy of the first object; and deallocating the first area of memory, based on the determined scheme, in response to determining that the server's memory space of has approached a predetermined threshold before the session within which the first object persists terminates.