Apache Tomcat Performance optimization

1- Memory problems

2- CPU  (    For  number of Threads,  server.xml)

 

Example