Store a large number of java objects : I am trying to proccess a large number of rows imported from hive table(hundred millions of rows). As output it will be much more. I need to generate new rows if some conditions are valid. But this is not a problem. The problem is how to store these hive rows. In this moment i use ArrayList because the order is very important for my algorithm of inserting new rows, but i get an "GC overhead limit exceeded". 