Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Get a faster computer (ha ha ha)

换个更快的电脑

  • Make sure your code is not doing slow things. (Use a profiler) 会不会你写的代码搞慢了tomcat(试试用profiler检查一下) 

会不会你写的代码搞慢了tomcat(试试用profiler检查一下)

  • Remove any jar files you don't need. When searching for classes every JAR file needs to be examined to find the needed class. Also during webapp startup, jar files are searched for TLD files. If the jar file is not there - there is nothing to search.

删除任何没用的jar文件。 

  • Remove any webapps you don't need. (So remove the all the webapps installed with tomcat)

删除你不用的 webapps, (当然tomcat自带的 webapps, 对你来说都没有用的,删除)

  • Tweak memory parameters - Google is your friend.

(修改内存参数 - google可以帮你 (smile)

  • Trim the config files as much as possible. XML parsing is not cheap. The less there is to parse - the faster things will go.

尽量把config文件的没用的参数删除,  xml 解释器会使用占用不少 cpu,