-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Howard,

On 3/6/13 12:10 AM, Howard W. Smith, Jr. wrote:
> Chris,
> 
> On Wed, Mar 6, 2013 at 12:56 AM, Christopher Schultz < 
> ch...@christopherschultz.net> wrote:
> 
> Howard,
> 
> On 3/5/13 6:15 PM, Howard W. Smith, Jr. wrote:
>>>> anyway/also, i am able to monitor tomee/tomcat (and do thread
>>>> dumps against tomcat/tomee running as windows service) via
>>>> JMX and Java Visual VM (jvisualvm, bundled with Java 7 SDK),
>>>> since I added the following options on the Java tab in
>>>> tomcat7w.exe:
>>>> 
>>>> -Dcom.sun.management.jmxremote.port=427 
>>>> -Dcom.sun.management.jmxremote.ssl=false 
>>>> -Dcom.sun.management.jmxremote.authenticate=false
> 
> FWIW, if you are on localhost, (JVisualVM, etc.) should be able to
> use the Attach API to connect -- no actual JMX configuration is
> needed.
> 
> -chris
> 
> 
>> Sorry, I am not familiar with Attach API at the moment, and
>> JVisualVM is not able to attach to my tomcat/tomee JVM (running
>> as Windows service or not) unless I provide those java options
>> and I specify port in JavaVisualVM.
> 
>> Maybe NetBeans is using Attach API, because NetBeans always shows
>> up in JVisualVM, if I have the two open on the same box (have
>> seen this on development server and production server) .
> 
>> I only use JVisualVM on localhost (behind a firewall), and
>> Windows Server 2008 (non-R2 and R2) running on both development
>> and production servers. :)

Try running JVisualVM as administrator. I'm not sure if that is even
high enough privileges on Microsoft Windows... MS has some odd
permissions when it comes to "Services".

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEAREIAAYFAlE4HuYACgkQ9CaO5/Lv0PAPcQCdGDNxCTSjRPPzdQdiebKpA5+r
yJQAniCzBwC0SUzgiDj1A35D09GyspIV
=q0vP
-----END PGP SIGNATURE-----

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

Reply via email to