Which two methods can be used to mitigate resource exhaustion of an application server? (Choose two)