Set Tomcat threads and memory based on AWS instance type.