kuzuke
neo
Joined: 07/17/2014 01:47:28
Messages: 2
Offline
|
I don't know why, but when I launch clients, they don't connect to the server. The server is running well.
There is the client log file I obtain when I try to launch clients. It's always the same thing.
========================================================================
2014-07-18 11:36:21,176 [main] INFO com.terracottatech.dso - Trying to get Groupname ID Map from http://localhost:9510/groupidmap
2014-07-18 11:36:21,383 [main] INFO com.terracottatech.dso - Trying to get Cluster topology from http://localhost:9510/groupinfo
2014-07-18 11:36:21,966 [main] INFO com.tc.object.bytecode.hook.impl.DSOContextImpl - DSOContext created with expressRejoinClient=false
2014-07-18 11:36:21,999 [main] INFO com.terracottatech.dso - Trying to get Groupname ID Map from http://localhost:9510/groupidmap
2014-07-18 11:36:22,007 [main] INFO com.terracottatech.dso - Trying to get Cluster topology from http://localhost:9510/groupinfo
2014-07-18 11:36:22,015 [main] INFO com.terracottatech.dso - Trying to get Cluster topology from http://localhost:9510/groupinfo
2014-07-18 11:36:22,026 [main] INFO com.terracottatech.dso - Trying to get L1 Reconnect Properties from http://localhost:9510/l1reconnectproperties
2014-07-18 11:36:22,093 [main] INFO com.tc.net.core.TCCommImpl - Comm Worker Threads NOT requested
2014-07-18 11:36:22,105 [main] INFO com.tc.net.protocol.transport.ConnectionHealthCheckerImpl: DSO Client - HealthChecker Started
2014-07-18 11:36:22,141 [main] INFO com.tc.net.protocol.tcm.CommunicationsManager - HealthCheck CallbackPort Listener started at /0:0:0:0:0:0:0:0:35541
2014-07-18 11:36:22,214 [main] INFO com.terracottatech.dso - Statistics buffer opened
2014-07-18 11:36:22,217 [Statistics Logger] INFO com.terracottatech.dso - memory free : 1294,766747 MB
2014-07-18 11:36:22,217 [Statistics Logger] INFO com.terracottatech.dso - memory used : 24,358253 MB
2014-07-18 11:36:22,217 [Statistics Logger] INFO com.terracottatech.dso - memory max : 1319,125000 MB
2014-07-18 11:36:22,233 [main] INFO com.tc.statistics.StatisticRetrievalAction - "message monitor" statistic is not enabled. Please enable the property "tcm.monitor.delay" to collect this statistics.
2014-07-18 11:36:22,272 [main] INFO com.tc.runtime.TCMemoryManagerImpl - GarbageCollector: PS Scavenge
2014-07-18 11:36:22,272 [main] INFO com.tc.runtime.TCMemoryManagerImpl - GarbageCollector: PS MarkSweep
2014-07-18 11:36:22,333 [main] INFO com.tc.net.core.TCConnection - Comms Message Batching enabled
2014-07-18 11:36:22,339 [main] INFO com.tc.net.protocol.transport.ClientMessageTransport - ConnectionID(-1.ffffffffffffffffffffffffffffffff.f12052d7-302c-4508-b1a3-185326f68b86-147490b4184)[]: Attaching new connection: com.tc.net.core.TCConnectionImpl@1826081141: connected: true, closed: false local=127.0.0.1:51484 remote=127.0.0.1:9510 connect=[Fri Jul 18 11:36:22 WAT 2014] idle=5ms [0 read, 0 write]
2014-07-18 11:36:22,361 [L1Management JMX registration] INFO com.tc.management.L1Management - Terracotta JMX connector available at[service:jmx:terracotta://localhost]
2014-07-18 11:36:22,514 [main] INFO com.tc.net.protocol.transport.ConnectionHealthCheckerImpl. DSO Client - Health monitoring agent started for localhost:9510
2014-07-18 11:36:22,517 [L1_L2:TCComm Main Selector Thread_R (listen 0:0:0:0:0:0:0:0:35541)] INFO com.tc.net.protocol.transport.ConnectionHealthCheckerImpl. DSO Client - HealthCheckCallbackPort verification PASSED for localhost:9510(callbackport: 9510)
2014-07-18 11:36:22,530 [WorkerThread(client_coordination_stage, 0)] INFO com.tc.object.handshakemanager.ClientHandshakeManagerImpl - ClientID[1]: Connected: Unpausing from State[ PAUSED ] RemoteNode : GroupID[0]. Disconnect count : 1
2014-07-18 11:36:22,551 [WorkerThread(client_coordination_stage, 0)] INFO com.tc.object.handshakemanager.ClientHandshakeManagerImpl - ClientID[1]: Received Handshake ack for this node :GroupID[0]
2014-07-18 11:36:22,551 [WorkerThread(client_coordination_stage, 0)] INFO com.tc.management.remote.protocol.terracotta.TunnelingEventHandler - Client JMX server ready; sending notification to L2 server
2014-07-18 11:36:22,553 [main] INFO com.terracottatech.console - Connection successfully established to server at 127.0.0.1:9510
2014-07-18 11:36:22,553 [main] INFO com.terracottatech.dso - Connection successfully established to server at 127.0.0.1:9510
2014-07-18 11:36:22,595 [WorkerThread(hydrate_message_stage, 0)] INFO com.tc.net.protocol.transport.ConnectionHealthCheckerImpl: DSO Client - Connection to [localhost:9510] CLOSED. Health Monitoring for this node is now disabled.
2014-07-18 11:36:22,595 [WorkerThread(hydrate_message_stage, 0)] INFO com.tc.object.handshakemanager.ClientHandshakeManagerImpl - ClientID[1]: Disconnected: Pausing from State[ RUNNING ] RemoteNode : GroupID[0]. Disconnect count: 0
2014-07-18 11:36:22,595 [L1_L2:TCComm Main Selector Thread_W (listen 0:0:0:0:0:0:0:0:35541)] INFO com.tc.net.core.CoreNIOServices - selection key cancelled key@1235228551
2014-07-18 11:36:22,839 [CommonShutDownHook] INFO com.terracottatech.dso - L1 Exiting...
The configuration file follows :
Code:
<tc:tc-config xsi:schemaLocation="http://www.terracotta.org/schema/terracotta-6.xsd"
xmlns:tc="http://www.terracotta.org/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<tc-properties>
<property name="l2.nha.dirtydb.autoDelete" value="true"/>
<property name="l1.cachemanager.enabled" value="true"/>
<property name="logging.maxLogFileSize" value="1024"/>
</tc-properties>
<system>
<configuration-model>development</configuration-model>
</system>
<servers>
<server host="localhost" name="server1">
<data>/home/best/hello_clustered_world/server-data</data>
<logs>/home/best/hello_clustered_world/server-logs</logs>
<index>/home/best/hello_clustered_world/server-index</index>
<statistics>/home/best/hello_clustered_world/server-statistics</statistics>
<dso-port bind="localhost">9510</dso-port>
<jmx-port bind="localhost">9520</jmx-port>
<l2-group-port bind="localhost">9530</l2-group-port>
<authentication/>
<http-authentication>
<user-realm-file>/home/best/hello_clustered_world/realm.properties</user-realm-file>
</http-authentication>
<dso>
<client-reconnect-window>120</client-reconnect-window>
<persistence>
<mode>permanent-store</mode>
</persistence>
<garbage-collection>
<enabled>true</enabled>
<verbose>false</verbose>
<interval>3600</interval>
</garbage-collection>
</dso>
</server>
<mirror-groups>
<mirror-group group-name="group1">
<members>
<member>server1</member>
</members>
<ha>
<mode>networked-active-passive</mode>
<networked-active-passive>
<election-time>5</election-time>
</networked-active-passive>
</ha>
</mirror-group>
</mirror-groups>
<ha>
<mode>networked-active-passive</mode>
<networked-active-passive>
<election-time>5</election-time>
</networked-active-passive>
</ha>
<update-check>
<enabled>true</enabled>
<period-days>10</period-days>
</update-check>
</servers>
<clients>
<logs>/home/best/client-logs-%i</logs>
</clients>
<application>
<dso>
<instrumented-classes>
<include>
<class-expression>HelloClusteredWorld</class-expression>
</include>
</instrumented-classes>
<locks>
<autolock>
<lock-level>write</lock-level>
<method-expression>void HelloClusteredWorld.main(..)</method-expression>
</autolock>
</locks>
<roots>
<root>
<field-name>HelloClusteredWorld.buffer</field-name>
</root>
<root>
<field-name>HelloClusteredWorld.loopCounter</field-name>
</root>
</roots>
</dso>
</application>
</tc:tc-config>
Thank you for replying!
|