updated num_proc resources
added serial gc to java commands