reduce java size to avoid being killed