[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
两个tomcat6.0部署同一台机能共享session,部署在不同机上不能共享  XML
Forum Index -> Terracotta 中文社区
Author Message
wjs

neo

Joined: 02/17/2013 01:37:49
Messages: 3
Offline

Terracotta版本3.7.3按照官网的步骤配置,配置文件,在A机器启动tc-server,再在A机器启动两个tomcat,集群成功,并成功共享session,但是两个tomcat6.0部署在不同机时,session不能共享。在同一机器同一个浏览器访问两台机器上的tomcat,得到两个不同的sessionid.
以下是tc-config.xml配置
<?xml version="1.0" encoding="UTF-8" ?>
<tc:tc-config xmlns:tc="http://www.terracotta.org/config"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.terracotta.org/schema/terracotta-6.xsd">
<tc-properties>
<!--
<property name="l1.cachemanager.percentageToEvict" value="10"/>
<property name="l1.cachemanager.sleepInterval" value="3000"/>
<property name="l1.cachemanager.criticalThreshold" value="90"/>
<property name="l1.cachemanager.threshold" value="70"/>
<property name="l1.cachemanager.monitorOldGenOnly" value="true"/>
-->
<property name="l2.nha.dirtydb.autoDelete" value="true" />
<property name="l1.cachemanager.enabled" value="true" />
<property name="logging.maxLogFileSize" value="1024" />
</tc-properties>

<system>
<!--default:development can setup "production" -->
<configuration-model>development</configuration-model>
</system>

<servers>

<server host="192.168.1.23" name="s2"
bind="192.168.1.23">
<data>/usr/java/terracotta/server-data</data>
<logs>/usr/java/terracotta/server-logs</logs>
<index>/usr/java/terracotta/server-index</index>
<dso-port>9510</dso-port>
<jmx-port>9520</jmx-port>
<l2-group-port>9530</l2-group-port>
<authentication />
<dso>
<client-reconnect-window>120</client-reconnect-window>
<persistence>
<mode>permanent-store</mode>
</persistence>
<garbage-collection>
<enabled>true</enabled>
<verbose>false</verbose>
<interval>3600</interval>
</garbage-collection>
</dso>
</server>
<ha>
<mode>networked-active-passive</mode>
<networked-active-passive>
<election-time>5</election-time>
</networked-active-passive>
</ha>
<update-check>
<enabled>true</enabled>
<period-days>10</period-days>
</update-check>
</servers>
<clients>
<logs>/usr/java/terracotta/client-logs/pojo/%i</logs>
</clients>
<application>
<dso>
<web-applications>
<web-application>t</web-application>
</web-applications>
</dso>
</application>
</tc:tc-config>
rajoshi

seraphim

Joined: 07/04/2011 04:36:10
Messages: 1491
Offline

Can you please post in English.

Rakesh Joshi
Senior Consultant
Terracotta.
wjs

neo

Joined: 02/17/2013 01:37:49
Messages: 3
Offline

Hi,rajoshi
I install Web Sessions with the Installation Guide: http://terracotta.org/documentation/web-sessions/installation-guide.
First, I start the tc-server , then start two tomcat6.0 on the same machine, cluster success, and successfully shared session,Everything is normal。But two the tomcat6.0 deployment in different machines, the session can not be shared. In the same machine with a multi-tab browser to access tomcat on two machines, two different sessionid.
Terracotta Developer Console shows two different sessionid.Why?
wjs

neo

Joined: 02/17/2013 01:37:49
Messages: 3
Offline

deployment in different machines:
tc-server Console

tomcat6.0 one Console

tomcat6.0 tow Console


 
Forum Index -> Terracotta 中文社区
Go to:   
Powered by JForum 2.1.7 © JForum Team