Weblogic session persistence的性能的问题
2009-09-22 00:00:00 来源:WEB开发网在weblogic中,sesion persitence有如下几种方式:
memory—Disables persistent session storage.
file—Uses file-based persistence (See also PersistentStoreDir, above).
jdbc—Uses a database to store persistent sessions. (see also PersistentStorePool, above).
replicated—Same as memory, but session data is replicated across the clustered servers.
cookie—All session data is stored in a cookie in the user's browser.
replicated_if_clustered—If the Web application is deployed on a clustered server, the in-effect PersistentStoreType will be replicated. Otherwise, memory is the default.
本文讨论的重点是持久化导致的性能问题,故只讨论JDBC和File两种方式,其余的不做讨论,Session相关的Params,请参考如下链接,
http://e-docs.bea.com/wls/docs81/webapp/weblogic_xml.html#1038173
首先说一下File persistence, 要使http session被写入到指定f目录下的file中,需要在/WEB-INF/weblogic.xml做如下配置:
weblogic.xml <session-param>
<param-name>PersistentStoreType</param-name>
<param-value>file</param-value>
</session-param>
<session-param>
<param-name>PersistentStoreDir</param-name>
<param-value>d:\session_test</param-value>
</session-param>
<session-param>
<param-name>CacheSize</param-name>
<param-value>10</param-value>
</session-param>
</session-descriptor>
Tags:Weblogic session persistence
编辑录入:爽爽 [复制链接] [打 印]- ››WebLogic调整Java虚拟机性能优化参数
- ››Weblogic执行transaction recover碰到的奇怪问题
- ››Weblogic session persistence的性能的问题
- ››weblogic92连接池的连接数异常问题
- ››Weblogic中几个internal的XA timeout(状态切换相关...
- ››Weblogic中因为IP变更导致SubCoordinator not ava...
- ››Weblogic中的load banlance问题
- ››Weblogic81中HttpCompleteMessageTimeout相关的两...
- ››Weblogic 8.1 for Linux ES3.0安装与配置
- ››Weblogic 8.1 for Linux ES3.0安装配置
- ››Weblogic中使用持久缓存技术优化CMP性能
- ››WebLogic运用DB的Java控件访问数据库
更多精彩
赞助商链接