Changed tomcat configuration to be configured based on number of processors and threads per core