Java - configuration tunning