1. A computer-implemented method comprising: recording each access from each thread of a process in a memory to each object of a data container in the memory, in a queue of the data container; determining with a queue manager whether the recorded number of accesses in the queue has reached a predetermined threshold; and locking and evicting one or more objects in the data container when the recorded number of accesses in the queue has reached the predetermined threshold, wherein the data container is locked while one or more objects in the data container are evicted.