RE: Tomcat Jconsole

2010-05-19 Thread Caldarale, Charles R
 From: Ozgur Ozdemircili [mailto:ozgur.ozdemirc...@gmail.com]
 Subject: Tomcat Jconsole
 
 Im trying to connect to my tomcat server using Jconsole. I do get
 Connection Failed

What version of Tomcat?  What JVM?

 I have the following parameters in my tomcat startup.sh

You shouldn't be modifying startup.sh; create a setenv.sh script to contain 
environment variable manipulations.

 export CATALINA_OPTS=-XX:MaxPermSize=512m -Xms512m -Xmx2048m -server
  set CATALINA_OPTS=-Dcom.sun.management.jmxremote \
 -Dcom.sun.management.jmxremote.port=8999 \
 -Dcom.sun.management.jmxremote.ssl=false \
 -Dcom.sun.management.jmxremote.authenticate=false

The above looks very broken: you've wiped out the heap size and -server 
settings.

 I can connect locally by openig vnc conneccion yet when I try from my
 workstation it does not connect.

JMX requires use of additional ports that are normally dynamically allocated; 
likely that your firewall is blocking them.  If you're running on a current 
version of Tomcat, look here to get around the problem:

http://tomcat.apache.org/tomcat-6.0-doc/config/listeners.html

See the section describing the JMX Remote Lifecycle Listener.

 When I start tomcat I do not see 8999 open.

Using what to see?

 I see the following error on my catalina out:
 
 java org.apache.catalina.startup.Catalina [ -config {pathname} ]
 [ -nonaming ]  { -help | start | stop }

Why do you think that's an error?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat Jconsole

2010-05-19 Thread Ozgur Ozdemircili
Hi,
Again:

-Rhel 5.3 x64

-java version 1.6.0_16
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) 64-Bit Server VM (build 14.2-b01, mixed mode)

-Apache tomcat 6.0.26

-Dual core Intel(R) Xeon(R) CPU E3110  @ 3.00GHz  and 4 GB memory each.


The startup.sh configuration is not broken. I didnt wipe out anything.

It is not firewall

Im using nmap and netstat to see the connecions open. I do not see the port
open in local, I do not see the port open, logically  from remote.

The error in catalina.out comes up when I add  the jxm options. Since it is
in Catalina.out I am asking if it is important..


Any more ideas?



http://www.mentby.com/caldarale-charles-r/Özgür Özdemircili
http://www.acikkod.org
Code so clean you could eat off it


On Wed, May 19, 2010 at 3:56 PM, Caldarale, Charles R 
chuck.caldar...@unisys.com wrote:

  From: Ozgur Ozdemircili [mailto:ozgur.ozdemirc...@gmail.com]
  Subject: Tomcat Jconsole
 
  Im trying to connect to my tomcat server using Jconsole. I do get
  Connection Failed

 What version of Tomcat?  What JVM?

  I have the following parameters in my tomcat startup.sh

 You shouldn't be modifying startup.sh; create a setenv.sh script to contain
 environment variable manipulations.

  export CATALINA_OPTS=-XX:MaxPermSize=512m -Xms512m -Xmx2048m -server
   set CATALINA_OPTS=-Dcom.sun.management.jmxremote \
  -Dcom.sun.management.jmxremote.port=8999 \
  -Dcom.sun.management.jmxremote.ssl=false \
  -Dcom.sun.management.jmxremote.authenticate=false

 The above looks very broken: you've wiped out the heap size and -server
 settings.

  I can connect locally by openig vnc conneccion yet when I try from my
  workstation it does not connect.

 JMX requires use of additional ports that are normally dynamically
 allocated; likely that your firewall is blocking them.  If you're running on
 a current version of Tomcat, look here to get around the problem:

 http://tomcat.apache.org/tomcat-6.0-doc/config/listeners.html

 See the section describing the JMX Remote Lifecycle Listener.

  When I start tomcat I do not see 8999 open.

 Using what to see?

  I see the following error on my catalina out:
 
  java org.apache.catalina.startup.Catalina [ -config {pathname} ]
  [ -nonaming ]  { -help | start | stop }

 Why do you think that's an error?

  - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you received
 this in error, please contact the sender and delete the e-mail and its
 attachments from all computers.


 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: Tomcat Jconsole

2010-05-19 Thread Hassan Schroeder
On Wed, May 19, 2010 at 6:38 AM, Ozgur Ozdemircili
ozgur.ozdemirc...@gmail.com wrote:

 I have the following parameters in my tomcat startup.sh

ripple:/tmp$ cat testenv
#!/bin/bash

export CATALINA_OPTS=-XX:MaxPermSize=512m -Xms512m -Xmx2048m -server
set CATALINA_OPTS=-Dcom.sun.management.jmxremote \
  -Dcom.sun.management.jmxremote.port=8999 \
  -Dcom.sun.management.jmxremote.ssl=false \
  -Dcom.sun.management.jmxremote.authenticate=false
echo $CATALINA_OPTS
ripple:/tmp$ ./testenv
-XX:MaxPermSize=512m -Xms512m -Xmx2048m -server
ripple:/tmp$ vi testenv
ripple:/tmp$ cat testenv
#!/bin/bash

export CATALINA_OPTS=-XX:MaxPermSize=512m -Xms512m -Xmx2048m -server
export CATALINA_OPTS=$CATALINA_OPTS -Dcom.sun.management.jmxremote \
  -Dcom.sun.management.jmxremote.port=8999 \
  -Dcom.sun.management.jmxremote.ssl=false \
  -Dcom.sun.management.jmxremote.authenticate=false
echo $CATALINA_OPTS
ripple:/tmp$ ./testenv
-XX:MaxPermSize=512m -Xms512m -Xmx2048m -server
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=8999
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
ripple:/tmp$

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat Jconsole

2010-05-19 Thread Caldarale, Charles R
 From: Ozgur Ozdemircili [mailto:ozgur.ozdemirc...@gmail.com]
 Subject: Re: Tomcat Jconsole
 
 -Dual core Intel(R) Xeon(R) CPU E3110  @ 3.00GHz  and 4 GB memory each.

What does each mean?  Is the system running with 4 GB of memory or something 
more?

 The startup.sh configuration is not broken. I didnt wipe out anything.
 export CATALINA_OPTS=-XX:MaxPermSize=512m -Xms512m -Xmx2048m -server
  set CATALINA_OPTS=-Dcom.sun.management.jmxremote \
 -Dcom.sun.management.jmxremote.port=8999 \
 -Dcom.sun.management.jmxremote.ssl=false \
 -Dcom.sun.management.jmxremote.authenticate=false

When you do an export of a variable, followed immediately by a set of the same 
variable, what do you think happens?  (The exact effect depends on the shell 
you're using.)

 I do not see the port open in local, I do not see the 
 port open, logically  from remote.

Because your CATALINA_OPTS settings are not visible.

 The error in catalina.out comes up when I add  the jxm options.
 Since it is in Catalina.out I am asking if it is important..

Again, why do you think it's an error?  Have you compared that catalina.out 
with a normal Tomcat startup?

Is there anything else of interest in the logs (not just catalina.out)?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat Jconsole

2010-05-19 Thread Ozgur Ozdemircili
Hi,

The solution that Hassan sent worked.

Thanks a  lot.



Özgür Özdemircili
http://www.acikkod.org
Code so clean you could eat off it


On Wed, May 19, 2010 at 5:28 PM, Caldarale, Charles R 
chuck.caldar...@unisys.com wrote:

  From: Ozgur Ozdemircili [mailto:ozgur.ozdemirc...@gmail.com]
  Subject: Re: Tomcat Jconsole
 
  -Dual core Intel(R) Xeon(R) CPU E3110  @ 3.00GHz  and 4 GB memory each.

 What does each mean?  Is the system running with 4 GB of memory or
 something more?

  The startup.sh configuration is not broken. I didnt wipe out anything.
  export CATALINA_OPTS=-XX:MaxPermSize=512m -Xms512m -Xmx2048m -server
   set CATALINA_OPTS=-Dcom.sun.management.jmxremote \
  -Dcom.sun.management.jmxremote.port=8999 \
  -Dcom.sun.management.jmxremote.ssl=false \
  -Dcom.sun.management.jmxremote.authenticate=false

 When you do an export of a variable, followed immediately by a set of the
 same variable, what do you think happens?  (The exact effect depends on the
 shell you're using.)

  I do not see the port open in local, I do not see the
  port open, logically  from remote.

 Because your CATALINA_OPTS settings are not visible.

  The error in catalina.out comes up when I add  the jxm options.
  Since it is in Catalina.out I am asking if it is important..

 Again, why do you think it's an error?  Have you compared that catalina.out
 with a normal Tomcat startup?

 Is there anything else of interest in the logs (not just catalina.out)?

  - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you received
 this in error, please contact the sender and delete the e-mail and its
 attachments from all computers.


 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: Tomcat JConsole

2008-08-14 Thread Johnny Kewl


- Original Message - 
From: Tokajac [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Thursday, August 14, 2008 4:24 PM
Subject: Tomcat JConsole




How can i monitor Tomcat with JConsole?


I found sg like:
$ CATALINA_OPTS=-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=8999
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
-Djava.rmi.server.hostname=test-idc.internet2.edu;
$ export CATALINA_OPTS;

and i put that in catalina.but, but so far i have no success with the
configuration.

If sy has experience with this set up, please write down the step by step
process. Thx!


Regards
--
View this message in context: 
http://www.nabble.com/Tomcat-JConsole-tp18982597p18982597.html

Sent from the Tomcat - User mailing list archive at Nabble.com.


I use the windows TC service JAVA tab console... but what you doing should 
be OK


I add...

-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=9004
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false

Then go to the Java JRE bin... start JConsole... give it the PORT ...

and TC starts talking to me ;)

v easy ;)

---
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
--- 



-
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: Tomcat JConsole

2008-08-14 Thread Sam Wun
Hi,

I m using Eclipse 3.4 (in Vista) and Tomcat 5.5 (in linux) as J2EE
development environment.
I want to build a online order form to interact with backend database in linux.
I know I can use dreamweaver to create web page (html template), but I
don't know how to use it and dont' have the time to learn it.
Is there any standard jsp package or library I can use from Eclipse or
Tomcat to build an online order form? How about Struts or Springs
library?

Your suggestion is highly appreciated.

Thanks

-
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: Tomcat JConsole

2008-08-14 Thread Tokajac

I appreciate Your answer a lot, Johnny!

Can U provide me more details about configuring? 
Which file should be edited? 
Where is the right place to put  
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=9004
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false 
?
Which .exe or .java file needs to be started?


Regards
-- 
View this message in context: 
http://www.nabble.com/Tomcat-JConsole-tp18982597p18985026.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
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: Tomcat JConsole

2008-08-14 Thread Caldarale, Charles R
 From: Tokajac [mailto:[EMAIL PROTECTED]
 Subject: Tomcat JConsole

 $ CATALINA_OPTS=-Dcom.sun.management.jmxremote
 -Dcom.sun.management.jmxremote.port=8999
 -Dcom.sun.management.jmxremote.ssl=false
 -Dcom.sun.management.jmxremote.authenticate=false
 -Djava.rmi.server.hostname=test-idc.internet2.edu;
 $ export CATALINA_OPTS;

 and i put that in catalina.but

What platform are you on?  The first part of your settings is for Linux/UNIX, 
but catalina.bat is for Windows.  How are you starting Tomcat?

If Tomcat and JConsole are running on the same box, all you need is the 
-Dcom.sun.management.jmxremote; the other parts are for remote monitoring only. 
 You do not need the java.rmi setting at all.

To monitor a Tomcat on Linux, I do the following before running startup.sh:

export CATALINA_OPTS=-Dcom.sun.management.jmxremote.port=8999 
-Dcom.sun.management.jmxremote.ssl=false 
-Dcom.sun.management.jmxremote.authenticate=false

(All of the above is on one line, of course.)

Once Tomcat is running, I start JConsole on my Windows box, and simply enter 
host:8999 in the Remote Process slot of the New Connection dialog box.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
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: Tomcat JConsole

2008-08-14 Thread Tokajac

Finally i started with monitoring 


I was trying to start a remote monitoring with IP address:port
Instead of that now i'm using the local monitoring of
org.apache.catalina.startup.Bootstrap start


Details which regard the discussion: 

Windows XP; apache-tomcat-5.5.26; jdk1.6.0_07; jre1.6.0_07;

There is default configuration for Tomcat server (i unzipped it only) + copy
the necessary .jar files to 
{TomcatHome}\common\lib\folder

I started Tomcat via {TomcatHome}\bin\startup.bat, i go to Program
Files\Java\jdk1.6.0_07\bin\ and 
type: jconsole 

and now chose Local process!


Regards











What platform are you on?  The first part of your settings is for
Linux/UNIX, but catalina.bat is for Windows.  How are you starting Tomcat?

If Tomcat and JConsole are running on the same box, all you need is the
-Dcom.sun.management.jmxremote; the other parts are for remote monitoring
only.  You do not need the java.rmi setting at all.

To monitor a Tomcat on Linux, I do the following before running startup.sh:

export CATALINA_OPTS=-Dcom.sun.management.jmxremote.port=8999
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false

(All of the above is on one line, of course.)

Once Tomcat is running, I start JConsole on my Windows box, and simply enter
host:8999 in the Remote Process slot of the New Connection dialog box.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.

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




-- 
View this message in context: 
http://www.nabble.com/Tomcat-JConsole-tp18982597p18985903.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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