1:jmap -dump:format=b,file=heap.bin 26517 26517 就是 ps 出来的 hotel(java进程) pid ##通过jamp dump java进程的内存
2:context: in a nutshell, A context is a web application
3: 推荐使用二进制tomcat版本
4:tomcat manager应用有安全方面的问题,不建议使用
5: $CATALINA-HOME/lib :jars files placed here are visible both to web application and internal tomcat code.
This is a good paace to put JDBC drivers that are required for both your application and internal tomcat use
6: jar
jar -xvf *.war #解压文件
jar -cvf *.jar * #生成jar文件
7:web.xml: web application deployment descriptor
context.xml:*/META-INF/context.xml Tomcat context descriptor
8:tomcat 保持session一致有两种方法: