In the application I’m working on I have to deal with large amounts of data, which means handling tens of millions of java objects. One of the biggest problems we face is keeping the memory usage of the program under control. The main object which accounts for the vast majority of the memory consumption contains…