Added max mem size startup variable to try and fight the app being killed