Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 558 invoked from network); 23 Dec 2010 10:52:08 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Dec 2010 10:52:08 -0000 Received: (qmail 14719 invoked by uid 500); 23 Dec 2010 10:52:05 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 14522 invoked by uid 500); 23 Dec 2010 10:52:04 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 14513 invoked by uid 99); 23 Dec 2010 10:52:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Dec 2010 10:52:04 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [93.183.12.31] (HELO demumfd002.nsn-inter.net) (93.183.12.31) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Dec 2010 10:51:58 +0000 Received: from demuprx017.emea.nsn-intra.net ([10.150.129.56]) by demumfd002.nsn-inter.net (8.12.11.20060308/8.12.11) with ESMTP id oBNApbp2004308 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 23 Dec 2010 11:51:37 +0100 Received: from demuexc025.nsn-intra.net (demuexc025.nsn-intra.net [10.159.32.12]) by demuprx017.emea.nsn-intra.net (8.12.11.20060308/8.12.11) with ESMTP id oBNApbXX016298 for ; Thu, 23 Dec 2010 11:51:37 +0100 Received: from SGSIEXC018.nsn-intra.net ([10.159.224.11]) by demuexc025.nsn-intra.net with Microsoft SMTPSVC(6.0.3790.4675); Thu, 23 Dec 2010 11:51:34 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RETomcat Load Balancing Date: Thu, 23 Dec 2010 18:51:30 +0800 Message-ID: In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: RETomcat Load Balancing Thread-Index: AcuiiIUGLpyg6nRHTM6Nt9xEcCF3YQABkE8A References: <4D131463.4050900@ice-sa.com> From: "Singh, Harsimranjit (NSN - IN/Bangalore)" To: "Tomcat Users List" X-OriginalArrivalTime: 23 Dec 2010 10:51:34.0310 (UTC) FILETIME=[5D834C60:01CBA28F] X-Virus-Checked: Checked by ClamAV on apache.org Hi=20 I am able to test load balancing and clustering with multiple tomcat = instances using rule.xml.but when tomcat balancer redirect requests to = tomcat cluster instance ist displays port of tomcat cluster.So am not = able redirection display clearly details of new tomcate How I can resolve it! Thanks -----Original Message----- From: ext Adib [mailto:amslist@gmail.com]=20 Sent: Thursday, December 23, 2010 3:32 PM To: Tomcat Users List Subject: Re: Problem connecting to tomcat6 service via JConsole on = Windows Server 2008 The local process option seems to be a hit and miss on various versions = of windows, it was not working. Also the local process option only works if jconsole is running the same userid as process you want to connect to, = which is not the case in my tomcat setup which is running as a service. I tested my setup on my Vista 64 bit laptop an it worked which narrowed = the problem down to something about Windows Server 2008 R2. A bit more googling led me this problem repot http://tai-dev.blog.co.uk/2010/03/26/glassfish-jmx-and-windows-web-server= -2008-can-play-together-with-a-few-tweaks-here-s-how-plus-bonus-jconsole-= config-info-8251001/ and the fix was to add -Djava.rmi.server.hostname=3D127.0.0.1 to my = command line options for the service. I have no idea why this setting fixes the problem but it does. Has anyone found any good documentation on how JVM instrumentation works = and why it is so troublesome to connect to an instrumented hotspot vm. On Thu, Dec 23, 2010 at 1:20 AM, Andr=E9 Warnier wrote: > Shortly : > If you are local, then you can use the "Local process" option in = jconsole. > > Otherwise : as far as I remember, the jmx connection really uses 2 = ports, > not only the one you obviously connect to. And that second port is = random, > which is what makes it difficult to connect through a firewall or so. > Maybe it is that second port that is blocked in your case ? > Have another look with tcpview while you are trying to connect, if you = do > not see some new LISTEN port appear during the connection attempt. > > > > Adib wrote: > >> Hi, >> >> I am having a problem connecting to Tomcat 6 running as a service on >> Windows >> Server 2008 R2. Here are the details of my setup. >> >> 32 Bit JDK 1.6._23 >> 64 Bit Windows Server 2008 R2 >> >> My jakarta service log shows that I am setting the jvm properties to = turn >> on >> jmx remote access to the JVM >> >> [2010-12-22 23:22:21] [447 javajni.c] [debug] Jvm Option[6] >> -Dcom.sun.management.jmxremote >> [2010-12-22 23:22:21] [447 javajni.c] [debug] Jvm Option[7] >> -Dcom.sun.management.jmxremote.port=3D8999 >> [2010-12-22 23:22:21] [447 javajni.c] [debug] Jvm Option[8] >> -Dcom.sun.management.jmxremote.ssl=3Dfalse >> [2010-12-22 23:22:21] [447 javajni.c] [debug] Jvm Option[9] >> -Dcom.sun.management.jmxremote.authenticate=3Dfalse >> >> I am running jconsole on the same machine that is running tomcat so I = am >> not >> trying to connect remotely and should >> not have any problems with ports I even turned off the windows = firewall on >> the machine to make sure it was not getting >> in the way >> >> systernals tcpview shows that tomact6.exe is listening on port 8999 >> >> I am running tomact6 service as the user pmtomact >> >> I am running jconsole as the user Administrator >> >> on the jconsole I tried localhost:8999 and it tries to connect for a = while >> then reports that it can can not connect. >> >> I tried running tomcat as user administrator just starting from the >> startup.bat with the proper jmx paramters and it does not work = either. >> >> I tried running jconsole as pmtomcat user still no luck connecting >> >> I tried creating a directory under >> C:\Users\pmtomcat\AppData\Local\Temp\hsperfdata_pmtomcat and checked = that >> the directory was writable by the pmtomcat user still it does not = work. >> >> Any ideas of how I can troubleshoot this problem, it is driving me = crazy? >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org