1.首先必须要清楚什么是tomcat?
tomcat是一个小型的轻量级的应用服务器,在小型系统和并发量不是很多的的场合下呗普遍使用。
2.为什么要进行优化?
tomcat默认参数是针对开发而配置的,而非生产环境,尤其是内存和线程的配置,默认都是比较低的,容易造成性能瓶颈,因此我们需要对tomcat进行优化
3.优化方案?
a.去掉对web.xml的监控,把jsp提前编译成servlet
b.在有比较充裕的物理内存的条件下,可以适当加大tomcat使用的内存