Avoid 500 error on project page when application is close to RAM limit