Re: problem in running Jconsole remotely --Connection refused

2008-10-02 Thread Kees Jan Koster

Dear Subhrajyoti,


  I am facing problem in running Jconsole remotely . In my
machine from where I am running Jconsole I have jdk1.6...I am trying  
to
connect to TOmcat6.0.18 running on a windows 2003 server  
machine(with JDK
1,5) ...I have a batch file with the following contents : When I  
execute

the batch file Tomcat is starting okay. But when I am trying to run
Jconsole to connect to the Tomcat , I am always getting a connection
refused  error. I think I have set up the parameters correctly here ?
Apart from this all the .bat files that comses bundled with  
Tomcat6.0.18
are kept same.  I can ping the server from my machine without any  
problem

.


JConsole remotely is a problem. Recently I have started work on an on- 
line monitoring tool that allows you to monitor memory and threads  
without any firewall trickery.


If you register at http://java-monitor.com, you can download a small  
WAR file (~35kB) that will collect the memory stats. Read more on http://java-monitor.com/install.html


Oh, it also does thread deadlock detection, but that's just a  
freebie. ;-)

--
Kees Jan

http://java-monitor.com/forum/
[EMAIL PROTECTED]
06-51838192

The secret of success lies in the stability of the goal. -- Benjamin  
Disraeli



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



problem in running Jconsole remotely --Connection refused

2008-09-30 Thread Choudhury
Guys,
   I am facing problem in running Jconsole remotely . In my 
machine from where I am running Jconsole I have jdk1.6...I am trying to 
connect to TOmcat6.0.18 running on a windows 2003 server machine(with JDK 
1,5) ...I have a batch file with the following contents : When I execute 
the batch file Tomcat is starting okay. But when I am trying to run 
Jconsole to connect to the Tomcat , I am always getting a connection 
refused  error. I think I have set up the parameters correctly here ? 
Apart from this all the .bat files that comses bundled with Tomcat6.0.18 
are kept same.  I can ping the server from my machine without any problem 
.

set path=C:\PROGRA~1\Java\jdk1.5.0_05\bin
set JAVA_HOME=C:\PROGRA~1\Java\jdk1.5.0_05
set JAVA_OPTS=-Xms1024m -Xmx1024m
set CATALINA_OPTS=-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
SET CATALINA_HOME=E:\AppServer\tomcat\tomcat6.0.18
CD bin
startup

BTW there is no problem in connecting locally ...But I don't want that 
because I want to monitor TOmcat while a load test is on . So resources 
should be used sparingly in  the server .

Please suggest the way to generate any extra debug info that I can get to 
see why this connection refused error is happening . 


Regards,

Subhrajyoti 
Mobile: +919830079545
Mail: [EMAIL PROTECTED]
Web: www.labware.com

LabWare LIMS Solutions - Results Count

Re: problem in running Jconsole remotely --Connection refused

2008-09-30 Thread Mark Thomas
[EMAIL PROTECTED] wrote:
 Guys,
I am facing problem in running Jconsole remotely . In my 
 machine from where I am running Jconsole I have jdk1.6...I am trying to 
 connect to TOmcat6.0.18 running on a windows 2003 server machine(with JDK 
 1,5) ...I have a batch file with the following contents : When I execute 
 the batch file Tomcat is starting okay. But when I am trying to run 
 Jconsole to connect to the Tomcat , I am always getting a connection 
 refused  error. I think I have set up the parameters correctly here ? 
 Apart from this all the .bat files that comses bundled with Tomcat6.0.18 
 are kept same.  I can ping the server from my machine without any problem 
 .
 
 set path=C:\PROGRA~1\Java\jdk1.5.0_05\bin
 set JAVA_HOME=C:\PROGRA~1\Java\jdk1.5.0_05
 set JAVA_OPTS=-Xms1024m -Xmx1024m
 set CATALINA_OPTS=-Dcom.sun.management.jmxremote
 -Dcom.sun.management.jmxremote.port=
 -Dcom.sun.management.jmxremote.ssl=false
 -Dcom.sun.management.jmxremote.authenticate=false
 SET CATALINA_HOME=E:\AppServer\tomcat\tomcat6.0.18
 CD bin
 startup
 
 BTW there is no problem in connecting locally ...But I don't want that 
 because I want to monitor TOmcat while a load test is on . So resources 
 should be used sparingly in  the server .
 
 Please suggest the way to generate any extra debug info that I can get to 
 see why this connection refused error is happening . 

Have a look at this thread:
http://markmail.org/message/r4lwb4ipa6ssaawy

The second port is probably blocked by a firewall.

The Listener I refer to is now in svn. See:
http://svn.apache.org/viewvc?rev=699523view=rev

Mark



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: problem in running Jconsole remotely --Connection refused

2008-09-30 Thread Choudhury
Have a look at this thread:
http://markmail.org/message/r4lwb4ipa6ssaawy

The second port is probably blocked by a firewall.
 I am not a system guy and have no idea about firewalls..It is a default 
Windows 2003 Server set up .So I am assuming that whatever is there is 
there by default and no further tweaking to the server was done . So do 
you think the default configuration can block the dynamically alloted port 
? 

The Listener I refer to is now in svn. See:
http://svn.apache.org/viewvc?rev=699523view=rev
So how woud I make it to work with the existing  tomcat 6.0.18 ?  How long 
would I have to wait to get it out of the box ( ie 6.0.19+)?

Regards,

Subhrajyoti 
Mobile: +919830079545
Mail: [EMAIL PROTECTED]
Web: www.labware.com

LabWare LIMS Solutions - Results Count



Mark Thomas [EMAIL PROTECTED] 
09/30/2008 04:34 PM
Please respond to
Tomcat Users List users@tomcat.apache.org


To
Tomcat Users List users@tomcat.apache.org
cc

Subject
Re: problem in running Jconsole remotely --Connection refused






[EMAIL PROTECTED] wrote:
 Guys,
I am facing problem in running Jconsole remotely . In my 
 machine from where I am running Jconsole I have jdk1.6...I am trying to 
 connect to TOmcat6.0.18 running on a windows 2003 server machine(with 
JDK 
 1,5) ...I have a batch file with the following contents : When I execute 

 the batch file Tomcat is starting okay. But when I am trying to run 
 Jconsole to connect to the Tomcat , I am always getting a connection 
 refused  error. I think I have set up the parameters correctly here ? 
 Apart from this all the .bat files that comses bundled with Tomcat6.0.18 

 are kept same.  I can ping the server from my machine without any 
problem 
 .
 
 set path=C:\PROGRA~1\Java\jdk1.5.0_05\bin
 set JAVA_HOME=C:\PROGRA~1\Java\jdk1.5.0_05
 set JAVA_OPTS=-Xms1024m -Xmx1024m
 set CATALINA_OPTS=-Dcom.sun.management.jmxremote
 -Dcom.sun.management.jmxremote.port=
 -Dcom.sun.management.jmxremote.ssl=false
 -Dcom.sun.management.jmxremote.authenticate=false
 SET CATALINA_HOME=E:\AppServer\tomcat\tomcat6.0.18
 CD bin
 startup
 
 BTW there is no problem in connecting locally ...But I don't want that 
 because I want to monitor TOmcat while a load test is on . So resources 
 should be used sparingly in  the server .
 
 Please suggest the way to generate any extra debug info that I can get 
to 
 see why this connection refused error is happening . 

Have a look at this thread:
http://markmail.org/message/r4lwb4ipa6ssaawy

The second port is probably blocked by a firewall.

The Listener I refer to is now in svn. See:
http://svn.apache.org/viewvc?rev=699523view=rev

Mark



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: problem in running Jconsole remotely --Connection refused

2008-09-30 Thread Mark Thomas
[EMAIL PROTECTED] wrote:
 Have a look at this thread:
 http://markmail.org/message/r4lwb4ipa6ssaawy
 
 The second port is probably blocked by a firewall.
 I am not a system guy and have no idea about firewalls..It is a default 
 Windows 2003 Server set up .So I am assuming that whatever is there is 
 there by default and no further tweaking to the server was done . So do 
 you think the default configuration can block the dynamically alloted port 
 ?
No idea. Use netstat to find out what port it is using and then talk to
your network support folks.

 The Listener I refer to is now in svn. See:
 http://svn.apache.org/viewvc?rev=699523view=rev
 So how woud I make it to work with the existing  tomcat 6.0.18 ? 
In theory, if you download and compile trunk, you should be able to add the
three new files (2 class files and one properties file) for the listener to
$CATALINA_HOME/lib/org/apache/catalina/mbeans

 How long 
 would I have to wait to get it out of the box ( ie 6.0.19+)?
I need to propose it for 6.0.19 and then it needs 3 more +1 votes than -1
votes before it gets added. There also needs to be a 6.0.19 release for
which there are no plans at present.

Mark



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: problem in running Jconsole remotely --Connection refused

2008-09-30 Thread Choudhury
No idea. Use netstat to find out what port it is using and then talk to
your network support folks.
 When the Tomcat server has started with the JMX agent attched to the 
JVM( Which I suppose it does) , I did a netstat at the server machine and 
nowhere I saw any entries with the port that I mentioned during startup of 
the JVM( with the -Dcom.sun.management.jmxremote.port=)...Should I 
netstat at the client machine also ( where Jconsole is running)after 
staring Jconsole?

Regards,

Subhrajyoti 
Mobile: +919830079545
Mail: [EMAIL PROTECTED]
Web: www.labware.com

LabWare LIMS Solutions - Results Count



Mark Thomas [EMAIL PROTECTED] 
09/30/2008 06:12 PM
Please respond to
Tomcat Users List users@tomcat.apache.org


To
Tomcat Users List users@tomcat.apache.org
cc

Subject
Re: problem in running Jconsole remotely --Connection refused






[EMAIL PROTECTED] wrote:
 Have a look at this thread:
 http://markmail.org/message/r4lwb4ipa6ssaawy
 
 The second port is probably blocked by a firewall.
 I am not a system guy and have no idea about firewalls..It is a 
default 
 Windows 2003 Server set up .So I am assuming that whatever is there is 
 there by default and no further tweaking to the server was done . So do 
 you think the default configuration can block the dynamically alloted 
port 
 ?
No idea. Use netstat to find out what port it is using and then talk to
your network support folks.

 The Listener I refer to is now in svn. See:
 http://svn.apache.org/viewvc?rev=699523view=rev
 So how woud I make it to work with the existing  tomcat 6.0.18 ? 
In theory, if you download and compile trunk, you should be able to add 
the
three new files (2 class files and one properties file) for the listener 
to
$CATALINA_HOME/lib/org/apache/catalina/mbeans

 How long 
 would I have to wait to get it out of the box ( ie 6.0.19+)?
I need to propose it for 6.0.19 and then it needs 3 more +1 votes than -1
votes before it gets added. There also needs to be a 6.0.19 release for
which there are no plans at present.

Mark



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]