Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2761108
  • 博文数量: 587
  • 博客积分: 6356
  • 博客等级: 准将
  • 技术积分: 6410
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-23 10:54
个人简介

器量大者,福泽必厚

文章分类

全部博文(587)

文章存档

2019年(3)

2018年(1)

2017年(29)

2016年(39)

2015年(66)

2014年(117)

2013年(136)

2012年(58)

2011年(34)

2010年(50)

2009年(38)

2008年(16)

分类: LINUX

2015-04-19 20:27:55

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一致有两种方法:

一、sticky Session 

这种方式将同一用户的请求转发到特定的Tomcat服务器上,避免了集群中Session的复制,
缺点是用户只跟一种的一台服务器通信,如果此服务器down掉,那就废了。 

二、session replication
通过广播的形式进行不同tomcat间session的复制,对服务器性能有影响,随着主机器的增多,容易有广播风暴!

有3种解决方案:
1:共享存储
2:写入DB
3:memcached中
阅读(1016) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~