Ways to reduce memory churn
问题 Background I have a Spring batch program that reads a file (example file I am working with is ~ 4 GB in size), does a small amount of processing on the file, and then writes it off to an Oracle database. My program uses 1 thread to read the file, and 12 worker threads to do the processing and database pushing. I am churning lots and lots and lots of young gen memory, which is causing my program to go slower than I think it should. Setup JDK 1.6.18 Spring batch 2.1.x 4 Core Machine w 16 GB ram