<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "can not monitor the JMX port 9520 while the terracotta run on CentOS"]]></title>
		<link>http://forums.terracotta.org/forums/posts/list/6.page</link>
		<description><![CDATA[Latest messages posted in the topic "can not monitor the JMX port 9520 while the terracotta run on CentOS"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>can not monitor the JMX port 9520 while the terracotta run on CentOS</title>
				<description><![CDATA[ 
Hi,
   
   I can not monitor the JMX port 9520 while the terracotta run on CentOS. I use terracotta-generic-2.4.0.tar,my web container is jetty-6.1.5.althought the terracotta and jetty can run on the CentOS,i can't monitor the terracotta's jmx by another terracotta which is run on window.

    what's the problem?

Thanks in advances.


Joy.Cai]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/342.page#1701</guid>
				<link>http://forums.terracotta.org/forums/posts/list/342.page#1701</link>
				<pubDate><![CDATA[Mon, 23 Jul 2007 19:06:50]]> GMT</pubDate>
				<author><![CDATA[ Joy.Cai]]></author>
			</item>
			<item>
				<title>Re:can not monitor the JMX port 9520 while the terracotta run on CentOS</title>
				<description><![CDATA[ We don't officially certify on CentOS - but since it is based on RedHat - it should work - I suppose you just confirmed that as well.

What Exception do you encounter when you run the Admin Console (Swing GUI) on your Windows desktop:

1. Are you sure that the "host" (where the Terracotta server runs) and port (9520) are correctly specified. Can you ping the "host" from your windows box ? 
2. Do the Terracotta versions of the Admin Client and the Terracotta server match ?

Thanks.



]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/342.page#1702</guid>
				<link>http://forums.terracotta.org/forums/posts/list/342.page#1702</link>
				<pubDate><![CDATA[Mon, 23 Jul 2007 22:41:19]]> GMT</pubDate>
				<author><![CDATA[ zeeiyer]]></author>
			</item>
			<item>
				<title>Re:can not monitor the JMX port 9520 while the terracotta run on CentOS</title>
				<description><![CDATA[ Hi zeeiyer,

1.    I encounter this exception :unable to connect to 192.168.0.12:9520 when I run the Admin Console (Swing GUI) on my Windows desktop.but I can success to <b><font color='red'>telnet</font></b> to 192.168.0.12 on the port 9520.

2.    my Terracotta versions of the Admin Client is 2.4.0,the same as the Terracotta server (which is run on CentOS).

Thanks.

Joy.Cai]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/342.page#1703</guid>
				<link>http://forums.terracotta.org/forums/posts/list/342.page#1703</link>
				<pubDate><![CDATA[Mon, 23 Jul 2007 23:27:31]]> GMT</pubDate>
				<author><![CDATA[ Joy.Cai]]></author>
			</item>
			<item>
				<title>Re:can not monitor the JMX port 9520 while the terracotta run on CentOS</title>
				<description><![CDATA[ I take it that in the tc-config.xml one is not specifying a different port for JMX services (the default is 9520, but you can override it)...

Also there is an irritating bug, where sometimes you have to click twice on the Admin-Console "Connect" Push-Button to connect (the first attempt throws a timeout though, and not a "unable to connect" as you are reporting).

Just for completeness sake wrt triaging we are doing here - i just wanted to ensure that the default jmx-port has not been overridden and u try connecting twice.
Thx
]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/342.page#1706</guid>
				<link>http://forums.terracotta.org/forums/posts/list/342.page#1706</link>
				<pubDate><![CDATA[Tue, 24 Jul 2007 06:38:00]]> GMT</pubDate>
				<author><![CDATA[ zeeiyer]]></author>
			</item>
			<item>
				<title>Re:can not monitor the JMX port 9520 while the terracotta run on CentOS</title>
				<description><![CDATA[ Also if possible we should try to rule out any network issues.  I know that you said telnet succeeds, but the actual protocol is JMX so there could be other issues causing JMX to not connect that telnet is not helping with.

Would it be possible to run an admin console on the localhost to ensure it works properly from the same machine?]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/342.page#1710</guid>
				<link>http://forums.terracotta.org/forums/posts/list/342.page#1710</link>
				<pubDate><![CDATA[Tue, 24 Jul 2007 07:36:36]]> GMT</pubDate>
				<author><![CDATA[ tgautier]]></author>
			</item>
			<item>
				<title>Re:can not monitor the JMX port 9520 while the terracotta run on CentOS</title>
				<description><![CDATA[ Can you successfully connect using jconsole?
]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/342.page#1718</guid>
				<link>http://forums.terracotta.org/forums/posts/list/342.page#1718</link>
				<pubDate><![CDATA[Tue, 24 Jul 2007 11:57:28]]> GMT</pubDate>
				<author><![CDATA[ gkeim]]></author>
			</item>
			<item>
				<title>Re:can not monitor the JMX port 9520 while the terracotta run on CentOS</title>
				<description><![CDATA[ 
Hi,zeeiyer

<blockquote>I take it that in the tc-config.xml one is not specifying a different port for JMX services (the default is 9520, but you can override it)... &nbsp;
		</blockquote> why?

aside,no matter how many times i try to connect ,what i got is the same message: unable to connect.......

Thx

Joy.Cai]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/342.page#1726</guid>
				<link>http://forums.terracotta.org/forums/posts/list/342.page#1726</link>
				<pubDate><![CDATA[Tue, 24 Jul 2007 18:10:34]]> GMT</pubDate>
				<author><![CDATA[ Joy.Cai]]></author>
			</item>
			<item>
				<title>Re:can not monitor the JMX port 9520 while the terracotta run on CentOS</title>
				<description><![CDATA[ 
Hi tgautier,

maybe we should rule out the network issues,maybe is the network protocol issues.But it is possible to run the admin console on the localhost and it works well.

Thx.

Joy.Cai]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/342.page#1727</guid>
				<link>http://forums.terracotta.org/forums/posts/list/342.page#1727</link>
				<pubDate><![CDATA[Tue, 24 Jul 2007 18:12:59]]> GMT</pubDate>
				<author><![CDATA[ Joy.Cai]]></author>
			</item>
			<item>
				<title>Re:can not monitor the JMX port 9520 while the terracotta run on CentOS</title>
				<description><![CDATA[ Hi gkeim,

i can't connect using jconsole.
]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/342.page#1730</guid>
				<link>http://forums.terracotta.org/forums/posts/list/342.page#1730</link>
				<pubDate><![CDATA[Tue, 24 Jul 2007 18:32:41]]> GMT</pubDate>
				<author><![CDATA[ Joy.Cai]]></author>
			</item>
			<item>
				<title>Re:can not monitor the JMX port 9520 while the terracotta run on CentOS</title>
				<description><![CDATA[ This could be the result of a bad entry in /etc/hosts (see this bug here: <a href='http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6209663' target='_new' rel="nofollow">http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6209663</a>

Hung-
]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/342.page#1731</guid>
				<link>http://forums.terracotta.org/forums/posts/list/342.page#1731</link>
				<pubDate><![CDATA[Tue, 24 Jul 2007 18:46:56]]> GMT</pubDate>
				<author><![CDATA[ hhuynh]]></author>
			</item>
			<item>
				<title>Re:can not monitor the JMX port 9520 while the terracotta run on CentOS</title>
				<description><![CDATA[ There's something incorrect about your networking setup on that machine.  Here's a link to a conversation about the same problem:

http://forum.java.sun.com/thread.jspa?forumID=58&tstart=0&threadID=288759&trange=15

If you can't find anything wrong with your /etc/hosts, you can turn on some JMX RMI logging like so:

% export JAVA_OPTS=-DServerConnectionManager.logLevel=ALL
% $TC_HOME/bin/admin.sh

That may shed a clue.
]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/342.page#1732</guid>
				<link>http://forums.terracotta.org/forums/posts/list/342.page#1732</link>
				<pubDate><![CDATA[Tue, 24 Jul 2007 18:47:21]]> GMT</pubDate>
				<author><![CDATA[ gkeim]]></author>
			</item>
			<item>
				<title>Re:can not monitor the JMX port 9520 while the terracotta run on CentOS</title>
				<description><![CDATA[ 
Thanks.]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/342.page#1734</guid>
				<link>http://forums.terracotta.org/forums/posts/list/342.page#1734</link>
				<pubDate><![CDATA[Tue, 24 Jul 2007 19:09:05]]> GMT</pubDate>
				<author><![CDATA[ Joy.Cai]]></author>
			</item>
			<item>
				<title>Re:can not monitor the JMX port 9520 while the terracotta run on CentOS</title>
				<description><![CDATA[ Hi gkeim, 

i can connect using jconsole now,and can connect using terracotta from centOS to another centOS.

but can't from windows to CentOS.]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/342.page#1736</guid>
				<link>http://forums.terracotta.org/forums/posts/list/342.page#1736</link>
				<pubDate><![CDATA[Tue, 24 Jul 2007 23:31:58]]> GMT</pubDate>
				<author><![CDATA[ Joy.Cai]]></author>
			</item>
			<item>
				<title>Re:can not monitor the JMX port 9520 while the terracotta run on CentOS</title>
				<description><![CDATA[ Check the networking on your Windows machine. I've seen this problem occur when the machine was in the wrong domain or workgroup.
]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/342.page#1751</guid>
				<link>http://forums.terracotta.org/forums/posts/list/342.page#1751</link>
				<pubDate><![CDATA[Wed, 25 Jul 2007 11:26:50]]> GMT</pubDate>
				<author><![CDATA[ gkeim]]></author>
			</item>
			<item>
				<title>Re:can not monitor the JMX port 9520 while the terracotta run on CentOS</title>
				<description><![CDATA[  i can connect using jconsole from windows to CentOS.]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/342.page#1755</guid>
				<link>http://forums.terracotta.org/forums/posts/list/342.page#1755</link>
				<pubDate><![CDATA[Wed, 25 Jul 2007 18:09:13]]> GMT</pubDate>
				<author><![CDATA[ Joy.Cai]]></author>
			</item>
			<item>
				<title>Re:can not monitor the JMX port 9520 while the terracotta run on CentOS</title>
				<description><![CDATA[ 
The problem is solved.
thanks.]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/342.page#1797</guid>
				<link>http://forums.terracotta.org/forums/posts/list/342.page#1797</link>
				<pubDate><![CDATA[Fri, 27 Jul 2007 22:36:12]]> GMT</pubDate>
				<author><![CDATA[ Joy.Cai]]></author>
			</item>
			<item>
				<title>Re:can not monitor the JMX port 9520 while the terracotta run on CentOS</title>
				<description><![CDATA[ Do you mind telling me how you solved the problem?  I would like to be able to help out others that run into the same problem.

Was it related to the network configurations?
]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/342.page#1829</guid>
				<link>http://forums.terracotta.org/forums/posts/list/342.page#1829</link>
				<pubDate><![CDATA[Mon, 30 Jul 2007 17:07:49]]> GMT</pubDate>
				<author><![CDATA[ gkeim]]></author>
			</item>
			<item>
				<title>Re:can not monitor the JMX port 9520 while the terracotta run on CentOS</title>
				<description><![CDATA[ It appears I have a similar problem... what was the resolution?

John]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/342.page#1865</guid>
				<link>http://forums.terracotta.org/forums/posts/list/342.page#1865</link>
				<pubDate><![CDATA[Tue, 31 Jul 2007 13:19:23]]> GMT</pubDate>
				<author><![CDATA[ jeg1972]]></author>
			</item>
			<item>
				<title>Re:can not monitor the JMX port 9520 while the terracotta run on CentOS</title>
				<description><![CDATA[ I saw this sort of behavior in the middle of a presentation at JavaOne this year.  We later fiddled with my firewall settings on my Mac and it immediately connected.

Sadly, I later could not connect and my firewall was disabled so this was indeed not the problem.  But, we suspected the RMI library inside the product that we use to do password authentication of the admin console to the L2.

Right now, I suspect more the localhost port binding.  Try running admin console on the same machine as Terracotta's server process and connecting to localhost.  Next, screenshot the output of "netstat -a -n" for us, and send us your config files so we can see which port you expect JMX services to bind to and which port they are indeed bound to.

Hopefully, we will all find that the interface on which we are listening for connections can sometimes be too restrictive (localhost instead of * -- all interfaces).  

Thanks for your patience,

--Ari]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/342.page#1867</guid>
				<link>http://forums.terracotta.org/forums/posts/list/342.page#1867</link>
				<pubDate><![CDATA[Tue, 31 Jul 2007 14:09:21]]> GMT</pubDate>
				<author><![CDATA[ ari]]></author>
			</item>
			<item>
				<title>Re:can not monitor the JMX port 9520 while the terracotta run on CentOS</title>
				<description><![CDATA[ The RMI server will return the address of whatever your hostname(1) is set to for clients connecting remotely.

An easy test (on Unix or Cygwin/CMD.exe):

telnet `hostname` 9520

If the first line says Trying 127... then your machine thinks that hostname is bound to a loopback address and you will not be able to remotely use the Admin console to monitor your Terracotta server.  (but it will work fine running the Admin console to localhost on the same machine)

If you would  like to resolve this, make sure that whatever name the hostname(1) command returns is resolvable to an external accessible IP address.  

Hope that helps.]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/342.page#1873</guid>
				<link>http://forums.terracotta.org/forums/posts/list/342.page#1873</link>
				<pubDate><![CDATA[Tue, 31 Jul 2007 16:40:11]]> GMT</pubDate>
				<author><![CDATA[ dmangot]]></author>
			</item>
			<item>
				<title>Re:can not monitor the JMX port 9520 while the terracotta run on CentOS</title>
				<description><![CDATA[ Hi gkeim,
 
this is my solution:
config the servers like this:
<span class="genmed"><b>Code:</b></span><br>
		<div>
		<pre bbCodeId="pre-code" style="overflow: auto; width: 95%; max-height: 350px; height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">
 &lt;servers&gt;
    &lt;server host="192.168.0.12" name="server1"&gt;
      &lt;dso-port&gt;9510&lt;/dso-port&gt;
      &lt;jmx-port&gt;9520&lt;/jmx-port&gt;
      &lt;data&gt;data/server-data&lt;/data&gt;
      &lt;logs&gt;logs/server-logs&lt;/logs&gt;
      &lt;l2-group-port&gt;9530&lt;/l2-group-port&gt;
      &lt;dso&gt;
        &lt;persistence&gt;
          &lt;mode&gt;permanent-store&lt;/mode&gt;
        &lt;/persistence&gt;
      &lt;/dso&gt;
    &lt;/server&gt;
    &lt;!--&lt;server host="192.168.0.13" name="server2"&gt;
      &lt;dso-port&gt;9510&lt;/dso-port&gt;
      &lt;jmx-port&gt;9520&lt;/jmx-port&gt;
      &lt;data&gt;data/server-data&lt;/data&gt;
      &lt;logs&gt;logs/server2-logs&lt;/logs&gt;
      &lt;l2-group-port&gt;9530&lt;/l2-group-port&gt;
      &lt;dso&gt;
        &lt;persistence&gt;
          &lt;mode&gt;permanent-store&lt;/mode&gt;
        &lt;/persistence&gt;
      &lt;/dso&gt;
    &lt;/server&gt;--&gt;
    &lt;ha&gt;
      &lt;mode&gt;networked-active-passive&lt;/mode&gt;
      &lt;networked-active-passive&gt;
        &lt;election-time&gt;5&lt;/election-time&gt;
      &lt;/networked-active-passive&gt;
    &lt;/ha&gt;
  &lt;/servers&gt;
</pre>
		</div>

config the clients like this:
<span class="genmed"><b>Code:</b></span><br>
		<div>
		<pre bbCodeId="pre-code" style="overflow: auto; width: 95%; max-height: 350px; height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">
&lt;system&gt;
    &lt;configuration-model&gt;production&lt;/configuration-model&gt;
  &lt;/system&gt;
  &lt;servers&gt;
    &lt;server host="192.168.0.12"&gt;
      &lt;data&gt;data/server-data&lt;/data&gt;
      &lt;logs&gt;logs/server-logs&lt;/logs&gt;
    &lt;/server&gt;
  &lt;/servers&gt;
</pre>
		</div>

and then modify this file start.sh like this:

<span class="genmed"><b>Code:</b></span><br>
		<div>
		<pre bbCodeId="pre-code" style="overflow: auto; width: 95%; max-height: 350px; height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">
TC_SERVER=192.168.0.12
TC_CONFIG_PATH="${TC_SERVER}:9510"
. "${TC_INSTALL_DIR}"/bin/dso-env.sh -q
</pre>
		</div>

but now I got into another problem that after I use the jdk6,my terracotta client can not success to connect to the terracotta server of 192.168.0.12 
why?

thanks.
Joy]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/342.page#1876</guid>
				<link>http://forums.terracotta.org/forums/posts/list/342.page#1876</link>
				<pubDate><![CDATA[Tue, 31 Jul 2007 20:21:18]]> GMT</pubDate>
				<author><![CDATA[ Joy.Cai]]></author>
			</item>
			<item>
				<title>Re:can not monitor the JMX port 9520 while the terracotta run on CentOS</title>
				<description><![CDATA[ OK, my problem seems the same, I'm running two Terracotta servers on two CentOS 4.5 servers.

I'm using the Windows Administrator Console to connect remotely to the two Terracotta servers due to the fact that X is not installed on the two Linux boxes.

The result of netstat -a -n is:

tcp        0      0 :::9520                     :::*                        LISTEN 

When I first tried to run:

 telnet `hostname` 9520

I got:

Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.

Which obviously meant I needed to alter the hosts file, which I did and it now resolves to the IP address of the server.

I'm going to reboot the servers and try again and i'll post back to see if that makes any change.

Regards

John
]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/342.page#1881</guid>
				<link>http://forums.terracotta.org/forums/posts/list/342.page#1881</link>
				<pubDate><![CDATA[Wed, 1 Aug 2007 04:07:31]]> GMT</pubDate>
				<author><![CDATA[ jeg1972]]></author>
			</item>
			<item>
				<title>Re:can not monitor the JMX port 9520 while the terracotta run on CentOS</title>
				<description><![CDATA[ Well, I rebooted the servers, explicitly added the following into both config files:

<jmx-port>9520</jmx-port>

Started everything up as normal, and now I can successfully connect the Administrator Console to the remote Terracotta servers.

So, the only things that I have changed are:

1) Make sure the /etc/hosts entry isn't like the default CentOS installation which is:

127.0.0.1 hostname.domain.local hostname localhost.domain localhost

I changed it to:

127.0.0.1       localhost.domain localhost
192.168.1.X   hostname.domain.local hostname

2) Explicitly add <jmx-port>9520</jmx-port> to the tc-config.xml

That should solve the problem.

Thanks for the help everyone... now back to my original thread :-)

John
]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/342.page#1883</guid>
				<link>http://forums.terracotta.org/forums/posts/list/342.page#1883</link>
				<pubDate><![CDATA[Wed, 1 Aug 2007 05:23:57]]> GMT</pubDate>
				<author><![CDATA[ jeg1972]]></author>
			</item>
			<item>
				<title>Re:can not monitor the JMX port 9520 while the terracotta run on CentOS</title>
				<description><![CDATA[ Well I am glad we know what the problem is and that you are moving forward.

I've added the relevant information into http://jira.terracotta.org/jira/browse/CDV-354.

We'll see if there is anything to be done to make the console work ok on CentOS, if not we'll just know that there is a known issue with CentOS with an easy workaround.]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/342.page#1886</guid>
				<link>http://forums.terracotta.org/forums/posts/list/342.page#1886</link>
				<pubDate><![CDATA[Wed, 1 Aug 2007 07:02:42]]> GMT</pubDate>
				<author><![CDATA[ tgautier]]></author>
			</item>
			<item>
				<title>Re:can not monitor the JMX port 9520 while the terracotta run on CentOS</title>
				<description><![CDATA[ Hi Joy.Cai,

Don't use the shell variable TC_SERVER because that is used to specify that a client should connect to a particular server regardless of what the configuration states, useful for running the samples on multiple nodes to prove that Terracotta works!

http://www.terracotta.org/confluence/display/docs1/Multi-node+Setup

Change it to something like TC_SERVER_HOST.
]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/342.page#1894</guid>
				<link>http://forums.terracotta.org/forums/posts/list/342.page#1894</link>
				<pubDate><![CDATA[Wed, 1 Aug 2007 11:59:22]]> GMT</pubDate>
				<author><![CDATA[ gkeim]]></author>
			</item>
			<item>
				<title>Re:can not monitor the JMX port 9520 while the terracotta run on CentOS</title>
				<description><![CDATA[ OK,thanks.]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/342.page#1903</guid>
				<link>http://forums.terracotta.org/forums/posts/list/342.page#1903</link>
				<pubDate><![CDATA[Wed, 1 Aug 2007 18:48:51]]> GMT</pubDate>
				<author><![CDATA[ Joy.Cai]]></author>
			</item>
	</channel>
</rss>