本文比较一下这三种的性能差异。
1. JDBC方式,修改weblogic.xml如下:
2. File方式,修改weblogic.xml如下:
<?xml version=’1.0’ encoding=’UTF-8’?>
<weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/90"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<session-descriptor>
<persistent-store-type>file</persistent-store-type>
<persistent-store-dir>
C:/WLSTemp
</persistent-store-dir>
</session-descriptor>
</weblogic-web-app>
3. In-memory方式,修改weblogic.xml如下:
<?xml version=’1.0’ encoding=’UTF-8’?>
<weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/90"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<session-descriptor>
<persistent-store-type>
replicated
</persistent-store-type>
</session-descriptor>
</weblogic-web-app>

没有评论:
发表评论