Disclosed is a system and method for managing sessions and memory
resources used for replication of data in a data storage environment. The
method includes the steps of determining whether a first copy session has
at least a predetermined amount of memory to complete in accordance with
a predetermined criterion for an amount of memory for a copy session and
allowing the first copy session to complete if said memory satisfies said
criterion and freeing up memory associated with the session to be
allocated for another session.