decrease java parm and enable nginx