[Logo] Terracotta Discussion Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
我在window server 2003 下,利用apache2.2.11+tomcat6+terracotta 群集不能复制session  XML
Forum Index -> Terracotta 中文社区 Go to Page: 1, 2 Next 
Author Message
rexchen

neo

Joined: 07/23/2009 23:50:16
Messages: 8
Offline

我在window server 2003 下,利用一个apache2.2.11+ 5个tomcat 6.0.20进行群集,群集可以成功,但是session不能复制,所以在网上去搜索,就看见贵公司的terracotta可以实现session的复制.由于是初次接触terracotta,所以在用的时候遇到很多的问题,terracotaa安装好后,我也进入了 terracotta developer console,由于在同一台机器上做实验,我机器的ip是 192.168.0.26 ,tomcat 的server.xml配置分别是 <Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
http/1.1 port 分别是 8181,8282,8383,8484
AJP/1.3 port 分别是 8019 8029 8039 8049
然后我在terracotta developer console 点击默认的 jmx端口为9520 能够进入主界面,我在主界面上新建立了一个cluster,然后输入server host:192.168.0.26,JMX port:8009,这个8009 是AJP/1.3的port。我是先把tomcat启动好了的。但是tomcat 报错误了,错误如下:
严重: BAD packet signature 18245
2009-7-24 10:35:56 org.apache.jk.common.ChannelSocket processConnection
严重: Error, processing connection
java.lang.IndexOutOfBoundsException
at java.io.BufferedInputStream.read(Unknown Source)
at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:620)
at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:577)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja
va:685)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSock
et.java:889)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:690)
at java.lang.Thread.run(Unknown Source)
2009-7-24 10:35:56 org.apache.jk.common.MsgAjp processHeader
严重: BAD packet signature 18245
2009-7-24 10:35:56 org.apache.jk.common.ChannelSocket processConnection
严重: Error, processing connection
java.lang.IndexOutOfBoundsException
at java.io.BufferedInputStream.read(Unknown Source)
at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:620)
at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:577)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja
va:685)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSock
et.java:889)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:690)
at java.lang.Thread.run(Unknown Source)
2009-7-24 10:35:56 org.apache.jk.common.MsgAjp processHeader
严重: BAD packet signature 18245
2009-7-24 10:35:56 org.apache.jk.common.ChannelSocket processConnection
严重: Error, processing connection
java.lang.IndexOutOfBoundsException
at java.io.BufferedInputStream.read(Unknown Source)
at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:620)
at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:577)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja
va:685)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSock
et.java:889)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:690)
at java.lang.Thread.run(Unknown Source)
2009-7-24 10:35:56 org.apache.jk.common.MsgAjp processHeader
严重: BAD packet signature 18245
2009-7-24 10:35:56 org.apache.jk.common.ChannelSocket processConnection
严重: Error, processing connection
java.lang.IndexOutOfBoundsException
at java.io.BufferedInputStream.read(Unknown Source)
at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:620)
at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:577)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja
va:685)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSock
et.java:889)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:690)
at java.lang.Thread.run(Unknown Source)
2009-7-24 10:35:56 org.apache.jk.common.MsgAjp processHeader
严重: BAD packet signature 19026
2009-7-24 10:35:56 org.apache.jk.common.ChannelSocket processConnection
严重: Error, processing connection
java.lang.IndexOutOfBoundsException
at java.io.BufferedInputStream.read(Unknown Source)
at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:620)
at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:577)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja
va:685)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSock
et.java:889)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:690)
at java.lang.Thread.run(Unknown Source)
我用的是terracotta 3.0.1,不知道怎么处理了。网上关于terracotta 3.0.1+tomcat6的资料很少,查了很久也查不到有用的信息。教程也没有。
所以我希望你能够给我提供一点帮助,我需要一份很为详细的关于apache2.2.11+terracotta 3.0.1+tomcat 6.x的配置以及操作。最好有视频教程
ari

seraphim

Joined: 05/24/2006 14:23:21
Messages: 1665
Location: San Francisco, CA
Offline

Not sure if a response in English will help but it looks to me like you are pointing your Terracotta console at your Apache AJP connection port. This is not correct.

Our console should just be given the IP address of the machine running your Terracotta Server process.

--Ari
[WWW]
rexchen

neo

Joined: 07/23/2009 23:50:16
Messages: 8
Offline

ari:
would you like tell me how to do it.
I think you can give me a detail document about tomcat and teraoctta .
I don't kown how to set the terraoctta connect the tomcat

my enlish is not so good ,foregive me
lima

consul
[Avatar]
Joined: 06/22/2009 10:12:31
Messages: 361
Offline

通过 Terracotta实现基于Tomcat的Web应用集群教程

本教程介绍如何配置Tomcat和Terracotta服务器将普通的Web应用部署到集群中,实现跨Tomcat节点的session复制,以达到负载均衡、提高系统吞吐量和灾难恢复的效果。

基本原理简介
一般利用Tomcat搭建Web应用集群有如下几种方法:
1、利用负载均衡器的粘session的方式把所有同一session的请求都发送到相同的Tomcat节点。这样不同用户的请求就被平均分配到集群中各个tomcat节点上,实现负载均衡的能力。这样做的缺点是没有灾难恢复的能力。一旦一个节点发生故障,这个节点上所有的session信息全部丢失;
2、利用Tomcat session复制的机制使得所有session在所有Tomcat节点中保持一致。当一个节点修改一个session数据的时候,该节点会把这个 session的所有内容序列化,然后广播给所有其它节点。这样当下一个用户请求被负载均衡器分配到另外一个节点的时候,那个节点上有完备的 session信息可以用来服务该请求。这种做法的问题是对session哪怕有一点点修改,也要把整个sessions数据全部序列化(serialize),还要广播给集群中所有节点,不管该节点到底需不需要这个session。这样很容易会造成大量的网络通信,导致网络阻塞。一般采用这种方式,当Tomcat节点超过4个时候,整个集群的吞吐量就不能再上升了;
3、第三种方式是通过cookie保存用户信息的一个或几个关键字,每一个http请求到达web应用的时候,web程序拿这个关键字到数据库中读取相关的数据,然后对其进行处理。也就是说把session数据保存到了数据库中。这样以来在内存中的session就完全不需要了。这样做的缺点就是加大了数据库的负载,使得数据库变成了集群的瓶颈。而通过构造数据库集群提高负载能力往往需要高额的成本。

Terracotta的基本原理是对于集群间共享的数据,当在一个节点发生变化的时候,Terracotta只把变化的部分发送给Terracotta服务器,然后由服务器把它转发给真正需要这个数据的节点。这样对网络的压力就非常小,各个节点也不必浪费CPU时间和内存进行大量的序列化操作。把这种集群间数据共享的机制应用在session同步上,相当于对tomcat第二种集群实现机制进行了优化,既避免了对数据库的依赖,又能达到负载均衡和灾难恢复的效果。在对比测试中,采用Terracotta搭建Tomcat集群,节点达到8个时候,整个集群的吞吐量还一直是线性增长的。

为了方便使用Terracotta搭建Tomcat集群,Terracotta提供了专门的插件tim-tomcat。下面将对集群的搭建进行详细描述。

准备工作
首先需要下载如下软件:
* Apache Tomcat
目前Terracotta官方支持的Tomcat版本为:
o Apache Tomcat 6.0.18
o Apache Tomcat 5.5.26
o Apache Tomcat 5.0.28
* Terracotta 3.0或更高版本

安装过程
1. 在所有机器上安装Java
请参考目前支持的软硬件平台
2. 在所有机器上安装Terracotta
* 选一台机器作为Terracotta服务器
* 在所有运行Tomcat的机器上也安装Terracotta,他们将称为Terracotta客户端
3. 在应用服务器节点上安装Tomcat
4. 把要部署的Web应用部署在所有Tomcat上

配置过程
下载附件中的Terracotta 配置文件,保存到 ${TERRACOTTA_HOME}/tc-config.xml(Unix上)或者 ${TERRACOTTA_HOME}\tc-config.xml(Windows上)。
修改web-applications和web-application部分,把要共享session的应用的contex配置上:
<web-applications>
<web-application>my_web_app1</web-application>
<web-application>my_web_app2</web-application>
</web-applications> 


您可能还需要修改Terracotta服务器的信息。比如:
<server host="192.168.0.100">
<dso-port>9510</dso-port>
</server> 

把配制好的tc-config.xml文件拷贝到所有机器上。然后在每一台机器上,进入TERRACOTTA_HOME目录,运行:
UNIX/LINUX
bin/tim-get.sh upgrade tc-config.xml 

Windows
bin\tim-get.bat upgrade tc-config.xml 


配置Tomcat应用服务器
在Tomcat安装目录的bin子目录中创建startupTC.sh(Unix)或startupTC.bat(Windows)文件。其内容为:
UNIX/LINUX
TC_INSTALL_DIR=<本地Terracotta安装目录>
TC_CONFIG_PATH=<本地tc-config.xml的完整文件名>
. $TC_INSTALL_DIR/bin/dso-env.sh -q
export JAVA_OPTS="$JAVA_OPTS $TC_JAVA_OPTS"
. startup.sh 

Windows
set TC_INSTALL_DIR=<本地Terracotta安装目录>
set TC_CONFIG_PATH=<本地tc-config.xml的完整文件名>
call %TC_INSTALL_DIR%\bin\dso-env.bat -q
set JAVA_OPTS=%JAVA_OPTS% %TC_JAVA_OPTS%
startup.bat 

启动集群
在Terracotta服务器上的Terracotta安装目录执行如下命令:
UNIX/LINUX
bin/start-tc-server.sh & 

Windows
bin\start-tc-server.bat 

在每一台Web应用服务器上的Tomcat安装目录的bin子目录下执行:
UNIX/LINUX
./startupTC.sh 

Windows
startupTC.bat 


等Tomcat启动以后,查看Tomcat日志文件,确认Terrocotta已经启动。比如在Mac环境中,使用Terracotta 3.0.1,看到的日志将包括如下内容:
2009-07-17 10:57:39,425 INFO - Terracotta 3.0.1, as of 20090514-130552 (Revision 12704 by cruise@su10mo5 from 3.0)
2009-07-17 10:57:39,828 INFO - Configuration loaded from the file at '/Users/lma/tc-config.xml'.
2009-07-17 10:57:39,975 INFO - Log file: '/Users/lma/apps/tomcat-5.5.27/bin/logs/client-logs/terracotta-client.log'.
2009-07-17 10:57:42,312 INFO - Connection successfully established to server at 192.168.0.102:9510 


如果能看到上述信息,说明Terracotta和Tomcat都正常启动,并且已经与Terracotta服务器成功建立了连接。

验证Session集群
集群启动后,我们可以利用Tomcat内置的Web应用examples来验证集群是否成功配置好。
比如有两台Tomcat服务器分别为http://192.168.0.101:8080和http://192.168.0.102:8080。
首先启动dev-concole.sh(Unix)或dev-console.bat(Windows),连接到Terracotta服务器上。您可以看到所有Tomcat节点都显示在Connected Clients中。另外在Object Browser中可以看到一个共享数据:
tc:session_localhost/examples 

说明所有session已经被共享到Terracotta服务器上了。
下面把浏览器指向:
http://localhost:8088/examples/jsp/cal/login.html
输入姓名和EMail。点击Submit进入下一级页面。
这时您可能会看到服务器抛出com.tc.exception.TCNonPortableObjectError异常。仔细查看异常信息会发现原来该例子程序所需的一些类没有包含在tc-config.xml的instrumented-classes配置中。因此需要打开tc-config.xml配置文件,把如下配置添加到<application><dso>中:
<instrumented-classes>
<include>
<class-expression>cal.*</class-expression>
</include>
</instrumented-classes> 

重新启动Tomcat。再打开前面的页面。
您可能还会遇见TCNonPortableObjectError,不过这次的错误是有关boot jar的:
com.tc.exception.TCNonPortableObjectError:
*******************************************************************************
Attempt to share an instance of a non-portable class referenced by a portable class. This unshareable class must be in the DSO boot jar. It also has superclasses which must be in the DSO boot jar. Please add all of these classes to the boot jar configuration and re-create the DSO boot jar.
 

只要认真阅读错误信息,按照提示的方法配置tc-config.xml文件,然后执行下面的命令重新生成boot jar文件,再重新启动Tomcat就可以了:
$TERRACOTTA_HOME/bin/make-boot-jar.sh -f $TOMCAT_HOME/tc-config.xml 


处理完上述问题后,例子程序中会显示一个日历管理系统。您可以在里面配置一天的工作日程。
在第一台Tomcat服务器上配置好一天的日程,然后到第二台服务器上,打开相同的页面,您会看到前面输入的日程已经显示出来了。您还可以试着在第二台服务器上对日程进行修改,再到第一台上面刷新页面,前面的修改也会立即显示出来。这说明两台Tomcat服务器的session信息已经完全同步了。

错误处理
1. 如果启动失败,有可能是JAVA_OPTS没有配置好。
可以尝试在startupTC文件中,在set JAVA_OPTS后面打印出JAVA_OPTS的内容。应该看到类似下面的内容:
-Xmx512m -Xms512M -Xbootclasspath/p:/Users/lma/terracotta/terracotta-3.0.1/lib/dso-boot/dso-boot-hotspot_osx_150_19.jar -Dtc.install-root=/Users/lma/terracotta/terracotta-3.0.1 -Dtc.config=/Users/lma/tc-config.xml

2. 如果遇见TCNonPortableObjectException异常,说明在Session中共享的类没有包含在tc-config.xml的 instrumented-classes配置中。一般在异常新吸力面Terracotta会包含需要添加到配置文件中的信息,比如:
<instrumented-classes>
<include>
<class-expression>num.NumberGuessBean</class-expression>
</include>
<instrumented-classes>
</instrumented-classes>

只要按照提示把配置信息放到tc-config.xml文件中,然会从新启动Tomcat即可。

附件-tc-config.xml


<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-4.xsd">

<servers>

<!-- For more information on working with the Terracotta configuration file, including how to add
more servers, see http://www.terracotta.org/web/display/docs/About+Terracotta+Configuration+Files.

Edit the following server element so that its host attribute contains the value matching the
hostname for the Terracotta server. -->

<server host="localhost">
<dso-port>9510</dso-port>
</server>

<update-check>
<enabled>true</enabled>
</update-check>

</servers>

<!-- Check that the TIM shown in the <module> element's name attribute matches the Tomcat version you
are using. The TIM listed here, "tim-tomcat-5.5" is for Tomcat 5.5. For example, if you are using
Tomcat 6.0, edit the name to "tim-tomcat-6.0". -->

<clients>
<modules>
<module name="tim-tomcat-6.0" version="1.1.0" />
</modules>
</clients>

<!-- Using <web-application> elements, enter the context root of the web application being clustered.
If you are clustering more than one web application, use one <web-application> element per application.
Two example <web-application> elements are shown below. Edit or remove these elements as needed.
To set the value of the <web-application> element to the default web-application context, use the
special value "ROOT" (without quotation marks). -->

<application>
<dso>
<instrumented-classes>
<include>
<class-expression>num.NumberGuessBean</class-expression>
</include>
<include>
<class-expression>cal.*</class-expression>
</include>
</instrumented-classes>

<web-applications>
<web-application>examples</web-application>
</web-applications>
</dso>
</application>
</tc:tc-config>
 
lima

consul
[Avatar]
Joined: 06/22/2009 10:12:31
Messages: 361
Offline

rexchen:
正如Ari所说,你不能把dev-console指向Tomcat的端口。dev-consol只能查看Terracotta服务器的信息,和通过该服务器查看所有连接到它上面的客户端的信息。

我在前面的回复时配置tomcat集群的一个简介。希望对你能有帮助。
rexchen

neo

Joined: 07/23/2009 23:50:16
Messages: 8
Offline

lima 先生:
看了你的回答:现在我有5个疑问.
1:my-web-app1指的是具体的项目名称,还是指的一个类,代表了什么意思
2:%JAVA-OPTS%%TC-JAVA-OPTS%,这两个的值分别因该设置什么值,他们的值是从哪里来的?还就是默认这样写上去就是,不用管它
3:dso-fenv.bat -q 起什么作用,为什么要调用它
4:对于$TERRACOTTA-home\bin\make-boot-jar -f $TOMCAT-home\tc-config.xml 后面从$TOMCAT-HOME\tc-config.xml指的是tomcat目录下面的tc-config.xml吗?还是tc-config.xml是自己定义的,随便放在什么位置都可以
5:这个num.number.GuessBean是TERRACOTTA自带的类还是我在项目中必须建立这样一个类
6:在TERRACOTTA的 TERRACOTTA Developer console下看不见自己配置的tomcat 连接
再次谢谢 lima的回答
lima

consul
[Avatar]
Joined: 06/22/2009 10:12:31
Messages: 361
Offline

rexchen,下面加粗的文字是我的回答:

1:my-web-app1指的是具体的项目名称,还是指的一个类,代表了什么意思
A:那是你的Web应用的context名称。比如您web应用的部署包是myapp.war,context名称就是myapp。
2:%JAVA-OPTS%%TC-JAVA-OPTS%,这两个的值分别因该设置什么值,他们的值是从哪里来的?还就是默认这样写上去就是,不用管它
A:首先这几个变量使用的都是下划线_,而不是减号-。其次,这两个环境变量是脚本自动配制的,可以不用管它
3:dso-fenv.bat -q 起什么作用,为什么要调用它
A:这个脚本是用来根据前面配置的TC_INSTALL_DIR,TC_CONFIG_PATH来生成其它Terracotta所需的环境变量的。您可以打开这个文件来看它具体做的工作。
4:对于$TERRACOTTA-home\bin\make-boot-jar -f $TOMCAT-home\tc-config.xml 后面从$TOMCAT-HOME\tc-config.xml指的是tomcat目录下面的tc-config.xml吗?还是tc- config.xml是自己定义的,随便放在什么位置都可以
A:您可以把tc-config.xml放在任意的位置。
5:这个num.number.GuessBean是TERRACOTTA自带的类还是我在项目中必须建立这样一个类
A:这是我要演示的web应用examples里面使用到的一个类。您自己的应用可能需要配置其它的类或者包。
6:在TERRACOTTA的 TERRACOTTA Developer console下看不见自己配置的tomcat 连接
A:在clients里面已经有所有tomcat节点的信息了。不知道你还希望看到有关tomcat的什么信息。
再次谢谢 lima的回答
rexchen

neo

Joined: 07/23/2009 23:50:16
Messages: 8
Offline

lima:你好,我按照你的做法,做了一下。还是遇到一些问题:
(1):我在tomcat的bing下设置了一个classpath.bat,这个classpath.bat是启动tomcat的环境变量的设置:设置如下:
set path JAVA_HOME=C:\Program Files\Java\jdk1.6.0_12
set path TOMCAT_HOME=C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.18\bin
然后按照你的方法在 tomcat的bin下面新建了一个startupTC.bat
内容如下:
set TC_INSTALL_DIR="C:\Program Files\terracotta\terracotta-3.0.1"
set TC_CONFIG_PATH="C:\Program Files\terracotta\terracotta-3.0.1\bin\tc-config.xml"
call %TC_INSTALL_DIR%\bin\dso-env.bat -q
set JAVA_OPTS=%JAVA_OPTS% %TC_JAVA_OPTS%

现在我先启动classpath.bat,再启动startupTC.bat,最后启动tomcat的startup.bat
tomcat不能启动:
报错如下:
此时不应有 Files\Java\jdk1.6.0_12""





红色部分就是报的错误。我不知道这个是什么引起的。
然后我再次做了一个测试:
我先启动classpath.bat,再启动tomcat的startup.bat,结果能够正常启动,说明是配置了startupTC.bat造成的。
但是我的startupTC.bat又错在那里呢?

(2):context的项目名称必选添加吗?我有点糊涂,添加了部署的项目的名称的话,它是通过什么途径找到项目的?又没有路径,只有一个名称而已。

(3)像您说的num.number.GuessBean是必须要添加的吗?还有“一般在异常新吸力面Terracotta会包含需要添加到配置文件中的信息”这句话是什么意思啊?如何确定我该把什么类添加到<class-expressiong></class-expressiong>里面,把自己的类添加到里面它怎么能找的到我的类的路径?
(4)还有这个<class-expression>cal.*</class-expression>这也是自己添加的类或者包吗?添加类和包在这里面起什么作用。
lima

consul
[Avatar]
Joined: 06/22/2009 10:12:31
Messages: 361
Offline

recchen:

1)
首先下面两个命令看上去有点怪:
set path JAVA_HOME=C:\Program Files\Java\jdk1.6.0_12
set path TOMCAT_HOME=C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.18\bin

一般是这样写的:
set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_12
set TOMCAT_HOME=C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.18\bin

我好久不做WINDOWS脚本了,不知道是不是有问题。
其中TOMCAT_HOME一般不需要配置。如果配置,也要指向"C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.18"。

另外 此时不应有 Files\Java\jdk1.6.0_12"" 的错误一般是因为您的路径里面有空格,导致Windows启动程序的时候吧一个完整的命令截断了 。您可以尝试把前面的
set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_12
改成
set JAVA_HOME="C:\Program Files\Java\jdk1.6.0_12"
试试。


2) Context名称是必选的。Tomcat会自动到它的webapps目录里找。所以您只提供一个名称就好了

3、4)我给的tc-config.xml只适用于我本地测试用的演示程序,具体说,是tomcat自带的exampls程序。number.GuessBean是我的演示程序里的类。您应该根据您自己的程序来决定把哪些类包含到配置中。
”一般在异常新吸力面“应该是”一般在异常信息里面“。前面可能拼音打错了。
你可以根据tomcat和terracotta报的错误来判断哪些类需要放在class-expession里面。如果有很多类同属于一个包,比如cal包,您可以用cal.*把该包下所有的类都包含进来。
rexchen

neo

Joined: 07/23/2009 23:50:16
Messages: 8
Offline

lima:现在我用IE测试:session能够成功复制,但是我用其他的浏览器,比如firefox,苹果浏览器,就报如下错误:
严重: An exception or error occurred in the container during the request process
ing
java.lang.IllegalStateException: response is already committed
at com.terracotta.session.util.DefaultCookieWriter.writeCookie(DefaultCo
okieWriter.java:62)
at com.terracotta.session.TerracottaSessionManager.writeCookieIfHop(Terr
acottaSessionManager.java:442)
at com.terracotta.session.TerracottaSessionManager.getSessionIfExists(Te
rracottaSessionManager.java:435)
at com.terracotta.session.SessionRequest.getTerracottaSession(SessionReq
uest.java:104)
at com.terracotta.session.TerracottaSessionManager.postprocessSession(Te
rracottaSessionManager.java:351)
at com.terracotta.session.TerracottaSessionManager.basicPostprocess(Terr
acottaSessionManager.java:327)
at com.terracotta.session.TerracottaSessionManager.postprocess(Terracott
aSessionManager.java:307)
at org.terracotta.modules.tomcat.tomcat_5_5.SessionValve55.tcInvoke(Sess
ionValve55.java:65)
at org.terracotta.modules.tomcat.tomcat_5_5.SessionValve55.invoke(Sessio
nValve55.java:50)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:293)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)

at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja
va:698)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSock
et.java:891)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:690)
at java.lang.Thread.run(Thread.java:619)


response is already committed感觉有点奇怪。这个错误是什么引起的??
服务器一报这样的错误,全部的浏览器都不能等上,再查看dev-console,里面的client全部消失了,为0,启动的时候都能看见有的
lima

consul
[Avatar]
Joined: 06/22/2009 10:12:31
Messages: 361
Offline

能不能把整个Tomcat从启动到出错的 log都贴上来?
比如
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:690)
at java.lang.Thread.run(Unknown Source)
前面是什么?

论坛上有人说过类似的问题:
http://forums.terracotta.org/forums/posts/list/1344.page
不过那个帖子里面似乎能看到是用户访问几个图片文件的时候,terrocotta的filter造成的问题。我想看看你这个问题是在什么情况下出现的。
rexchen

neo

Joined: 07/23/2009 23:50:16
Messages: 8
Offline

出错前的terracotta-server.log
2009-07-28 09:06:15,171 [main] INFO com.terracottatech.general - New logging session started.
2009-07-28 09:06:15,234 [main] INFO com.terracottatech.console - Terracotta 3.0.1, as of 20090514-130552 (Revision 12704 by cruise@su10mo5 from 3.0)
2009-07-28 09:06:15,296 [main] INFO com.tc.config.schema.setup.StandardXMLFileConfigurationCreator - Attempting to load configuration from the file at 'D:\terracotta-3.0.1\bin\tc-config.xml'...
2009-07-28 09:06:15,312 [main] INFO com.tc.config.schema.setup.StandardXMLFileConfigurationCreator - Successfully loaded configuration from the file at 'D:\terracotta-3.0.1\bin\tc-config.xml'. Config is:


<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-4.xsd">

<servers>

<!-- For more information on working with the Terracotta configuration file, including how to add
more servers, see http://www.terracotta.org/web/display/docs/About+Terracotta+Configuration+Files.

Edit the following server element so that its host attribute contains the value matching the
hostname for the Terracotta server. -->

<server host="192.168.0.26">
<dso-port>9510</dso-port>

<data>data/server-data</data>

<logs>logs/server-logs</logs>
</server>

<update-check>
<enabled>true</enabled>
</update-check>

</servers>

<!-- Check that the TIM shown in the <module> element's name attribute matches the Tomcat version you
are using. The TIM listed here, "tim-tomcat-5.5" is for Tomcat 5.5. For example, if you are using
Tomcat 6.0, edit the name to "tim-tomcat-6.0". -->

<clients>
<modules>
<module name="tim-tomcat-6.0" version="1.1.0" />
</modules>
</clients>

<!-- Using <web-application> elements, enter the context root of the web application being clustered.
If you are clustering more than one web application, use one <web-application> element per application.
Two example <web-application> elements are shown below. Edit or remove these elements as needed.
To set the value of the <web-application> element to the default web-application context, use the
special value "ROOT" (without quotation marks). -->

<application>
<dso>
<additional-boot-jar-classes>
<include>java.util.Locale</include>
</additional-boot-jar-classes>
<transient-fields>
<field-name>org.apache.struts.action.ActionForm.servlet</field-name>
</transient-fields>
<instrumented-classes>
<include>
<class-expression>org.apache.struts.action.ActionForm</class-expression>
</include>
<include>
<class-expression>org.apache.struts.action.ActionForm.servlet</class-expression>
</include>
<include>
<class-expression>com.help.desktop.actions.*</class-expression>
</include>
<include>
<class-expression>com.help.struts.actions.*</class-expression>
</include>
<include>
<class-expression>com.help.struts.forms.*</class-expression>
</include>
<include>
<class-expression>com.help.util.*</class-expression>
</include>
<include>
<class-expression>com.help.entity.*</class-expression>
</include>
</instrumented-classes>

<web-applications>
<web-application>help</web-application>
</web-applications>
</dso>
</application>
</tc:tc-config>

2009-07-28 09:06:15,562 [main] INFO com.terracottatech.console - Configuration loaded from the file at 'D:\terracotta-3.0.1\bin\tc-config.xml'.
2009-07-28 09:06:15,578 [main] INFO com.tc.properties.TCProperties - Loading default properties from tc.properties
2009-07-28 09:06:15,578 [main] INFO com.tc.properties.TCProperties - tc-config doesn't have any tc-property. No tc-property will be overridden
2009-07-28 09:06:15,593 [main] INFO com.tc.properties.TCProperties - Loaded TCProperties : TCProperties = { console.showObjectID = true, cvt.buffer.randomsuffix.enabled = false, cvt.rest.interface.enabled = true, cvt.retriever.notification.interval = 60, cvt.statistics.logging.interval = 900, cvt.store.randomsuffix.enabled = false, ehcache.clusterAllCacheManagers = true, ehcache.concurrency = 128, ehcache.evictor.logging.enabled = false, ehcache.evictor.pool.size = 1, ehcache.global.eviction.enable = true, ehcache.global.eviction.frequency = 10, ehcache.global.eviction.rest.timeMillis = 10, ehcache.global.eviction.segments = 2, ehcache.lock.readLevel = READ, ehcache.lock.writeLevel = WRITE, ehcache.logging.enabled = false, http.defaultservlet.attribute.aliases = false;, http.defaultservlet.attribute.dirallowed = false;, http.defaultservlet.enabled = false;, l1.cachemanager.criticalObjectThreshold = -1, l1.cachemanager.criticalThreshold = 90, l1.cachemanager.enabled = true, l1.cachemanager.leastCount = 2, l1.cachemanager.logging.enabled = false, l1.cachemanager.monitorOldGenOnly = true, l1.cachemanager.percentageToEvict = 10, l1.cachemanager.sleepInterval = 3000, l1.cachemanager.threshold = 70, l1.connect.versionMatchCheck.enabled = true, l1.healthcheck.l2.bindAddress = 0.0.0.0, l1.healthcheck.l2.bindPort = 0, l1.healthcheck.l2.ping.enabled = true, l1.healthcheck.l2.ping.idletime = 5000, l1.healthcheck.l2.ping.interval = 1000, l1.healthcheck.l2.ping.probes = 3, l1.healthcheck.l2.socketConnect = true, l1.healthcheck.l2.socketConnectCount = 13, l1.healthcheck.l2.socketConnectTimeout = 5, l1.jvm.check.compatibility = true, l1.l2.config.validation.enabled = true, l1.lock.statistics.gatherInterval = 1, l1.lock.statistics.traceDepth = 0, l1.lockmanager.striped.count = 16, l1.lockmanager.timeout.interval = 60000, l1.max.connect.retries = -1, l1.modules.additional = , l1.modules.default = org.terracotta.modules.excludes-config;bundle-version:=3.0.1,org.terracotta.modules.guimodels-config;bundle-version:=3.0.1,org.terracotta.modules.jdk15-preinst-config;bundle-version:=3.0.1,org.terracotta.modules.spring-config;bundle-version:=3.0.1,org.terracotta.modules.standard-config;bundle-version:=3.0.1, l1.modules.repositories = , l1.modules.tc-version-check = , l1.objectmanager.fault.logging.enabled = false, l1.objectmanager.flush.logging.enabled = false, l1.objectmanager.objectid.request.size = 50000, l1.objectmanager.remote.logging.enabled = false, l1.objectmanager.remote.maxDNALRUSize = 60, l1.seda.stage.sink.capacity = -1, l1.serverarray.objectCreationStrategy = round-robin, l1.serverarray.objectCreationStrategy.groupAffinity.groupName = mirror-group1, l1.serverarray.objectCreationStrategy.roundRobin.coordinatorLoad = 100, l1.serverarray.objectCreationStrategy.roundRobin.startIndex = sequential, l1.socket.connect.timeout = 10000, l1.socket.reconnect.waitInterval = 1000, l1.transactionmanager.completedAckFlushTimeout = 5000, l1.transactionmanager.folding.debug = false, l1.transactionmanager.folding.enabled = true, l1.transactionmanager.folding.lock.limit = 0, l1.transactionmanager.folding.object.limit = 0, l1.transactionmanager.logging.enabled = false, l1.transactionmanager.maxBatchSizeInKiloBytes = 128, l1.transactionmanager.maxOutstandingBatchSize = 4, l1.transactionmanager.maxPendingBatches = 88, l1.transactionmanager.maxSleepTimeBeforeHalt = 1024, l1.transactionmanager.strings.compress.enabled = true, l1.transactionmanager.strings.compress.logging.enabled = false, l1.transactionmanager.strings.compress.minSize = 512, l1.transactionmanager.timeoutForAckOnExit = 300, l2.beanshell.enabled = false, l2.beanshell.port = 9929, l2.berkeleydb.je.checkpointer.bytesInterval = 100000000, l2.berkeleydb.je.cleaner.bytesInterval = 20000000, l2.berkeleydb.je.cleaner.detailMaxMemoryPercentage = 5, l2.berkeleydb.je.cleaner.lookAheadCacheSize = 32768, l2.berkeleydb.je.cleaner.minAge = 5, l2.berkeleydb.je.lock.nLockTables = 7, l2.berkeleydb.je.lock.timeout = 180000000, l2.berkeleydb.je.maxMemoryPercent = 25, l2.cachemanager.criticalObjectThreshold = -1, l2.cachemanager.criticalThreshold = 90, l2.cachemanager.enabled = true, l2.cachemanager.leastCount = 2, l2.cachemanager.logging.enabled = false, l2.cachemanager.monitorOldGenOnly = true, l2.cachemanager.percentageToEvict = 10, l2.cachemanager.sleepInterval = 3000, l2.cachemanager.threshold = 70, l2.healthcheck.l1.ping.enabled = true, l2.healthcheck.l1.ping.idletime = 5000, l2.healthcheck.l1.ping.interval = 1000, l2.healthcheck.l1.ping.probes = 3, l2.healthcheck.l1.socketConnect = true, l2.healthcheck.l1.socketConnectCount = 10, l2.healthcheck.l1.socketConnectTimeout = 5, l2.healthcheck.l2.ping.enabled = true, l2.healthcheck.l2.ping.idletime = 5000, l2.healthcheck.l2.ping.interval = 1000, l2.healthcheck.l2.ping.probes = 3, l2.healthcheck.l2.socketConnect = true, l2.healthcheck.l2.socketConnectCount = 10, l2.healthcheck.l2.socketConnectTimeout = 5, l2.l1reconnect.enabled = false, l2.l1reconnect.maxDelayedAcks = 16, l2.l1reconnect.sendWindow = 32, l2.l1reconnect.sendqueue.cap = 5000, l2.l1reconnect.timeout.millis = 5000, l2.lfu.agingFactor = 1, l2.lfu.debug.enabled = false, l2.lfu.recentlyAccessedIgnorePercentage = 20, l2.lockmanager.greedy.lease.enabled = true, l2.lockmanager.greedy.lease.leaseTimeInMillis = 50, l2.nha.autoRestart = true, l2.nha.dirtydb.autoDelete = true, l2.nha.dirtydb.rolling = 0, l2.nha.send.timeout.millis = 16000, l2.nha.tcgroupcomm.discovery.interval = 1000, l2.nha.tcgroupcomm.handshake.timeout = 5000, l2.nha.tcgroupcomm.reconnect.enabled = false, l2.nha.tcgroupcomm.reconnect.maxDelayedAcks = 16, l2.nha.tcgroupcomm.reconnect.sendWindow = 32, l2.nha.tcgroupcomm.reconnect.sendqueue.cap = 5000, l2.nha.tcgroupcomm.reconnect.timeout = 5000, l2.objectmanager.cachePolicy = lfu, l2.objectmanager.deleteBatchSize = 5000, l2.objectmanager.dgc.throttle.requestsPerThrottle = 1000, l2.objectmanager.dgc.throttle.timeInMillis = 0, l2.objectmanager.dgc.young.enabled = false, l2.objectmanager.dgc.young.frequencyInMillis = 180000, l2.objectmanager.fault.logging.enabled = false, l2.objectmanager.flush.logging.enabled = false, l2.objectmanager.loadObjectID.checkpoint.maxlimit = -1, l2.objectmanager.loadObjectID.checkpoint.maxsleep = 10000, l2.objectmanager.loadObjectID.fastLoad = true, l2.objectmanager.loadObjectID.longsPerDiskEntry = 8, l2.objectmanager.loadObjectID.mapsdatabase.longsPerDiskEntry = 1, l2.objectmanager.maxObjectsInTxnObjGrouping = 5000, l2.objectmanager.maxObjectsToCommit = 5000, l2.objectmanager.maxTxnsInTxnObjectGrouping = 500, l2.objectmanager.objectrequest.logging.enabled = false, l2.objectmanager.objectrequest.split.size = 5, l2.objectmanager.passive.sync.batch.size = 500, l2.objectmanager.passive.sync.throttle.timeInMillis = 0, l2.objectmanager.persistor.logging.enabled = false, l2.objectmanager.request.logging.enabled = false, l2.remotejmx.idletime = 5, l2.remotejmx.maxthreads = 50, l2.seda.commitstage.threads = 4, l2.seda.faultstage.threads = 4, l2.seda.flushstage.threads = 4, l2.seda.gcdeletestage.threads = 1, l2.seda.stage.sink.capacity = -1, l2.serverarray.2pc.enabled = true, l2.startuplock.retries.enabled = false, l2.transactionmanager.logging.enabled = false, l2.transactionmanager.logging.printBroadcastStats = false, l2.transactionmanager.logging.printCommits = false, l2.transactionmanager.logging.printStats = true, l2.transactionmanager.logging.verbose = false, l2.transactionmanager.passive.throttle.enabled = true, l2.transactionmanager.passive.throttle.maxSleepSeconds = 5, l2.transactionmanager.passive.throttle.threshold = 20000, lock.statistics.enabled = false, logging.longgc.threshold = 8000, logging.maxBackups = 20, logging.maxLogFileSize = 512, memory.monitor.forcebasic = false, net.core.keepalive = false, net.core.tcpnodelay = true, session.debug.hops = false, session.debug.hops.interval = 100, session.debug.invalidate = false, session.debug.sessions = false, session.invalidator.bench.enabled = true, session.invalidator.sleep = 300, session.request.bench.enabled = false, session.request.tracking = false, session.request.tracking.dump = false, session.request.tracking.interval = 2500, session.request.tracking.threshold = 15000, session.vhosts.excluded = , stats.printer.intervalInMillis = 5000, tc.bytebuffer.common.pool.maxcount = 3000, tc.bytebuffer.pooling.enabled = true, tc.bytebuffer.threadlocal.pool.maxcount = 2000, tc.management.mbeans.enabled = true, tc.management.test.mbeans.enabled = false, tc.stage.monitor.delay = 5000, tc.stage.monitor.enabled = false, tcm.monitor.delay = 5, tcm.monitor.enabled = false }
2009-07-28 09:06:15,796 [main] INFO com.terracottatech.console - Log file: 'D:\terracotta-3.0.1\bin\logs\server-logs\terracotta-server.log'.
2009-07-28 09:06:15,796 [main] INFO com.tc.logging.TCLogging - All Java System Properties for this Terracotta instance:
========================================================================
awt.toolkit : sun.awt.windows.WToolkit
com.sun.management.jmxremote :
file.encoding : GBK
file.encoding.pkg : sun.io
file.separator : \
java.awt.graphicsenv : sun.awt.Win32GraphicsEnvironment
java.awt.printerjob : sun.awt.windows.WPrinterJob
java.class.path : D:\terracotta-3.0.1\bin\..\lib\tc.jar
java.class.version : 50.0
java.endorsed.dirs : D:\jdk1.6.0_12\jre\lib\endorsed
java.ext.dirs : D:\jdk1.6.0_12\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
java.home : D:\jdk1.6.0_12\jre
java.io.tmpdir : C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\
java.library.path : D:\jdk1.6.0_12\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\Program Files\MySQL\MySQL Server 5.0\bin
java.rmi.server.randomIDs : true
java.runtime.name : Java(TM) SE Runtime Environment
java.runtime.version : 1.6.0_12-b04
java.specification.name : Java Platform API Specification
java.specification.vendor : Sun Microsystems Inc.
java.specification.version : 1.6
java.vendor : Sun Microsystems Inc.
java.vendor.url : http://java.sun.com/
java.vendor.url.bug : http://java.sun.com/cgi-bin/bugreport.cgi
java.version : 1.6.0_12
java.vm.info : mixed mode
java.vm.name : Java HotSpot(TM) Server VM
java.vm.specification.name : Java Virtual Machine Specification
java.vm.specification.vendor : Sun Microsystems Inc.
java.vm.specification.version: 1.0
java.vm.vendor : Sun Microsystems Inc.
java.vm.version : 11.2-b01
line.separator :

os.arch : x86
os.name : Windows 2003
os.version : 5.2
path.separator : ;
sun.arch.data.model : 32
sun.boot.class.path : D:\jdk1.6.0_12\jre\lib\resources.jar;D:\jdk1.6.0_12\jre\lib\rt.jar;D:\jdk1.6.0_12\jre\lib\sunrsasign.jar;D:\jdk1.6.0_12\jre\lib\jsse.jar;D:\jdk1.6.0_12\jre\lib\jce.jar;D:\jdk1.6.0_12\jre\lib\charsets.jar;D:\jdk1.6.0_12\jre\classes
sun.boot.library.path : D:\jdk1.6.0_12\jre\bin
sun.cpu.endian : little
sun.cpu.isalist : pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
sun.desktop : windows
sun.io.unicode.encoding : UnicodeLittle
sun.java.launcher : SUN_STANDARD
sun.jnu.encoding : GBK
sun.management.compiler : HotSpot Tiered Compilers
sun.os.patch.level : Service Pack 2
tc.install-root : D:\terracotta-3.0.1\bin\..
user.country : CN
user.dir : D:\terracotta-3.0.1\bin
user.home : C:\Documents and Settings\Administrator
user.language : zh
user.name : Administrator
user.timezone : Asia/Shanghai
user.variant :
========================================================================
2009-07-28 09:06:19,859 [main] INFO com.terracottatech.dso - Statistics store: 'D:\terracotta-3.0.1\bin\statistics'.
2009-07-28 09:06:19,875 [main] INFO com.terracottatech.console - Available Max Runtime Memory: 504MB
2009-07-28 09:06:20,500 [main] INFO com.terracottatech.dso - Standard DSO Server created
2009-07-28 09:06:20,500 [main] INFO com.terracottatech.dso - Creating server nodeID: NodeID[192.168.0.26:9510]
2009-07-28 09:06:20,562 [Statistics Logger] INFO com.terracottatech.dso - memory free : 496857544
2009-07-28 09:06:20,562 [Statistics Logger] INFO com.terracottatech.dso - memory used : 32607800
2009-07-28 09:06:20,562 [Statistics Logger] INFO com.terracottatech.dso - memory max : 529465344
2009-07-28 09:06:22,640 [main] INFO com.terracottatech.dso - Statistics buffer: 'D:\terracotta-3.0.1\bin\statistics'.
2009-07-28 09:06:22,812 [main] INFO com.terracottatech.console - JMX Server started. Available at URL[service:jmx:jmxmp://0.0.0.0:9520]
2009-07-28 09:06:22,937 [main] INFO com.tc.objectserver.persistence.sleepycat.DBEnvironment - Env config = allowCreate=true
cacheSize=0
txnNoSync=true
txnWriteNoSync=false
{je.cleaner.minAge=5, je.cleaner.bytesInterval=20000000, je.env.isTransactional=true, je.cleaner.lookAheadCacheSize=32768, je.env.isReadOnly=false, je.maxMemoryPercent=25, je.lock.nLockTables=7, je.checkpointer.bytesInterval=100000000, je.cleaner.detailMaxMemoryPercentage=5, je.lock.timeout=180000000}
DB Config = allowCreate=true
exclusiveCreate=false
transactional=true
readOnly=false
duplicatesAllowed=false
deferredWrite=false
temporary=false
keyPrefixingEnabled=false
JE Properties = {je.cleaner.detailMaxMemoryPercentage=5, je.cleaner.bytesInterval=20000000, je.maxMemoryPercent=25, je.checkpointer.bytesInterval=100000000, je.cleaner.lookAheadCacheSize=32768, je.lock.nLockTables=7, je.cleaner.minAge=5, je.lock.timeout=180000000}
2009-07-28 09:06:23,250 [main] INFO com.terracottatech.dso - Database version [2.2]
2009-07-28 09:06:23,468 [main] INFO com.tc.net.core.TCWorkerCommManager - Creating 4 worker comm threads.
2009-07-28 09:06:23,531 [main] INFO com.tc.net.protocol.transport.ConnectionHealthCheckerImpl: DSO Server - HealthChecker Started
2009-07-28 09:06:23,531 [main] INFO com.tc.net.protocol.tcm.CommunicationsManager - HealtCheck CallbackPort Listener not requested
2009-07-28 09:06:23,593 [main] INFO com.tc.runtime.TCMemoryManagerImpl - GarbageCollector: PS Scavenge
2009-07-28 09:06:23,593 [main] INFO com.tc.runtime.TCMemoryManagerImpl - GarbageCollector: PS MarkSweep
2009-07-28 09:06:24,281 [main] INFO com.tc.objectserver.dgc.impl.GarbageCollectorThread - Young Gen Time = -1 Full Gen Time = 3600000
2009-07-28 09:06:24,421 [main] INFO com.tc.statistics.StatisticRetrievalAction - "message monitor" statistic is not enabled. Please enable the property "tcm.monitor.delay" to collect this statistics.
2009-07-28 09:06:24,421 [main] INFO com.tc.statistics.retrieval.actions.SRAL2FaultsFromDisk - "l2 faults from disk" statistic is not enabled. Please enable the property "l2.objectmanager.fault.logging.enabled" to collect this statistic.
2009-07-28 09:06:24,437 [main] INFO com.terracottatech.dso - This L2 Node ID = NodeID[CurrentNode]
2009-07-28 09:06:24,500 [main] INFO com.tc.objectserver.tx.ServerTransactionManager - Waiting for txns to complete
2009-07-28 09:06:24,500 [main] INFO com.tc.objectserver.tx.ServerTransactionManager - No more txns in the system.
2009-07-28 09:06:24,500 [main] INFO com.tc.objectserver.tx.ResentTransactionSequencer - Making callback com.tc.objectserver.gtx.GlobalTransactionIDLowWaterMarkProvider$2@1b67d6a pending since in State[ ADD_RESENT ] resent txns size : 0
2009-07-28 09:06:24,500 [main] INFO com.tc.objectserver.handshakemanager.ServerClientHandshakeManager - Starting DSO services...
2009-07-28 09:06:24,500 [main] INFO com.tc.objectserver.persistence.impl.TransactionStoreImpl - shutdownAllClientsExcept() : Removing txns from DB : 0
2009-07-28 09:06:24,500 [main] INFO com.tc.objectserver.impl.ObjectRequestManagerRestartImpl - Processing Pending Lookups = 0
2009-07-28 09:06:24,500 [main] INFO com.tc.objectserver.tx.ResentTransactionSequencer - Unregistering ResentTransactionSequencer since no more resent Transactions : 0
2009-07-28 09:06:24,500 [main] INFO com.tc.objectserver.tx.ResentTransactionSequencer - Adding Pending resent CallBacks to TxnMgr : com.tc.objectserver.gtx.GlobalTransactionIDLowWaterMarkProvider$2@1b67d6a
2009-07-28 09:06:24,500 [main] INFO com.tc.objectserver.gtx.GlobalTransactionIDLowWaterMarkProvider - Switching GlobalTransactionID Low Water mark provider since all resent transactions are applied
2009-07-28 09:06:24,562 [main] INFO com.terracottatech.console - Terracotta Server instance has started up as ACTIVE node on 0.0.0.0:9510 successfully, and is now ready for work.
2009-07-28 09:06:25,000 [main] INFO com.tc.server.TCServer - Server started as 192.168.0.26:9510
2009-07-28 09:06:25,000 [Update Checker] INFO com.tc.server.UpdateCheckAction - Update Checker: Checking...
2009-07-28 09:06:28,875 [Update Checker] INFO com.tc.server.UpdateCheckAction - Update Checker: No updates found
2009-07-28 09:06:28,875 [Update Checker] INFO com.tc.server.UpdateCheckAction - Update Checker: Next check at Tue Aug 04 09:06:28 CST 2009

////////////////////////////////////////////////////////////////////////////////////
出错后的terracotta-server.log

2009-07-28 09:17:05,156 [main] INFO com.terracottatech.general - New logging session started.
2009-07-28 09:17:05,171 [main] INFO com.terracottatech.console - Terracotta 3.0.1, as of 20090514-130552 (Revision 12704 by cruise@su10mo5 from 3.0)
2009-07-28 09:17:05,203 [main] INFO com.tc.config.schema.setup.StandardXMLFileConfigurationCreator - Attempting to load configuration from the file at 'D:\terracotta-3.0.1\bin\tc-config.xml'...
2009-07-28 09:17:05,203 [main] INFO com.tc.config.schema.setup.StandardXMLFileConfigurationCreator - Successfully loaded configuration from the file at 'D:\terracotta-3.0.1\bin\tc-config.xml'. Config is:


<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-4.xsd">

<servers>

<!-- For more information on working with the Terracotta configuration file, including how to add
more servers, see http://www.terracotta.org/web/display/docs/About+Terracotta+Configuration+Files.

Edit the following server element so that its host attribute contains the value matching the
hostname for the Terracotta server. -->

<server host="192.168.0.26">
<dso-port>9510</dso-port>

<data>data/server-data</data>

<logs>logs/server-logs</logs>
</server>

<update-check>
<enabled>true</enabled>
</update-check>

</servers>

<!-- Check that the TIM shown in the <module> element's name attribute matches the Tomcat version you
are using. The TIM listed here, "tim-tomcat-5.5" is for Tomcat 5.5. For example, if you are using
Tomcat 6.0, edit the name to "tim-tomcat-6.0". -->

<clients>
<modules>
<module name="tim-tomcat-6.0" version="1.1.0" />
</modules>
</clients>

<!-- Using <web-application> elements, enter the context root of the web application being clustered.
If you are clustering more than one web application, use one <web-application> element per application.
Two example <web-application> elements are shown below. Edit or remove these elements as needed.
To set the value of the <web-application> element to the default web-application context, use the
special value "ROOT" (without quotation marks). -->

<application>
<dso>
<additional-boot-jar-classes>
<include>java.util.Locale</include>
</additional-boot-jar-classes>
<transient-fields>
<field-name>org.apache.struts.action.ActionForm.servlet</field-name>
</transient-fields>
<instrumented-classes>
<include>
<class-expression>org.apache.struts.action.ActionForm</class-expression>
</include>
<include>
<class-expression>org.apache.struts.action.ActionForm.servlet</class-expression>
</include>
<include>
<class-expression>com.help.desktop.actions.*</class-expression>
</include>
<include>
<class-expression>com.help.struts.actions.*</class-expression>
</include>
<include>
<class-expression>com.help.struts.forms.*</class-expression>
</include>
<include>
<class-expression>com.help.util.*</class-expression>
</include>
<include>
<class-expression>com.help.entity.*</class-expression>
</include>
</instrumented-classes>

<web-applications>
<web-application>help</web-application>
</web-applications>
</dso>
</application>
</tc:tc-config>

2009-07-28 09:17:05,453 [main] INFO com.terracottatech.console - Configuration loaded from the file at 'D:\terracotta-3.0.1\bin\tc-config.xml'.
2009-07-28 09:17:05,468 [main] INFO com.tc.properties.TCProperties - Loading default properties from tc.properties
2009-07-28 09:17:05,468 [main] INFO com.tc.properties.TCProperties - tc-config doesn't have any tc-property. No tc-property will be overridden
2009-07-28 09:17:05,468 [main] INFO com.tc.properties.TCProperties - Loaded TCProperties : TCProperties = { console.showObjectID = true, cvt.buffer.randomsuffix.enabled = false, cvt.rest.interface.enabled = true, cvt.retriever.notification.interval = 60, cvt.statistics.logging.interval = 900, cvt.store.randomsuffix.enabled = false, ehcache.clusterAllCacheManagers = true, ehcache.concurrency = 128, ehcache.evictor.logging.enabled = false, ehcache.evictor.pool.size = 1, ehcache.global.eviction.enable = true, ehcache.global.eviction.frequency = 10, ehcache.global.eviction.rest.timeMillis = 10, ehcache.global.eviction.segments = 2, ehcache.lock.readLevel = READ, ehcache.lock.writeLevel = WRITE, ehcache.logging.enabled = false, http.defaultservlet.attribute.aliases = false;, http.defaultservlet.attribute.dirallowed = false;, http.defaultservlet.enabled = false;, l1.cachemanager.criticalObjectThreshold = -1, l1.cachemanager.criticalThreshold = 90, l1.cachemanager.enabled = true, l1.cachemanager.leastCount = 2, l1.cachemanager.logging.enabled = false, l1.cachemanager.monitorOldGenOnly = true, l1.cachemanager.percentageToEvict = 10, l1.cachemanager.sleepInterval = 3000, l1.cachemanager.threshold = 70, l1.connect.versionMatchCheck.enabled = true, l1.healthcheck.l2.bindAddress = 0.0.0.0, l1.healthcheck.l2.bindPort = 0, l1.healthcheck.l2.ping.enabled = true, l1.healthcheck.l2.ping.idletime = 5000, l1.healthcheck.l2.ping.interval = 1000, l1.healthcheck.l2.ping.probes = 3, l1.healthcheck.l2.socketConnect = true, l1.healthcheck.l2.socketConnectCount = 13, l1.healthcheck.l2.socketConnectTimeout = 5, l1.jvm.check.compatibility = true, l1.l2.config.validation.enabled = true, l1.lock.statistics.gatherInterval = 1, l1.lock.statistics.traceDepth = 0, l1.lockmanager.striped.count = 16, l1.lockmanager.timeout.interval = 60000, l1.max.connect.retries = -1, l1.modules.additional = , l1.modules.default = org.terracotta.modules.excludes-config;bundle-version:=3.0.1,org.terracotta.modules.guimodels-config;bundle-version:=3.0.1,org.terracotta.modules.jdk15-preinst-config;bundle-version:=3.0.1,org.terracotta.modules.spring-config;bundle-version:=3.0.1,org.terracotta.modules.standard-config;bundle-version:=3.0.1, l1.modules.repositories = , l1.modules.tc-version-check = , l1.objectmanager.fault.logging.enabled = false, l1.objectmanager.flush.logging.enabled = false, l1.objectmanager.objectid.request.size = 50000, l1.objectmanager.remote.logging.enabled = false, l1.objectmanager.remote.maxDNALRUSize = 60, l1.seda.stage.sink.capacity = -1, l1.serverarray.objectCreationStrategy = round-robin, l1.serverarray.objectCreationStrategy.groupAffinity.groupName = mirror-group1, l1.serverarray.objectCreationStrategy.roundRobin.coordinatorLoad = 100, l1.serverarray.objectCreationStrategy.roundRobin.startIndex = sequential, l1.socket.connect.timeout = 10000, l1.socket.reconnect.waitInterval = 1000, l1.transactionmanager.completedAckFlushTimeout = 5000, l1.transactionmanager.folding.debug = false, l1.transactionmanager.folding.enabled = true, l1.transactionmanager.folding.lock.limit = 0, l1.transactionmanager.folding.object.limit = 0, l1.transactionmanager.logging.enabled = false, l1.transactionmanager.maxBatchSizeInKiloBytes = 128, l1.transactionmanager.maxOutstandingBatchSize = 4, l1.transactionmanager.maxPendingBatches = 88, l1.transactionmanager.maxSleepTimeBeforeHalt = 1024, l1.transactionmanager.strings.compress.enabled = true, l1.transactionmanager.strings.compress.logging.enabled = false, l1.transactionmanager.strings.compress.minSize = 512, l1.transactionmanager.timeoutForAckOnExit = 300, l2.beanshell.enabled = false, l2.beanshell.port = 9929, l2.berkeleydb.je.checkpointer.bytesInterval = 100000000, l2.berkeleydb.je.cleaner.bytesInterval = 20000000, l2.berkeleydb.je.cleaner.detailMaxMemoryPercentage = 5, l2.berkeleydb.je.cleaner.lookAheadCacheSize = 32768, l2.berkeleydb.je.cleaner.minAge = 5, l2.berkeleydb.je.lock.nLockTables = 7, l2.berkeleydb.je.lock.timeout = 180000000, l2.berkeleydb.je.maxMemoryPercent = 25, l2.cachemanager.criticalObjectThreshold = -1, l2.cachemanager.criticalThreshold = 90, l2.cachemanager.enabled = true, l2.cachemanager.leastCount = 2, l2.cachemanager.logging.enabled = false, l2.cachemanager.monitorOldGenOnly = true, l2.cachemanager.percentageToEvict = 10, l2.cachemanager.sleepInterval = 3000, l2.cachemanager.threshold = 70, l2.healthcheck.l1.ping.enabled = true, l2.healthcheck.l1.ping.idletime = 5000, l2.healthcheck.l1.ping.interval = 1000, l2.healthcheck.l1.ping.probes = 3, l2.healthcheck.l1.socketConnect = true, l2.healthcheck.l1.socketConnectCount = 10, l2.healthcheck.l1.socketConnectTimeout = 5, l2.healthcheck.l2.ping.enabled = true, l2.healthcheck.l2.ping.idletime = 5000, l2.healthcheck.l2.ping.interval = 1000, l2.healthcheck.l2.ping.probes = 3, l2.healthcheck.l2.socketConnect = true, l2.healthcheck.l2.socketConnectCount = 10, l2.healthcheck.l2.socketConnectTimeout = 5, l2.l1reconnect.enabled = false, l2.l1reconnect.maxDelayedAcks = 16, l2.l1reconnect.sendWindow = 32, l2.l1reconnect.sendqueue.cap = 5000, l2.l1reconnect.timeout.millis = 5000, l2.lfu.agingFactor = 1, l2.lfu.debug.enabled = false, l2.lfu.recentlyAccessedIgnorePercentage = 20, l2.lockmanager.greedy.lease.enabled = true, l2.lockmanager.greedy.lease.leaseTimeInMillis = 50, l2.nha.autoRestart = true, l2.nha.dirtydb.autoDelete = true, l2.nha.dirtydb.rolling = 0, l2.nha.send.timeout.millis = 16000, l2.nha.tcgroupcomm.discovery.interval = 1000, l2.nha.tcgroupcomm.handshake.timeout = 5000, l2.nha.tcgroupcomm.reconnect.enabled = false, l2.nha.tcgroupcomm.reconnect.maxDelayedAcks = 16, l2.nha.tcgroupcomm.reconnect.sendWindow = 32, l2.nha.tcgroupcomm.reconnect.sendqueue.cap = 5000, l2.nha.tcgroupcomm.reconnect.timeout = 5000, l2.objectmanager.cachePolicy = lfu, l2.objectmanager.deleteBatchSize = 5000, l2.objectmanager.dgc.throttle.requestsPerThrottle = 1000, l2.objectmanager.dgc.throttle.timeInMillis = 0, l2.objectmanager.dgc.young.enabled = false, l2.objectmanager.dgc.young.frequencyInMillis = 180000, l2.objectmanager.fault.logging.enabled = false, l2.objectmanager.flush.logging.enabled = false, l2.objectmanager.loadObjectID.checkpoint.maxlimit = -1, l2.objectmanager.loadObjectID.checkpoint.maxsleep = 10000, l2.objectmanager.loadObjectID.fastLoad = true, l2.objectmanager.loadObjectID.longsPerDiskEntry = 8, l2.objectmanager.loadObjectID.mapsdatabase.longsPerDiskEntry = 1, l2.objectmanager.maxObjectsInTxnObjGrouping = 5000, l2.objectmanager.maxObjectsToCommit = 5000, l2.objectmanager.maxTxnsInTxnObjectGrouping = 500, l2.objectmanager.objectrequest.logging.enabled = false, l2.objectmanager.objectrequest.split.size = 5, l2.objectmanager.passive.sync.batch.size = 500, l2.objectmanager.passive.sync.throttle.timeInMillis = 0, l2.objectmanager.persistor.logging.enabled = false, l2.objectmanager.request.logging.enabled = false, l2.remotejmx.idletime = 5, l2.remotejmx.maxthreads = 50, l2.seda.commitstage.threads = 4, l2.seda.faultstage.threads = 4, l2.seda.flushstage.threads = 4, l2.seda.gcdeletestage.threads = 1, l2.seda.stage.sink.capacity = -1, l2.serverarray.2pc.enabled = true, l2.startuplock.retries.enabled = false, l2.transactionmanager.logging.enabled = false, l2.transactionmanager.logging.printBroadcastStats = false, l2.transactionmanager.logging.printCommits = false, l2.transactionmanager.logging.printStats = true, l2.transactionmanager.logging.verbose = false, l2.transactionmanager.passive.throttle.enabled = true, l2.transactionmanager.passive.throttle.maxSleepSeconds = 5, l2.transactionmanager.passive.throttle.threshold = 20000, lock.statistics.enabled = false, logging.longgc.threshold = 8000, logging.maxBackups = 20, logging.maxLogFileSize = 512, memory.monitor.forcebasic = false, net.core.keepalive = false, net.core.tcpnodelay = true, session.debug.hops = false, session.debug.hops.interval = 100, session.debug.invalidate = false, session.debug.sessions = false, session.invalidator.bench.enabled = true, session.invalidator.sleep = 300, session.request.bench.enabled = false, session.request.tracking = false, session.request.tracking.dump = false, session.request.tracking.interval = 2500, session.request.tracking.threshold = 15000, session.vhosts.excluded = , stats.printer.intervalInMillis = 5000, tc.bytebuffer.common.pool.maxcount = 3000, tc.bytebuffer.pooling.enabled = true, tc.bytebuffer.threadlocal.pool.maxcount = 2000, tc.management.mbeans.enabled = true, tc.management.test.mbeans.enabled = false, tc.stage.monitor.delay = 5000, tc.stage.monitor.enabled = false, tcm.monitor.delay = 5, tcm.monitor.enabled = false }
2009-07-28 09:17:05,562 [main] INFO com.terracottatech.console - Log file: 'D:\terracotta-3.0.1\bin\logs\server-logs\terracotta-server.log'.
2009-07-28 09:17:05,578 [main] INFO com.tc.logging.TCLogging - All Java System Properties for this Terracotta instance:
========================================================================
awt.toolkit : sun.awt.windows.WToolkit
com.sun.management.jmxremote :
file.encoding : GBK
file.encoding.pkg : sun.io
file.separator : \
java.awt.graphicsenv : sun.awt.Win32GraphicsEnvironment
java.awt.printerjob : sun.awt.windows.WPrinterJob
java.class.path : D:\terracotta-3.0.1\bin\..\lib\tc.jar
java.class.version : 50.0
java.endorsed.dirs : D:\jdk1.6.0_12\jre\lib\endorsed
java.ext.dirs : D:\jdk1.6.0_12\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
java.home : D:\jdk1.6.0_12\jre
java.io.tmpdir : C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\
java.library.path : D:\jdk1.6.0_12\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\Program Files\MySQL\MySQL Server 5.0\bin
java.rmi.server.randomIDs : true
java.runtime.name : Java(TM) SE Runtime Environment
java.runtime.version : 1.6.0_12-b04
java.specification.name : Java Platform API Specification
java.specification.vendor : Sun Microsystems Inc.
java.specification.version : 1.6
java.vendor : Sun Microsystems Inc.
java.vendor.url : http://java.sun.com/
java.vendor.url.bug : http://java.sun.com/cgi-bin/bugreport.cgi
java.version : 1.6.0_12
java.vm.info : mixed mode
java.vm.name : Java HotSpot(TM) Server VM
java.vm.specification.name : Java Virtual Machine Specification
java.vm.specification.vendor : Sun Microsystems Inc.
java.vm.specification.version: 1.0
java.vm.vendor : Sun Microsystems Inc.
java.vm.version : 11.2-b01
line.separator :

os.arch : x86
os.name : Windows 2003
os.version : 5.2
path.separator : ;
sun.arch.data.model : 32
sun.boot.class.path : D:\jdk1.6.0_12\jre\lib\resources.jar;D:\jdk1.6.0_12\jre\lib\rt.jar;D:\jdk1.6.0_12\jre\lib\sunrsasign.jar;D:\jdk1.6.0_12\jre\lib\jsse.jar;D:\jdk1.6.0_12\jre\lib\jce.jar;D:\jdk1.6.0_12\jre\lib\charsets.jar;D:\jdk1.6.0_12\jre\classes
sun.boot.library.path : D:\jdk1.6.0_12\jre\bin
sun.cpu.endian : little
sun.cpu.isalist : pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
sun.desktop : windows
sun.io.unicode.encoding : UnicodeLittle
sun.java.launcher : SUN_STANDARD
sun.jnu.encoding : GBK
sun.management.compiler : HotSpot Tiered Compilers
sun.os.patch.level : Service Pack 2
tc.install-root : D:\terracotta-3.0.1\bin\..
user.country : CN
user.dir : D:\terracotta-3.0.1\bin
user.home : C:\Documents and Settings\Administrator
user.language : zh
user.name : Administrator
user.timezone : Asia/Shanghai
user.variant :
========================================================================
2009-07-28 09:17:08,031 [main] INFO com.terracottatech.dso - Statistics store: 'D:\terracotta-3.0.1\bin\statistics'.
2009-07-28 09:17:08,046 [main] INFO com.terracottatech.console - Available Max Runtime Memory: 504MB
2009-07-28 09:17:08,171 [main] INFO com.terracottatech.dso - Standard DSO Server created
2009-07-28 09:17:08,171 [main] INFO com.terracottatech.dso - Creating server nodeID: NodeID[192.168.0.26:9510]
2009-07-28 09:17:08,203 [Statistics Logger] INFO com.terracottatech.dso - memory free : 495951448
2009-07-28 09:17:08,203 [Statistics Logger] INFO com.terracottatech.dso - memory used : 33513896
2009-07-28 09:17:08,203 [Statistics Logger] INFO com.terracottatech.dso - memory max : 529465344
2009-07-28 09:17:10,250 [main] INFO com.terracottatech.dso - Statistics buffer: 'D:\terracotta-3.0.1\bin\statistics'.
2009-07-28 09:17:10,296 [main] INFO com.terracottatech.console - JMX Server started. Available at URL[service:jmx:jmxmp://0.0.0.0:9520]
2009-07-28 09:17:10,328 [main] INFO com.tc.objectserver.persistence.sleepycat.DBEnvironment - Env config = allowCreate=true
cacheSize=0
txnNoSync=true
txnWriteNoSync=false
{je.cleaner.minAge=5, je.cleaner.bytesInterval=20000000, je.env.isTransactional=true, je.cleaner.lookAheadCacheSize=32768, je.env.isReadOnly=false, je.maxMemoryPercent=25, je.lock.nLockTables=7, je.checkpointer.bytesInterval=100000000, je.cleaner.detailMaxMemoryPercentage=5, je.lock.timeout=180000000}
DB Config = allowCreate=true
exclusiveCreate=false
transactional=true
readOnly=false
duplicatesAllowed=false
deferredWrite=false
temporary=false
keyPrefixingEnabled=false
JE Properties = {je.cleaner.detailMaxMemoryPercentage=5, je.cleaner.bytesInterval=20000000, je.maxMemoryPercent=25, je.checkpointer.bytesInterval=100000000, je.cleaner.lookAheadCacheSize=32768, je.lock.nLockTables=7, je.cleaner.minAge=5, je.lock.timeout=180000000}
2009-07-28 09:17:10,515 [main] INFO com.terracottatech.dso - Database version [2.2]
2009-07-28 09:17:10,578 [main] INFO com.tc.net.core.TCWorkerCommManager - Creating 4 worker comm threads.
2009-07-28 09:17:10,593 [main] INFO com.tc.net.protocol.transport.ConnectionHealthCheckerImpl: DSO Server - HealthChecker Started
2009-07-28 09:17:10,593 [main] INFO com.tc.net.protocol.tcm.CommunicationsManager - HealtCheck CallbackPort Listener not requested
2009-07-28 09:17:10,609 [main] INFO com.tc.runtime.TCMemoryManagerImpl - GarbageCollector: PS Scavenge
2009-07-28 09:17:10,609 [main] INFO com.tc.runtime.TCMemoryManagerImpl - GarbageCollector: PS MarkSweep
2009-07-28 09:17:10,687 [main] INFO com.tc.objectserver.dgc.impl.GarbageCollectorThread - Young Gen Time = -1 Full Gen Time = 3600000
2009-07-28 09:17:10,703 [main] INFO com.tc.statistics.StatisticRetrievalAction - "message monitor" statistic is not enabled. Please enable the property "tcm.monitor.delay" to collect this statistics.
2009-07-28 09:17:10,703 [main] INFO com.tc.statistics.retrieval.actions.SRAL2FaultsFromDisk - "l2 faults from disk" statistic is not enabled. Please enable the property "l2.objectmanager.fault.logging.enabled" to collect this statistic.
2009-07-28 09:17:10,718 [main] INFO com.terracottatech.dso - This L2 Node ID = NodeID[CurrentNode]
2009-07-28 09:17:10,718 [main] INFO com.tc.objectserver.tx.ServerTransactionManager - Waiting for txns to complete
2009-07-28 09:17:10,718 [main] INFO com.tc.objectserver.tx.ServerTransactionManager - No more txns in the system.
2009-07-28 09:17:10,718 [main] INFO com.tc.objectserver.tx.ResentTransactionSequencer - Making callback com.tc.objectserver.gtx.GlobalTransactionIDLowWaterMarkProvider$2@9ab0 pending since in State[ ADD_RESENT ] resent txns size : 0
2009-07-28 09:17:10,718 [main] INFO com.tc.objectserver.handshakemanager.ServerClientHandshakeManager - Starting DSO services...
2009-07-28 09:17:10,718 [main] INFO com.tc.objectserver.persistence.impl.TransactionStoreImpl - shutdownAllClientsExcept() : Removing txns from DB : 0
2009-07-28 09:17:10,718 [main] INFO com.tc.objectserver.impl.ObjectRequestManagerRestartImpl - Processing Pending Lookups = 0
2009-07-28 09:17:10,718 [main] INFO com.tc.objectserver.tx.ResentTransactionSequencer - Unregistering ResentTransactionSequencer since no more resent Transactions : 0
2009-07-28 09:17:10,718 [main] INFO com.tc.objectserver.tx.ResentTransactionSequencer - Adding Pending resent CallBacks to TxnMgr : com.tc.objectserver.gtx.GlobalTransactionIDLowWaterMarkProvider$2@9ab0
2009-07-28 09:17:10,718 [main] INFO com.tc.objectserver.gtx.GlobalTransactionIDLowWaterMarkProvider - Switching GlobalTransactionID Low Water mark provider since all resent transactions are applied
2009-07-28 09:17:10,718 [main] INFO com.terracottatech.console - Terracotta Server instance has started up as ACTIVE node on 0.0.0.0:9510 successfully, and is now ready for work.
2009-07-28 09:17:10,750 [main] INFO com.tc.server.TCServer - Server started as 192.168.0.26:9510
2009-07-28 09:17:10,750 [Update Checker] INFO com.tc.server.UpdateCheckAction - Update Checker: Checking...
2009-07-28 09:17:12,171 [Update Checker] INFO com.tc.server.UpdateCheckAction - Update Checker: No updates found
2009-07-28 09:17:12,171 [Update Checker] INFO com.tc.server.UpdateCheckAction - Update Checker: Next check at Tue Aug 04 09:17:12 CST 2009
2009-07-28 09:18:50,609 [TCWorkerComm # 1] INFO com.tc.net.protocol.transport.ServerMessageTransport - ConnectionID(0.c26749fb9dea4ea2aedf1bae5fcc88c9): Attaching new connection: com.tc.net.core.TCConnectionJDK14@24869286: connected: true, closed: false local=192.168.0.26:9510 remote=192.168.0.26:1970 connect=[Tue Jul 28 09:18:50 CST 2009] idle=0ms [28 read, 0 write]
2009-07-28 09:18:50,625 [TCWorkerComm # 1] INFO com.tc.net.protocol.transport.ConnectionHealthCheckerImpl. DSO Server - Health monitoring agent started for x3650:1970
2009-07-28 09:18:50,625 [TCComm Main Selector Thread (listen 0.0.0.0:9510)] INFO com.tc.net.protocol.transport.ConnectionHealthCheckerImpl. DSO Server - HealthCheckCallbackPort verification PASSED for x3650:1970(callbackport: 1969)
2009-07-28 09:18:50,640 [WorkerThread(jmxremote_tunnel_stage,0)] INFO com.tc.management.remote.protocol.terracotta.ClientTunnelingEventHandler - L1[ChannelID=[0]] notified us that their JMX server is now available
2009-07-28 09:18:50,640 [WorkerThread(client_handshake_stage,0)] INFO com.tc.objectserver.handshakemanager.ServerClientHandshakeManager - Client connected ClientID[0]
2009-07-28 09:18:55,171 [TCWorkerComm # 0] INFO com.tc.net.protocol.transport.ServerMessageTransport - ConnectionID(1.c26749fb9dea4ea2aedf1bae5fcc88c9): Attaching new connection: com.tc.net.core.TCConnectionJDK14@33114655: connected: true, closed: false local=192.168.0.26:9510 remote=192.168.0.26:1984 connect=[Tue Jul 28 09:18:55 CST 2009] idle=0ms [28 read, 0 write]
2009-07-28 09:18:55,171 [TCWorkerComm # 0] INFO com.tc.net.protocol.transport.ConnectionHealthCheckerImpl. DSO Server - Health monitoring agent started for x3650:1984
2009-07-28 09:18:55,171 [TCComm Main Selector Thread (listen 0.0.0.0:9510)] INFO com.tc.net.protocol.transport.ConnectionHealthCheckerImpl. DSO Server - HealthCheckCallbackPort verification PASSED for x3650:1984(callbackport: 1983)
2009-07-28 09:18:55,187 [WorkerThread(jmxremote_tunnel_stage,0)] INFO com.tc.management.remote.protocol.terracotta.ClientTunnelingEventHandler - L1[ChannelID=[1]] notified us that their JMX server is now available
2009-07-28 09:18:55,187 [WorkerThread(client_handshake_stage,0)] INFO com.tc.objectserver.handshakemanager.ServerClientHandshakeManager - Client connected ClientID[1]

//////////////////////////////////////////////////////////////////////////////////
出错前的terracotta-client.log



2009-07-28 09:10:14,609 2009-07-28 09:18:48,937 [main] INFO com.terracottatech.general - New logging session started.
2009-07-28 09:18:48,953 [main] INFO com.terracottatech.console - Terracotta 3.0.1, as of 20090514-130552 (Revision 12704 by cruise@su10mo5 from 3.0)
2009-07-28 09:18:48,984 [main] INFO com.tc.config.schema.setup.StandardXMLFileConfigurationCreator - Attempting to load configuration from the file at 'D:\terracotta-3.0.1\bin\tc-config.xml'...
2009-07-28 09:18:48,984 [main] INFO com.tc.config.schema.setup.StandardXMLFileConfigurationCreator - Successfully loaded configuration from the file at 'D:\terracotta-3.0.1\bin\tc-config.xml'. Config is:


<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-4.xsd">

<servers>

<!-- For more information on working with the Terracotta configuration file, including how to add
more servers, see http://www.terracotta.org/web/display/docs/About+Terracotta+Configuration+Files.

Edit the following server element so that its host attribute contains the value matching the
hostname for the Terracotta server. -->

<server host="192.168.0.26">
<dso-port>9510</dso-port>

<data>data/server-data</data>

<logs>logs/server-logs</logs>
</server>

<update-check>
<enabled>true</enabled>
</update-check>

</servers>

<!-- Check that the TIM shown in the <module> element's name attribute matches the Tomcat version you
are using. The TIM listed here, "tim-tomcat-5.5" is for Tomcat 5.5. For example, if you are using
Tomcat 6.0, edit the name to "tim-tomcat-6.0". -->

<clients>
<modules>
<module name="tim-tomcat-6.0" version="1.1.0" />
</modules>
</clients>

<!-- Using <web-application> elements, enter the context root of the web application being clustered.
If you are clustering more than one web application, use one <web-application> element per application.
Two example <web-application> elements are shown below. Edit or remove these elements as needed.
To set the value of the <web-application> element to the default web-application context, use the
special value "ROOT" (without quotation marks). -->

<application>
<dso>
<additional-boot-jar-classes>
<include>java.util.Locale</include>
</additional-boot-jar-classes>
<transient-fields>
<field-name>org.apache.struts.action.ActionForm.servlet</field-name>
</transient-fields>
<instrumented-classes>
<include>
<class-expression>org.apache.struts.action.ActionForm</class-expression>
</include>
<include>
<class-expression>org.apache.struts.action.ActionForm.servlet</class-expression>
</include>
<include>
<class-expression>com.help.desktop.actions.*</class-expression>
</include>
<include>
<class-expression>com.help.struts.actions.*</class-expression>
</include>
<include>
<class-expression>com.help.struts.forms.*</class-expression>
</include>
<include>
<class-expression>com.help.util.*</class-expression>
</include>
<include>
<class-expression>com.help.entity.*</class-expression>
</include>
</instrumented-classes>

<web-applications>
<web-application>help</web-application>
</web-applications>
</dso>
</application>
</tc:tc-config>

2009-07-28 09:18:49,203 [main] INFO com.terracottatech.console - Configuration loaded from the file at 'D:\terracotta-3.0.1\bin\tc-config.xml'.
2009-07-28 09:18:49,234 [main] INFO com.tc.properties.TCProperties - Loading default properties from tc.properties
2009-07-28 09:18:49,234 [main] INFO com.tc.properties.TCProperties - tc-config doesn't have any tc-property. No tc-property will be overridden
2009-07-28 09:18:49,250 [main] INFO com.tc.properties.TCProperties - Loaded TCProperties : TCProperties = { console.showObjectID = true, cvt.buffer.randomsuffix.enabled = false, cvt.rest.interface.enabled = true, cvt.retriever.notification.interval = 60, cvt.statistics.logging.interval = 900, cvt.store.randomsuffix.enabled = false, ehcache.clusterAllCacheManagers = true, ehcache.concurrency = 128, ehcache.evictor.logging.enabled = false, ehcache.evictor.pool.size = 1, ehcache.global.eviction.enable = true, ehcache.global.eviction.frequency = 10, ehcache.global.eviction.rest.timeMillis = 10, ehcache.global.eviction.segments = 2, ehcache.lock.readLevel = READ, ehcache.lock.writeLevel = WRITE, ehcache.logging.enabled = false, http.defaultservlet.attribute.aliases = false;, http.defaultservlet.attribute.dirallowed = false;, http.defaultservlet.enabled = false;, l1.cachemanager.criticalObjectThreshold = -1, l1.cachemanager.criticalThreshold = 90, l1.cachemanager.enabled = true, l1.cachemanager.leastCount = 2, l1.cachemanager.logging.enabled = false, l1.cachemanager.monitorOldGenOnly = true, l1.cachemanager.percentageToEvict = 10, l1.cachemanager.sleepInterval = 3000, l1.cachemanager.threshold = 70, l1.connect.versionMatchCheck.enabled = true, l1.healthcheck.l2.bindAddress = 0.0.0.0, l1.healthcheck.l2.bindPort = 0, l1.healthcheck.l2.ping.enabled = true, l1.healthcheck.l2.ping.idletime = 5000, l1.healthcheck.l2.ping.interval = 1000, l1.healthcheck.l2.ping.probes = 3, l1.healthcheck.l2.socketConnect = true, l1.healthcheck.l2.socketConnectCount = 13, l1.healthcheck.l2.socketConnectTimeout = 5, l1.jvm.check.compatibility = true, l1.l2.config.validation.enabled = true, l1.lock.statistics.gatherInterval = 1, l1.lock.statistics.traceDepth = 0, l1.lockmanager.striped.count = 16, l1.lockmanager.timeout.interval = 60000, l1.max.connect.retries = -1, l1.modules.additional = , l1.modules.default = org.terracotta.modules.excludes-config;bundle-version:=3.0.1,org.terracotta.modules.guimodels-config;bundle-version:=3.0.1,org.terracotta.modules.jdk15-preinst-config;bundle-version:=3.0.1,org.terracotta.modules.spring-config;bundle-version:=3.0.1,org.terracotta.modules.standard-config;bundle-version:=3.0.1, l1.modules.repositories = , l1.modules.tc-version-check = , l1.objectmanager.fault.logging.enabled = false, l1.objectmanager.flush.logging.enabled = false, l1.objectmanager.objectid.request.size = 50000, l1.objectmanager.remote.logging.enabled = false, l1.objectmanager.remote.maxDNALRUSize = 60, l1.seda.stage.sink.capacity = -1, l1.serverarray.objectCreationStrategy = round-robin, l1.serverarray.objectCreationStrategy.groupAffinity.groupName = mirror-group1, l1.serverarray.objectCreationStrategy.roundRobin.coordinatorLoad = 100, l1.serverarray.objectCreationStrategy.roundRobin.startIndex = sequential, l1.socket.connect.timeout = 10000, l1.socket.reconnect.waitInterval = 1000, l1.transactionmanager.completedAckFlushTimeout = 5000, l1.transactionmanager.folding.debug = false, l1.transactionmanager.folding.enabled = true, l1.transactionmanager.folding.lock.limit = 0, l1.transactionmanager.folding.object.limit = 0, l1.transactionmanager.logging.enabled = false, l1.transactionmanager.maxBatchSizeInKiloBytes = 128, l1.transactionmanager.maxOutstandingBatchSize = 4, l1.transactionmanager.maxPendingBatches = 88, l1.transactionmanager.maxSleepTimeBeforeHalt = 1024, l1.transactionmanager.strings.compress.enabled = true, l1.transactionmanager.strings.compress.logging.enabled = false, l1.transactionmanager.strings.compress.minSize = 512, l1.transactionmanager.timeoutForAckOnExit = 300, l2.beanshell.enabled = false, l2.beanshell.port = 9929, l2.berkeleydb.je.checkpointer.bytesInterval = 100000000, l2.berkeleydb.je.cleaner.bytesInterval = 20000000, l2.berkeleydb.je.cleaner.detailMaxMemoryPercentage = 5, l2.berkeleydb.je.cleaner.lookAheadCacheSize = 32768, l2.berkeleydb.je.cleaner.minAge = 5, l2.berkeleydb.je.lock.nLockTables = 7, l2.berkeleydb.je.lock.timeout = 180000000, l2.berkeleydb.je.maxMemoryPercent = 25, l2.cachemanager.criticalObjectThreshold = -1, l2.cachemanager.criticalThreshold = 90, l2.cachemanager.enabled = true, l2.cachemanager.leastCount = 2, l2.cachemanager.logging.enabled = false, l2.cachemanager.monitorOldGenOnly = true, l2.cachemanager.percentageToEvict = 10, l2.cachemanager.sleepInterval = 3000, l2.cachemanager.threshold = 70, l2.healthcheck.l1.ping.enabled = true, l2.healthcheck.l1.ping.idletime = 5000, l2.healthcheck.l1.ping.interval = 1000, l2.healthcheck.l1.ping.probes = 3, l2.healthcheck.l1.socketConnect = true, l2.healthcheck.l1.socketConnectCount = 10, l2.healthcheck.l1.socketConnectTimeout = 5, l2.healthcheck.l2.ping.enabled = true, l2.healthcheck.l2.ping.idletime = 5000, l2.healthcheck.l2.ping.interval = 1000, l2.healthcheck.l2.ping.probes = 3, l2.healthcheck.l2.socketConnect = true, l2.healthcheck.l2.socketConnectCount = 10, l2.healthcheck.l2.socketConnectTimeout = 5, l2.l1reconnect.enabled = false, l2.l1reconnect.maxDelayedAcks = 16, l2.l1reconnect.sendWindow = 32, l2.l1reconnect.sendqueue.cap = 5000, l2.l1reconnect.timeout.millis = 5000, l2.lfu.agingFactor = 1, l2.lfu.debug.enabled = false, l2.lfu.recentlyAccessedIgnorePercentage = 20, l2.lockmanager.greedy.lease.enabled = true, l2.lockmanager.greedy.lease.leaseTimeInMillis = 50, l2.nha.autoRestart = true, l2.nha.dirtydb.autoDelete = true, l2.nha.dirtydb.rolling = 0, l2.nha.send.timeout.millis = 16000, l2.nha.tcgroupcomm.discovery.interval = 1000, l2.nha.tcgroupcomm.handshake.timeout = 5000, l2.nha.tcgroupcomm.reconnect.enabled = false, l2.nha.tcgroupcomm.reconnect.maxDelayedAcks = 16, l2.nha.tcgroupcomm.reconnect.sendWindow = 32, l2.nha.tcgroupcomm.reconnect.sendqueue.cap = 5000, l2.nha.tcgroupcomm.reconnect.timeout = 5000, l2.objectmanager.cachePolicy = lfu, l2.objectmanager.deleteBatchSize = 5000, l2.objectmanager.dgc.throttle.requestsPerThrottle = 1000, l2.objectmanager.dgc.throttle.timeInMillis = 0, l2.objectmanager.dgc.young.enabled = false, l2.objectmanager.dgc.young.frequencyInMillis = 180000, l2.objectmanager.fault.logging.enabled = false, l2.objectmanager.flush.logging.enabled = false, l2.objectmanager.loadObjectID.checkpoint.maxlimit = -1, l2.objectmanager.loadObjectID.checkpoint.maxsleep = 10000, l2.objectmanager.loadObjectID.fastLoad = true, l2.objectmanager.loadObjectID.longsPerDiskEntry = 8, l2.objectmanager.loadObjectID.mapsdatabase.longsPerDiskEntry = 1, l2.objectmanager.maxObjectsInTxnObjGrouping = 5000, l2.objectmanager.maxObjectsToCommit = 5000, l2.objectmanager.maxTxnsInTxnObjectGrouping = 500, l2.objectmanager.objectrequest.logging.enabled = false, l2.objectmanager.objectrequest.split.size = 5, l2.objectmanager.passive.sync.batch.size = 500, l2.objectmanager.passive.sync.throttle.timeInMillis = 0, l2.objectmanager.persistor.logging.enabled = false, l2.objectmanager.request.logging.enabled = false, l2.remotejmx.idletime = 5, l2.remotejmx.maxthreads = 50, l2.seda.commitstage.threads = 4, l2.seda.faultstage.threads = 4, l2.seda.flushstage.threads = 4, l2.seda.gcdeletestage.threads = 1, l2.seda.stage.sink.capacity = -1, l2.serverarray.2pc.enabled = true, l2.startuplock.retries.enabled = false, l2.transactionmanager.logging.enabled = false, l2.transactionmanager.logging.printBroadcastStats = false, l2.transactionmanager.logging.printCommits = false, l2.transactionmanager.logging.printStats = true, l2.transactionmanager.logging.verbose = false, l2.transactionmanager.passive.throttle.enabled = true, l2.transactionmanager.passive.throttle.maxSleepSeconds = 5, l2.transactionmanager.passive.throttle.threshold = 20000, lock.statistics.enabled = false, logging.longgc.threshold = 8000, logging.maxBackups = 20, logging.maxLogFileSize = 512, memory.monitor.forcebasic = false, net.core.keepalive = false, net.core.tcpnodelay = true, session.debug.hops = false, session.debug.hops.interval = 100, session.debug.invalidate = false, session.debug.sessions = false, session.invalidator.bench.enabled = true, session.invalidator.sleep = 300, session.request.bench.enabled = false, session.request.tracking = false, session.request.tracking.dump = false, session.request.tracking.interval = 2500, session.request.tracking.threshold = 15000, session.vhosts.excluded = , stats.printer.intervalInMillis = 5000, tc.bytebuffer.common.pool.maxcount = 3000, tc.bytebuffer.pooling.enabled = true, tc.bytebuffer.threadlocal.pool.maxcount = 2000, tc.management.mbeans.enabled = true, tc.management.test.mbeans.enabled = false, tc.stage.monitor.delay = 5000, tc.stage.monitor.enabled = false, tcm.monitor.delay = 5, tcm.monitor.enabled = false }
2009-07-28 09:18:49,312 [main] INFO com.terracottatech.console - Log file: 'D:\Program Files\Apache Software Foundation\apache-tomcat-6.0.20\bin\logs-192.168.0.26\terracotta-client.log'.
2009-07-28 09:18:49,312 [main] INFO com.tc.logging.TCLogging - All Java System Properties for this Terracotta instance:
========================================================================
awt.toolkit : sun.awt.windows.WToolkit
catalina.base : D:\Program Files\Apache Software Foundation\apache-tomcat-6.0.20
catalina.home : D:\Program Files\Apache Software Foundation\apache-tomcat-6.0.20
file.encoding : GBK
file.encoding.pkg : sun.io
file.separator : \
java.awt.graphicsenv : sun.awt.Win32GraphicsEnvironment
java.awt.printerjob : sun.awt.windows.WPrinterJob
java.class.path : D:\jdk1.6.0_12\lib\tools.jar;D:\Program Files\Apache Software Foundation\apache-tomcat-6.0.20\bin\bootstrap.jar
java.class.version : 50.0
java.endorsed.dirs : D:\Program Files\Apache Software Foundation\apache-tomcat-6.0.20\endorsed
java.ext.dirs : D:\jdk1.6.0_12\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
java.home : D:\jdk1.6.0_12\jre
java.io.tmpdir : D:\Program Files\Apache Software Foundation\apache-tomcat-6.0.20\temp
java.library.path : D:\jdk1.6.0_12\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\Program Files\MySQL\MySQL Server 5.0\bin
java.runtime.name : Java(TM) SE Runtime Environment
java.runtime.version : 1.6.0_12-b04
java.specification.name : Java Platform API Specification
java.specification.vendor : Sun Microsystems Inc.
java.specification.version : 1.6
java.util.logging.config.file: D:\Program Files\Apache Software Foundation\apache-tomcat-6.0.20\conf\logging.properties
java.util.logging.manager : org.apache.juli.ClassLoaderLogManager
java.vendor : Sun Microsystems Inc.
java.vendor.url : http://java.sun.com/
java.vendor.url.bug : http://java.sun.com/cgi-bin/bugreport.cgi
java.version : 1.6.0_12
java.vm.info : mixed mode
java.vm.name : Java HotSpot(TM) Client VM
java.vm.specification.name : Java Virtual Machine Specification
java.vm.specification.vendor : Sun Microsystems Inc.
java.vm.specification.version: 1.0
java.vm.vendor : Sun Microsystems Inc.
java.vm.version : 11.2-b01
line.separator :

os.arch : x86
os.name : Windows 2003
os.version : 5.2
path.separator : ;
sun.arch.data.model : 32
sun.boot.class.path : D:\terracotta-3.0.1\bin\..\lib\dso-boot\dso-boot-hotspot_win32_160_12.jar;D:\jdk1.6.0_12\jre\lib\resources.jar;D:\jdk1.6.0_12\jre\lib\rt.jar;D:\jdk1.6.0_12\jre\lib\sunrsasign.jar;D:\jdk1.6.0_12\jre\lib\jsse.jar;D:\jdk1.6.0_12\jre\lib\jce.jar;D:\jdk1.6.0_12\jre\lib\charsets.jar;D:\jdk1.6.0_12\jre\classes
sun.boot.library.path : D:\jdk1.6.0_12\jre\bin
sun.cpu.endian : little
sun.cpu.isalist : pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
sun.desktop : windows
sun.io.unicode.encoding : UnicodeLittle
sun.java.launcher : SUN_STANDARD
sun.jnu.encoding : GBK
sun.management.compiler : HotSpot Client Compiler
sun.os.patch.level : Service Pack 2
tc.config : D:\terracotta-3.0.1\bin\tc-config.xml
tc.install-root : D:\terracotta-3.0.1\bin\..
user.country : CN
user.dir : D:\Program Files\Apache Software Foundation\apache-tomcat-6.0.20\bin
user.home : C:\Documents and Settings\Administrator
user.language : zh
user.name : Administrator
user.timezone : Asia/Shanghai
user.variant :
========================================================================
2009-07-28 09:18:49,578 [main] INFO com.tc.bundles.Resolver - Resolved TIM org.terracotta.modules:tim-tomcat-6.0:1.1.0 from D:\terracotta-3.0.1\modules\org\terracotta\modules\tim-tomcat-6.0\1.1.0\tim-tomcat-6.0-1.1.0.jar
2009-07-28 09:18:49,937 [main] INFO com.terracottatech.dso - Trying to get Cluster topology from http://192.168.0.26:9510/groupinfo
2009-07-28 09:18:50,031 [main] INFO com.terracottatech.dso - Trying to get L1 Reconnect Properties from http://192.168.0.26:9510/l1reconnectproperties
2009-07-28 09:18:50,062 [main] INFO com.tc.net.core.TCComm - Comm Worker Threads NOT requested
2009-07-28 09:18:50,093 [main] INFO com.tc.net.protocol.transport.ConnectionHealthCheckerImpl: DSO Client - HealthChecker Started
2009-07-28 09:18:50,140 [main] INFO com.tc.net.protocol.tcm.CommunicationsManager - HealthCheck CallbackPort Listener started at /0.0.0.0:1969
2009-07-28 09:18:50,203 [Statistics Logger] INFO com.terracottatech.dso - memory free : 57766560
2009-07-28 09:18:50,203 [Statistics Logger] INFO com.terracottatech.dso - memory used : 8883552
2009-07-28 09:18:50,203 [Statistics Logger] INFO com.terracottatech.dso - memory max : 66650112
2009-07-28 09:18:50,468 [main] INFO com.terracottatech.dso - Statistics buffer: 'D:\Program Files\Apache Software Foundation\apache-tomcat-6.0.20\bin\statistics-192.168.0.26'.
2009-07-28 09:18:50,500 [main] INFO com.tc.statistics.StatisticRetrievalAction - "message monitor" statistic is not enabled. Please enable the property "tcm.monitor.delay" to collect this statistics.
2009-07-28 09:18:50,515 [main] INFO com.tc.runtime.TCMemoryManagerImpl - GarbageCollector: Copy
2009-07-28 09:18:50,515 [main] INFO com.tc.runtime.TCMemoryManagerImpl - GarbageCollector: MarkSweepCompact
2009-07-28 09:18:50,578 [L1Management JMX registration] INFO com.tc.management.L1Management - Terracotta JMX connector available at[service:jmx:terracotta://localhost]
2009-07-28 09:18:50,593 [main] INFO com.tc.net.protocol.transport.ClientMessageTransport - ConnectionID(-1.ffffffffffffffffffffffffffffffff): Attaching new connection: com.tc.net.core.TCConnectionJDK14@31966239: connected: true, closed: false local=192.168.0.26:1970 remote=192.168.0.26:9510 connect=[Tue Jul 28 09:18:50 CST 2009] idle=0ms [0 read, 0 write]
2009-07-28 09:18:50,625 [main] INFO com.tc.net.protocol.transport.ConnectionHealthCheckerImpl. DSO Client - Health monitoring agent started for x3650:9510
2009-07-28 09:18:50,625 [TCComm Main Selector Thread (listen 0.0.0.0:1969)] INFO com.tc.net.protocol.transport.ConnectionHealthCheckerImpl. DSO Client - HealthCheckCallbackPort verification PASSED for x3650:9510(callbackport: 9510)
2009-07-28 09:18:50,625 [main] INFO com.tc.management.remote.protocol.terracotta.TunnelingEventHandler - Client JMX server ready; sending notification to L2 server
2009-07-28 09:18:50,625 [WorkerThread(client_coordination_stage,0)] INFO com.tc.object.handshakemanager.ClientHandshakeManagerImpl - ClientID[0]: Connected: Unpausing from State[ PAUSED ] RemoteNode : GroupID[0]. Disconnect count : 1
2009-07-28 09:18:50,640 [WorkerThread(client_coordination_stage,0)] INFO com.tc.object.handshakemanager.ClientHandshakeManagerImpl - ClientID[0]: Received Handshake ack for this node :GroupID[0]
2009-07-28 09:18:50,640 [main] INFO com.terracottatech.console - Connection successfully established to server at 192.168.0.26:9510
2009-07-28 09:18:50,640 [main] INFO com.terracottatech.dso - Connection successfully established to server at 192.168.0.26:9510
2009-07-28 09:18:56,515 [TC Memory Monitor] INFO com.tc.runtime.TCMemoryManagerImpl - Sleep time changed to : 600
color]
/////////////////////////////////////////////////////////////////////////////////
[color=darkblue]出错后的terracotta-client.log
2009-07-28 09:18:53,531 [main] INFO com.terracottatech.general - New logging session started.
2009-07-28 09:18:53,562 [main] INFO com.terracottatech.console - Terracotta 3.0.1, as of 20090514-130552 (Revision 12704 by cruise@su10mo5 from 3.0)
2009-07-28 09:18:53,578 [main] INFO com.tc.config.schema.setup.StandardXMLFileConfigurationCreator - Attempting to load configuration from the file at 'D:\terracotta-3.0.1\bin\tc-config.xml'...
2009-07-28 09:18:53,578 [main] INFO com.tc.config.schema.setup.StandardXMLFileConfigurationCreator - Successfully loaded configuration from the file at 'D:\terracotta-3.0.1\bin\tc-config.xml'. Config is:


<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-4.xsd">

<servers>

<!-- For more information on working with the Terracotta configuration file, including how to add
more servers, see http://www.terracotta.org/web/display/docs/About+Terracotta+Configuration+Files.

Edit the following server element so that its host attribute contains the value matching the
hostname for the Terracotta server. -->

<server host="192.168.0.26">
<dso-port>9510</dso-port>

<data>data/server-data</data>

<logs>logs/server-logs</logs>
</server>

<update-check>
<enabled>true</enabled>
</update-check>

</servers>

<!-- Check that the TIM shown in the <module> element's name attribute matches the Tomcat version you
are using. The TIM listed here, "tim-tomcat-5.5" is for Tomcat 5.5. For example, if you are using
Tomcat 6.0, edit the name to "tim-tomcat-6.0". -->

<clients>
<modules>
<module name="tim-tomcat-6.0" version="1.1.0" />
</modules>
</clients>

<!-- Using <web-application> elements, enter the context root of the web application being clustered.
If you are clustering more than one web application, use one <web-application> element per application.
Two example <web-application> elements are shown below. Edit or remove these elements as needed.
To set the value of the <web-application> element to the default web-application context, use the
special value "ROOT" (without quotation marks). -->

<application>
<dso>
<additional-boot-jar-classes>
<include>java.util.Locale</include>
</additional-boot-jar-classes>
<transient-fields>
<field-name>org.apache.struts.action.ActionForm.servlet</field-name>
</transient-fields>
<instrumented-classes>
<include>
<class-expression>org.apache.struts.action.ActionForm</class-expression>
</include>
<include>
<class-expression>org.apache.struts.action.ActionForm.servlet</class-expression>
</include>
<include>
<class-expression>com.help.desktop.actions.*</class-expression>
</include>
<include>
<class-expression>com.help.struts.actions.*</class-expression>
</include>
<include>
<class-expression>com.help.struts.forms.*</class-expression>
</include>
<include>
<class-expression>com.help.util.*</class-expression>
</include>
<include>
<class-expression>com.help.entity.*</class-expression>
</include>
</instrumented-classes>

<web-applications>
<web-application>help</web-application>
</web-applications>
</dso>
</application>
</tc:tc-config>

2009-07-28 09:18:53,828 [main] INFO com.terracottatech.console - Configuration loaded from the file at 'D:\terracotta-3.0.1\bin\tc-config.xml'.
2009-07-28 09:18:53,859 [main] INFO com.tc.properties.TCProperties - Loading default properties from tc.properties
2009-07-28 09:18:53,859 [main] INFO com.tc.properties.TCProperties - tc-config doesn't have any tc-property. No tc-property will be overridden
2009-07-28 09:18:53,859 [main] INFO com.tc.properties.TCProperties - Loaded TCProperties : TCProperties = { console.showObjectID = true, cvt.buffer.randomsuffix.enabled = false, cvt.rest.interface.enabled = true, cvt.retriever.notification.interval = 60, cvt.statistics.logging.interval = 900, cvt.store.randomsuffix.enabled = false, ehcache.clusterAllCacheManagers = true, ehcache.concurrency = 128, ehcache.evictor.logging.enabled = false, ehcache.evictor.pool.size = 1, ehcache.global.eviction.enable = true, ehcache.global.eviction.frequency = 10, ehcache.global.eviction.rest.timeMillis = 10, ehcache.global.eviction.segments = 2, ehcache.lock.readLevel = READ, ehcache.lock.writeLevel = WRITE, ehcache.logging.enabled = false, http.defaultservlet.attribute.aliases = false;, http.defaultservlet.attribute.dirallowed = false;, http.defaultservlet.enabled = false;, l1.cachemanager.criticalObjectThreshold = -1, l1.cachemanager.criticalThreshold = 90, l1.cachemanager.enabled = true, l1.cachemanager.leastCount = 2, l1.cachemanager.logging.enabled = false, l1.cachemanager.monitorOldGenOnly = true, l1.cachemanager.percentageToEvict = 10, l1.cachemanager.sleepInterval = 3000, l1.cachemanager.threshold = 70, l1.connect.versionMatchCheck.enabled = true, l1.healthcheck.l2.bindAddress = 0.0.0.0, l1.healthcheck.l2.bindPort = 0, l1.healthcheck.l2.ping.enabled = true, l1.healthcheck.l2.ping.idletime = 5000, l1.healthcheck.l2.ping.interval = 1000, l1.healthcheck.l2.ping.probes = 3, l1.healthcheck.l2.socketConnect = true, l1.healthcheck.l2.socketConnectCount = 13, l1.healthcheck.l2.socketConnectTimeout = 5, l1.jvm.check.compatibility = true, l1.l2.config.validation.enabled = true, l1.lock.statistics.gatherInterval = 1, l1.lock.statistics.traceDepth = 0, l1.lockmanager.striped.count = 16, l1.lockmanager.timeout.interval = 60000, l1.max.connect.retries = -1, l1.modules.additional = , l1.modules.default = org.terracotta.modules.excludes-config;bundle-version:=3.0.1,org.terracotta.modules.guimodels-config;bundle-version:=3.0.1,org.terracotta.modules.jdk15-preinst-config;bundle-version:=3.0.1,org.terracotta.modules.spring-config;bundle-version:=3.0.1,org.terracotta.modules.standard-config;bundle-version:=3.0.1, l1.modules.repositories = , l1.modules.tc-version-check = , l1.objectmanager.fault.logging.enabled = false, l1.objectmanager.flush.logging.enabled = false, l1.objectmanager.objectid.request.size = 50000, l1.objectmanager.remote.logging.enabled = false, l1.objectmanager.remote.maxDNALRUSize = 60, l1.seda.stage.sink.capacity = -1, l1.serverarray.objectCreationStrategy = round-robin, l1.serverarray.objectCreationStrategy.groupAffinity.groupName = mirror-group1, l1.serverarray.objectCreationStrategy.roundRobin.coordinatorLoad = 100, l1.serverarray.objectCreationStrategy.roundRobin.startIndex = sequential, l1.socket.connect.timeout = 10000, l1.socket.reconnect.waitInterval = 1000, l1.transactionmanager.completedAckFlushTimeout = 5000, l1.transactionmanager.folding.debug = false, l1.transactionmanager.folding.enabled = true, l1.transactionmanager.folding.lock.limit = 0, l1.transactionmanager.folding.object.limit = 0, l1.transactionmanager.logging.enabled = false, l1.transactionmanager.maxBatchSizeInKiloBytes = 128, l1.transactionmanager.maxOutstandingBatchSize = 4, l1.transactionmanager.maxPendingBatches = 88, l1.transactionmanager.maxSleepTimeBeforeHalt = 1024, l1.transactionmanager.strings.compress.enabled = true, l1.transactionmanager.strings.compress.logging.enabled = false, l1.transactionmanager.strings.compress.minSize = 512, l1.transactionmanager.timeoutForAckOnExit = 300, l2.beanshell.enabled = false, l2.beanshell.port = 9929, l2.berkeleydb.je.checkpointer.bytesInterval = 100000000, l2.berkeleydb.je.cleaner.bytesInterval = 20000000, l2.berkeleydb.je.cleaner.detailMaxMemoryPercentage = 5, l2.berkeleydb.je.cleaner.lookAheadCacheSize = 32768, l2.berkeleydb.je.cleaner.minAge = 5, l2.berkeleydb.je.lock.nLockTables = 7, l2.berkeleydb.je.lock.timeout = 180000000, l2.berkeleydb.je.maxMemoryPercent = 25, l2.cachemanager.criticalObjectThreshold = -1, l2.cachemanager.criticalThreshold = 90, l2.cachemanager.enabled = true, l2.cachemanager.leastCount = 2, l2.cachemanager.logging.enabled = false, l2.cachemanager.monitorOldGenOnly = true, l2.cachemanager.percentageToEvict = 10, l2.cachemanager.sleepInterval = 3000, l2.cachemanager.threshold = 70, l2.healthcheck.l1.ping.enabled = true, l2.healthcheck.l1.ping.idletime = 5000, l2.healthcheck.l1.ping.interval = 1000, l2.healthcheck.l1.ping.probes = 3, l2.healthcheck.l1.socketConnect = true, l2.healthcheck.l1.socketConnectCount = 10, l2.healthcheck.l1.socketConnectTimeout = 5, l2.healthcheck.l2.ping.enabled = true, l2.healthcheck.l2.ping.idletime = 5000, l2.healthcheck.l2.ping.interval = 1000, l2.healthcheck.l2.ping.probes = 3, l2.healthcheck.l2.socketConnect = true, l2.healthcheck.l2.socketConnectCount = 10, l2.healthcheck.l2.socketConnectTimeout = 5, l2.l1reconnect.enabled = false, l2.l1reconnect.maxDelayedAcks = 16, l2.l1reconnect.sendWindow = 32, l2.l1reconnect.sendqueue.cap = 5000, l2.l1reconnect.timeout.millis = 5000, l2.lfu.agingFactor = 1, l2.lfu.debug.enabled = false, l2.lfu.recentlyAccessedIgnorePercentage = 20, l2.lockmanager.greedy.lease.enabled = true, l2.lockmanager.greedy.lease.leaseTimeInMillis = 50, l2.nha.autoRestart = true, l2.nha.dirtydb.autoDelete = true, l2.nha.dirtydb.rolling = 0, l2.nha.send.timeout.millis = 16000, l2.nha.tcgroupcomm.discovery.interval = 1000, l2.nha.tcgroupcomm.handshake.timeout = 5000, l2.nha.tcgroupcomm.reconnect.enabled = false, l2.nha.tcgroupcomm.reconnect.maxDelayedAcks = 16, l2.nha.tcgroupcomm.reconnect.sendWindow = 32, l2.nha.tcgroupcomm.reconnect.sendqueue.cap = 5000, l2.nha.tcgroupcomm.reconnect.timeout = 5000, l2.objectmanager.cachePolicy = lfu, l2.objectmanager.deleteBatchSize = 5000, l2.objectmanager.dgc.throttle.requestsPerThrottle = 1000, l2.objectmanager.dgc.throttle.timeInMillis = 0, l2.objectmanager.dgc.young.enabled = false, l2.objectmanager.dgc.young.frequencyInMillis = 180000, l2.objectmanager.fault.logging.enabled = false, l2.objectmanager.flush.logging.enabled = false, l2.objectmanager.loadObjectID.checkpoint.maxlimit = -1, l2.objectmanager.loadObjectID.checkpoint.maxsleep = 10000, l2.objectmanager.loadObjectID.fastLoad = true, l2.objectmanager.loadObjectID.longsPerDiskEntry = 8, l2.objectmanager.loadObjectID.mapsdatabase.longsPerDiskEntry = 1, l2.objectmanager.maxObjectsInTxnObjGrouping = 5000, l2.objectmanager.maxObjectsToCommit = 5000, l2.objectmanager.maxTxnsInTxnObjectGrouping = 500, l2.objectmanager.objectrequest.logging.enabled = false, l2.objectmanager.objectrequest.split.size = 5, l2.objectmanager.passive.sync.batch.size = 500, l2.objectmanager.passive.sync.throttle.timeInMillis = 0, l2.objectmanager.persistor.logging.enabled = false, l2.objectmanager.request.logging.enabled = false, l2.remotejmx.idletime = 5, l2.remotejmx.maxthreads = 50, l2.seda.commitstage.threads = 4, l2.seda.faultstage.threads = 4, l2.seda.flushstage.threads = 4, l2.seda.gcdeletestage.threads = 1, l2.seda.stage.sink.capacity = -1, l2.serverarray.2pc.enabled = true, l2.startuplock.retries.enabled = false, l2.transactionmanager.logging.enabled = false, l2.transactionmanager.logging.printBroadcastStats = false, l2.transactionmanager.logging.printCommits = false, l2.transactionmanager.logging.printStats = true, l2.transactionmanager.logging.verbose = false, l2.transactionmanager.passive.throttle.enabled = true, l2.transactionmanager.passive.throttle.maxSleepSeconds = 5, l2.transactionmanager.passive.throttle.threshold = 20000, lock.statistics.enabled = false, logging.longgc.threshold = 8000, logging.maxBackups = 20, logging.maxLogFileSize = 512, memory.monitor.forcebasic = false, net.core.keepalive = false, net.core.tcpnodelay = true, session.debug.hops = false, session.debug.hops.interval = 100, session.debug.invalidate = false, session.debug.sessions = false, session.invalidator.bench.enabled = true, session.invalidator.sleep = 300, session.request.bench.enabled = false, session.request.tracking = false, session.request.tracking.dump = false, session.request.tracking.interval = 2500, session.request.tracking.threshold = 15000, session.vhosts.excluded = , stats.printer.intervalInMillis = 5000, tc.bytebuffer.common.pool.maxcount = 3000, tc.bytebuffer.pooling.enabled = true, tc.bytebuffer.threadlocal.pool.maxcount = 2000, tc.management.mbeans.enabled = true, tc.management.test.mbeans.enabled = false, tc.stage.monitor.delay = 5000, tc.stage.monitor.enabled = false, tcm.monitor.delay = 5, tcm.monitor.enabled = false }
2009-07-28 09:18:53,937 [main] INFO com.terracottatech.console - Log file: 'D:\Program Files\Apache Software Foundation\apache-tomcat-(1)6.0.20\bin\logs-192.168.0.26\terracotta-client.log'.
2009-07-28 09:18:53,937 [main] INFO com.tc.logging.TCLogging - All Java System Properties for this Terracotta instance:
========================================================================
awt.toolkit : sun.awt.windows.WToolkit
catalina.base : D:\Program Files\Apache Software Foundation\apache-tomcat-(1)6.0.20
catalina.home : D:\Program Files\Apache Software Foundation\apache-tomcat-(1)6.0.20
file.encoding : GBK
file.encoding.pkg : sun.io
file.separator : \
java.awt.graphicsenv : sun.awt.Win32GraphicsEnvironment
java.awt.printerjob : sun.awt.windows.WPrinterJob
java.class.path : D:\jdk1.6.0_12\lib\tools.jar;D:\Program Files\Apache Software Foundation\apache-tomcat-(1)6.0.20\bin\bootstrap.jar
java.class.version : 50.0
java.endorsed.dirs : D:\Program Files\Apache Software Foundation\apache-tomcat-(1)6.0.20\endorsed
java.ext.dirs : D:\jdk1.6.0_12\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
java.home : D:\jdk1.6.0_12\jre
java.io.tmpdir : D:\Program Files\Apache Software Foundation\apache-tomcat-(1)6.0.20\temp
java.library.path : D:\jdk1.6.0_12\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\Program Files\MySQL\MySQL Server 5.0\bin
java.runtime.name : Java(TM) SE Runtime Environment
java.runtime.version : 1.6.0_12-b04
java.specification.name : Java Platform API Specification
java.specification.vendor : Sun Microsystems Inc.
java.specification.version : 1.6
java.util.logging.config.file: D:\Program Files\Apache Software Foundation\apache-tomcat-(1)6.0.20\conf\logging.properties
java.util.logging.manager : org.apache.juli.ClassLoaderLogManager
java.vendor : Sun Microsystems Inc.
java.vendor.url : http://java.sun.com/
java.vendor.url.bug : http://java.sun.com/cgi-bin/bugreport.cgi
java.version : 1.6.0_12
java.vm.info : mixed mode
java.vm.name : Java HotSpot(TM) Client VM
java.vm.specification.name : Java Virtual Machine Specification
java.vm.specification.vendor : Sun Microsystems Inc.
java.vm.specification.version: 1.0
java.vm.vendor : Sun Microsystems Inc.
java.vm.version : 11.2-b01
line.separator :

os.arch : x86
os.name : Windows 2003
os.version : 5.2
path.separator : ;
sun.arch.data.model : 32
sun.boot.class.path : D:\terracotta-3.0.1\bin\..\lib\dso-boot\dso-boot-hotspot_win32_160_12.jar;D:\jdk1.6.0_12\jre\lib\resources.jar;D:\jdk1.6.0_12\jre\lib\rt.jar;D:\jdk1.6.0_12\jre\lib\sunrsasign.jar;D:\jdk1.6.0_12\jre\lib\jsse.jar;D:\jdk1.6.0_12\jre\lib\jce.jar;D:\jdk1.6.0_12\jre\lib\charsets.jar;D:\jdk1.6.0_12\jre\classes
sun.boot.library.path : D:\jdk1.6.0_12\jre\bin
sun.cpu.endian : little
sun.cpu.isalist : pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
sun.desktop : windows
sun.io.unicode.encoding : UnicodeLittle
sun.java.launcher : SUN_STANDARD
sun.jnu.encoding : GBK
sun.management.compiler : HotSpot Client Compiler
sun.os.patch.level : Service Pack 2
tc.config : D:\terracotta-3.0.1\bin\tc-config.xml
tc.install-root : D:\terracotta-3.0.1\bin\..
user.country : CN
user.dir : D:\Program Files\Apache Software Foundation\apache-tomcat-(1)6.0.20\bin
user.home : C:\Documents and Settings\Administrator
user.language : zh
user.name : Administrator
user.timezone : Asia/Shanghai
user.variant :
========================================================================
2009-07-28 09:18:54,218 [main] INFO com.tc.bundles.Resolver - Resolved TIM org.terracotta.modules:tim-tomcat-6.0:1.1.0 from D:\terracotta-3.0.1\modules\org\terracotta\modules\tim-tomcat-6.0\1.1.0\tim-tomcat-6.0-1.1.0.jar
2009-07-28 09:18:54,578 [main] INFO com.terracottatech.dso - Trying to get Cluster topology from http://192.168.0.26:9510/groupinfo
2009-07-28 09:18:54,593 [main] INFO com.terracottatech.dso - Trying to get L1 Reconnect Properties from http://192.168.0.26:9510/l1reconnectproperties
2009-07-28 09:18:54,625 [main] INFO com.tc.net.core.TCComm - Comm Worker Threads NOT requested
2009-07-28 09:18:54,671 [main] INFO com.tc.net.protocol.transport.ConnectionHealthCheckerImpl: DSO Client - HealthChecker Started
2009-07-28 09:18:54,703 [main] INFO com.tc.net.protocol.tcm.CommunicationsManager - HealthCheck CallbackPort Listener started at /0.0.0.0:1983
2009-07-28 09:18:54,765 [Statistics Logger] INFO com.terracottatech.dso - memory free : 57814640
2009-07-28 09:18:54,765 [Statistics Logger] INFO com.terracottatech.dso - memory used : 8835472
2009-07-28 09:18:54,765 [Statistics Logger] INFO com.terracottatech.dso - memory max : 66650112
2009-07-28 09:18:55,031 [main] INFO com.terracottatech.dso - Statistics buffer: 'D:\Program Files\Apache Software Foundation\apache-tomcat-(1)6.0.20\bin\statistics-192.168.0.26'.
2009-07-28 09:18:55,062 [main] INFO com.tc.statistics.StatisticRetrievalAction - "message monitor" statistic is not enabled. Please enable the property "tcm.monitor.delay" to collect this statistics.
2009-07-28 09:18:55,078 [main] INFO com.tc.runtime.TCMemoryManagerImpl - GarbageCollector: Copy
2009-07-28 09:18:55,078 [main] INFO com.tc.runtime.TCMemoryManagerImpl - GarbageCollector: MarkSweepCompact
2009-07-28 09:18:55,140 [L1Management JMX registration] INFO com.tc.management.L1Management - Terracotta JMX connector available at[service:jmx:terracotta://localhost]
2009-07-28 09:18:55,171 [main] INFO com.tc.net.protocol.transport.ClientMessageTransport - ConnectionID(-1.ffffffffffffffffffffffffffffffff): Attaching new connection: com.tc.net.core.TCConnectionJDK14@32536530: connected: true, closed: false local=192.168.0.26:1984 remote=192.168.0.26:9510 connect=[Tue Jul 28 09:18:55 CST 2009] idle=15ms [0 read, 0 write]
2009-07-28 09:18:55,171 [main] INFO com.tc.net.protocol.transport.ConnectionHealthCheckerImpl. DSO Client - Health monitoring agent started for x3650:9510
2009-07-28 09:18:55,171 [TCComm Main Selector Thread (listen 0.0.0.0:1983)] INFO com.tc.net.protocol.transport.ConnectionHealthCheckerImpl. DSO Client - HealthCheckCallbackPort verification PASSED for x3650:9510(callbackport: 9510)
2009-07-28 09:18:55,187 [main] INFO com.tc.management.remote.protocol.terracotta.TunnelingEventHandler - Client JMX server ready; sending notification to L2 server
2009-07-28 09:18:55,187 [WorkerThread(client_coordination_stage,0)] INFO com.tc.object.handshakemanager.ClientHandshakeManagerImpl - ClientID[1]: Connected: Unpausing from State[ PAUSED ] RemoteNode : GroupID[0]. Disconnect count : 1
2009-07-28 09:18:55,187 [WorkerThread(client_coordination_stage,0)] INFO com.tc.object.handshakemanager.ClientHandshakeManagerImpl - ClientID[1]: Received Handshake ack for this node :GroupID[0]
2009-07-28 09:18:55,187 [main] INFO com.terracottatech.console - Connection successfully established to server at 192.168.0.26:9510
2009-07-28 09:18:55,187 [main] INFO com.terracottatech.dso - Connection successfully established to server at 192.168.0.26:9510
2009-07-28 09:19:01,078 [TC Memory Monitor] INFO com.tc.runtime.TCMemoryManagerImpl - Sleep time changed to : 600
2009-07-28 09:19:28,125 [main] ERROR com.terracottatech.dso - Refusing to instrument CGLIB generated proxy type com.help.entity.TranslateFriendCompany$$EnhancerByCGLIB$$72c2bd3f (CGLIB integration module not enabled)
2009-07-28 09:19:28,171 [main] ERROR com.terracottatech.dso - Refusing to instrument CGLIB generated proxy type com.help.entity.Floder$$EnhancerByCGLIB$$a84ca1b6 (CGLIB integration module not enabled)
2009-07-28 09:19:28,203 [main] ERROR com.terracottatech.dso - Refusing to instrument CGLIB generated proxy type com.help.entity.AllProduct$$EnhancerByCGLIB$$1e448cbc (CGLIB integration module not enabled)
2009-07-28 09:19:28,234 [main] ERROR com.terracottatech.dso - Refusing to instrument CGLIB generated proxy type com.help.entity.Company$$EnhancerByCGLIB$$32bd4af5 (CGLIB integration module not enabled)
2009-07-28 09:19:28,250 [main] ERROR com.terracottatech.dso - Refusing to instrument CGLIB generated proxy type com.help.entity.TranslateProductBrand$$EnhancerByCGLIB$$6a86c53e (CGLIB integration module not enabled)
2009-07-28 09:19:28,265 [main] ERROR com.terracottatech.dso - Refusing to instrument CGLIB generated proxy type com.help.entity.TranslateCompanyType$$EnhancerByCGLIB$$ecf933d7 (CGLIB integration module not enabled)
2009-07-28 09:19:28,265 [main] ERROR com.terracottatech.dso - Refusing to instrument CGLIB generated proxy type com.help.entity.FriendCompany$$EnhancerByCGLIB$$c1d4137 (CGLIB integration module not enabled)
2009-07-28 09:19:28,265 [main] ERROR com.terracottatech.dso - Refusing to instrument CGLIB generated proxy type com.help.entity.PriceRegion$$EnhancerByCGLIB$$40bb9d95 (CGLIB integration module not enabled)
2009-07-28 09:19:28,281 [main] ERROR com.terracottatech.dso - Refusing to instrument CGLIB generated proxy type com.help.entity.CrossingAdmin$$EnhancerByCGLIB$$5fc23785 (CGLIB integration module not enabled)
2009-07-28 09:19:28,281 [main] ERROR com.terracottatech.dso - Refusing to instrument CGLIB generated proxy type com.help.entity.ProductBrand$$EnhancerByCGLIB$$ca4fe246 (CGLIB integration module not enabled)
2009-07-28 09:19:28,296 [main] ERROR com.terracottatech.dso - Refusing to instrument CGLIB generated proxy type com.help.entity.ProductType$$EnhancerByCGLIB$$340eebc1 (CGLIB integration module not enabled)
2009-07-28 09:19:28,296 [main] ERROR com.terracottatech.dso - Refusing to instrument CGLIB generated proxy type com.help.entity.WebUrlCollect$$EnhancerByCGLIB$$ed669867 (CGLIB integration module not enabled)
2009-07-28 09:19:28,328 [main] ERROR com.terracottatech.dso - Refusing to instrument CGLIB generated proxy type com.help.entity.CompanyType$$EnhancerByCGLIB$$9455cf (CGLIB integration module not enabled)
2009-07-28 09:19:28,343 [main] ERROR com.terracottatech.dso - Refusing to instrument CGLIB generated proxy type com.help.entity.TranslateMember$$EnhancerByCGLIB$$7c732cc0 (CGLIB integration module not enabled)
2009-07-28 09:19:28,375 [main] ERROR com.terracottatech.dso - Refusing to instrument CGLIB generated proxy type com.help.entity.TranslateAllProduct$$EnhancerByCGLIB$$b247cdb4 (CGLIB integration module not enabled)
2009-07-28 09:19:28,375 [main] ERROR com.terracottatech.dso - Refusing to instrument CGLIB generated proxy type com.help.entity.TranslatePriceRegion$$EnhancerByCGLIB$$2d207b9d (CGLIB integration module not enabled)
2009-07-28 09:19:28,390 [main] ERROR com.terracottatech.dso - Refusing to instrument CGLIB generated proxy type com.help.entity.TranslateProductType$$EnhancerByCGLIB$$2073c9c9 (CGLIB integration module not enabled)
2009-07-28 09:19:28,421 [main] ERROR com.terracottatech.dso - Refusing to instrument CGLIB generated proxy type com.help.entity.TranslateCompany$$EnhancerByCGLIB$$f2126cfd (CGLIB integration module not enabled)
2009-07-28 09:19:28,421 [main] ERROR com.terracottatech.dso - Refusing to instrument CGLIB generated proxy type com.help.entity.InternetUser$$EnhancerByCGLIB$$393f3e1a (CGLIB integration module not enabled)
2009-07-28 09:19:29,343 [TC Memory Monitor] INFO com.tc.runtime.TCMemoryManagerImpl - Sleep time changed to : 133
2009-07-28 09:21:06,171 [TP-Processor3] INFO com.terracottatech.dso - Clustered HTTP sessions IS enabled for [help]. matched [help]
2009-07-28 09:21:06,250 [TP-Processor3] INFO com.tc.tcsession.help - Clustered HTTP sessions with session-locking=true for [help]

//////////////////////////////////////////////////////////////////////////////////
tomcat出错前的catalina.log
2009-7-28 9:10:26 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host} Setting property 'debug' to '0' did not find a matching property.
2009-7-28 9:10:26 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property.
2009-7-28 9:10:26 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\jdk1.6.0_12\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\Program Files\MySQL\MySQL Server 5.0\bin
2009-7-28 9:10:26 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8181
2009-7-28 9:10:26 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 753 ms
2009-7-28 9:10:26 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2009-7-28 9:10:26 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.20
2009-7-28 9:10:27 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
2009-7-28 9:11:02 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8181
2009-7-28 9:11:02 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8019
2009-7-28 9:11:02 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/31 config=null
2009-7-28 9:11:02 org.apache.catalina.startup.Catalina start
信息: Server startup in 35469 ms

////////////////////////////////////////////////////////////////////////////////
tomcat 出错后的catalina.log
2009-7-28 9:18:55 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host} Setting property 'debug' to '0' did not find a matching property.
2009-7-28 9:18:55 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property.
2009-7-28 9:18:55 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\jdk1.6.0_12\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\Program Files\MySQL\MySQL Server 5.0\bin
2009-7-28 9:18:55 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2009-7-28 9:18:55 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 485 ms
2009-7-28 9:18:55 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2009-7-28 9:18:55 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.20
2009-7-28 9:18:56 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
2009-7-28 9:19:30 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2009-7-28 9:19:30 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2009-7-28 9:19:30 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/15 config=null
2009-7-28 9:19:30 org.apache.catalina.startup.Catalina start
信息: Server startup in 35003 ms
2009-7-28 9:22:18 org.apache.jasper.runtime.JspFactoryImpl internalGetPageContext
严重: Exception initializing page context
java.lang.IllegalStateException: response is already committed
at com.terracotta.session.util.DefaultCookieWriter.writeCookie(DefaultCookieWriter.java:62)
at com.terracotta.session.TerracottaSessionManager.createNewSession(TerracottaSessionManager.java:555)
at com.terracotta.session.TerracottaSessionManager.doGetSession(TerracottaSessionManager.java:516)
at com.terracotta.session.TerracottaSessionManager.getSession(TerracottaSessionManager.java:415)
at com.terracotta.session.SessionRequest.getTerracottaSession(SessionRequest.java:104)
at com.terracotta.session.SessionRequest.getSession(SessionRequest.java:56)
at org.apache.jasper.runtime.PageContextImpl._initialize(PageContextImpl.java:146)
at org.apache.jasper.runtime.PageContextImpl.initialize(PageContextImpl.java:124)
at org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(JspFactoryImpl.java:107)
at org.apache.jasper.runtime.JspFactoryImpl.getPageContext(JspFactoryImpl.java:63)
at org.apache.jsp.searchengine.otherDisplay_jsp._jspService(otherDisplay_jsp.java:44)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
at com.terracotta.session.TerracottaDispatcher.include(TerracottaDispatcher.java:35)
at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)
at org.apache.jsp.help.Firstpage_jsp._jspService(Firstpage_jsp.java:407)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.help.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:40)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:567)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.terracotta.modules.tomcat.tomcat_5_5.SessionValve55.tcInvoke(SessionValve55.java:63)
at org.terracotta.modules.tomcat.tomcat_5_5.SessionValve55.invoke(SessionValve55.java:50)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
at java.lang.Thread.run(Thread.java:619)

rexchen

neo

Joined: 07/23/2009 23:50:16
Messages: 8
Offline

这个提出的问题给我的差不多,我如果启动两个tomcat的话,打开页面,就像卡死了一样。而且一个tomcat报了像下面一样的错误。如果我只开一个tomcat,那么完全正常。

Application works well in one tomcat instance, after starting another tomcat , the following exception shows up and the browser stuck there waiting and waiting.

seems a dead lock on server side.

27-May-2009 3:31:13 PM org.apache.catalina.connector.CoyoteAdapter service
SEVERE: An exception or error occurred in the container during the request processing
java.lang.IllegalStateException: response is already committed
at com.terracotta.session.util.DefaultCookieWriter.writeCookie(DefaultCookieWriter.java:62)
at com.terracotta.session.TerracottaSessionManager.writeCookieIfHop(TerracottaSessionManager.java:442)
at com.terracotta.session.TerracottaSessionManager.getSessionIfExists(TerracottaSessionManager.java:435)
at com.terracotta.session.SessionRequest.getTerracottaSession(SessionRequest.java:104)
at com.terracotta.session.TerracottaSessionManager.postprocessSession(TerracottaSessionManager.java:351)
at com.terracotta.session.TerracottaSessionManager.basicPostprocess(TerracottaSessionManager.java:327)
at com.terracotta.session.TerracottaSessionManager.postprocess(TerracottaSessionManager.java:307)
at org.terracotta.modules.tomcat.tomcat_5_5.SessionValve55.tcInvoke(SessionValve55.java:65)
at org.terracotta.modules.tomcat.tomcat_5_5.SessionValve55.invoke(SessionValve55.java:50)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
at java.lang.Thread.run(Thread.java:619)
lima

consul
[Avatar]
Joined: 06/22/2009 10:12:31
Messages: 361
Offline

现在基本确定这是Terracotta 的一个BUG。
我已经创建了一个BUG报告:
https://jira.terracotta.org/jira/browse/FORGE-532
希望能够尽快得到解决。

我们对因此造成的不便表示歉意。
jacklee

neo

Joined: 08/14/2009 21:40:10
Messages: 1
Offline

i experienced the very same problem in linux env as well

Apache 2.2.12 + Tomcat 6.0.20 + TC 3.0.1

The application works ok in when one Tomcat is on and failed when the second one started.
 
Forum Index -> Terracotta 中文社区 Go to Page: 1, 2 Next 
Go to:   
Powered by JForum 2.1.7 © JForum Team