开发学院软件开发Java Weblogic session persistence的性能的问题 阅读

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)

在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> 

1 2 3 4 5  下一页

Tags:Weblogic session persistence

编辑录入:爽爽 [复制链接] [打 印]
[]
  • 好
  • 好的评价 如果觉得好,就请您
      0%(0)
  • 差
  • 差的评价 如果觉得差,就请您
      0%(0)
更多精彩
    赞助商链接

    热点阅读
      焦点图片
        最新推荐
          精彩阅读