1. A method comprising: determining ages of objects in a garbage collection heap at a first virtual machine at a server by detecting a number of garbage collections each object has survived; associating an age to each object according to the determined ages; grouping the objects in age ranges, wherein the age ranges correspond to the determined ages; and communicating the age ranges to a second virtual machine at a client.