added configuration option to set maximum java heap size (-Xmx)