You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Erez Naim <er...@theneura.com> on 2015/02/15 10:23:04 UTC

JMX Connection

Hello all, 

 

I am using amazon Java machine (Tomcat was installed on that machine) and I
am trying to connect to JvisualVM from my local machine (I've configured JMX
properties as follows: 

CATALINA_OPTS="-Djava.awt.headless=true -Xmx128M

-server -Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=<port>

-Dcom.sun.management.jmxremote.authenticate=false

-Dcom.sun.management.jmxremote.ssl=false"

 

And I enabled the specific port (I used telnet from my local machine to the
remote one and it connected)). 

 

Still I cannot use JvisualVM in order to monitor the remote application
server. 

 

Any idea how to solve it? 

 

Cheers! 

 


Erez Naim  |  QA Lead  |
<http://www.linkedin.com/profile/view?id=34323263>
<http://www.theneura.com/vCards/gilad.vcf>
<http://twitter.com/#!/giladmeiri/>   




EL AL 2 Street | Herzliya  
mobile (+972) 50 9 555 686 | fax (408) 689.1366 | skype erez.neura

 


 <http://www.theneura.com/> website  |   <http://www.startupbitz.com/> blog
|   <https://twitter.com/intent/user?screen_name=theneura> twitter  |
<http://goo.gl/maps/ZRkg5> map    

 

 


RE: JMX Connection

Posted by Erez Naim <er...@theneura.com>.
This is what I put under my setenv.sh file in tomcat bin folder:

CATALINA_OPTS="-Dcom.sun.management.jmxremote 
-Dcom.sun.management.jmxremote.port=XXXX 
-Dcom.sun.management.jmxremote.authenticate=false 
-Djava.rmi.server.hostname=XX.XXX.XXX.XXX 
-Dcom.sun.management.jmxremote.ssl=false"

-----Original Message-----
From: Kirk Pepperdine [mailto:kirk.pepperdine@gmail.com] 
Sent: Monday, February 16, 2015 10:43 AM
To: JMeter Users List
Subject: Re: JMX Connection

Hi,

You might not have enough settings to make it all work.

-Dcom.sun.management.jmxremote
-Djava.rmi.server.hostname=127.0.0.1
-Dcom.sun.management.jmxremote.port=<port>
-Dcom.sun.management.jmxremote.local.only=false
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false

HTH,
Kirk




On Feb 15, 2015, at 4:07 PM, Erez Naim <er...@theneura.com> wrote:

> Already did this with JvisualVM I am using java 6 on both remote and local
machine (remote is AWS machine, I've opened all relevant ports and checked
that it listen as well for my local machine and it does...) the problem
consist however... 
> 
> Cheers old buddy :)
> 
> -----Original Message-----
> From: Shmuel Krakower [mailto:shmulikk@gmail.com]
> Sent: Sunday, February 15, 2015 4:45 PM
> To: JMeter Users List
> Subject: Re: JMX Connection
> 
> Try using JConsole and see if that works for you.
> If it does and you still need VisualVM - you are most likely trying to
connect with the wrong feature (common pitfall).
> In VisualVM - click File -> Add JMX Connection... - this is the one you
should use.
> 
> Shmuel Krakower.
> www.Beatsoo.org - re-use your jmeter scripts for application performance
monitoring from worldwide locations for free.
> 
> On Sun, Feb 15, 2015 at 11:23 AM, Erez Naim <er...@theneura.com> wrote:
> 
>> Hello all,
>> 
>> 
>> 
>> I am using amazon Java machine (Tomcat was installed on that machine) 
>> and I am trying to connect to JvisualVM from my local machine (I've 
>> configured JMX properties as follows:
>> 
>> CATALINA_OPTS="-Djava.awt.headless=true -Xmx128M
>> 
>> -server -Dcom.sun.management.jmxremote 
>> -Dcom.sun.management.jmxremote.port=<port>
>> 
>> -Dcom.sun.management.jmxremote.authenticate=false
>> 
>> -Dcom.sun.management.jmxremote.ssl=false"
>> 
>> 
>> 
>> And I enabled the specific port (I used telnet from my local machine 
>> to the remote one and it connected)).
>> 
>> 
>> 
>> Still I cannot use JvisualVM in order to monitor the remote 
>> application server.
>> 
>> 
>> 
>> Any idea how to solve it?
>> 
>> 
>> 
>> Cheers!
>> 
>> 
>> 
>> Erez Naim  |  QA Lead  |   [image: LinkedIn]
>> <http://www.linkedin.com/profile/view?id=34323263>  [image: vCard] 
>> <http://www.theneura.com/vCards/gilad.vcf>  [image: Twitter] 
>> <http://twitter.com/#!/giladmeiri/>
>> 
>> [image: cid:image004.png@01D01E1B.5F153500]
>> 
>> EL AL 2 Street | Herzliya
>> mobile (+972) 50 9 555 686 | fax (408) 689.1366 | skype erez.neura
>> 
>> 
>> 
>> website <http://www.theneura.com/>  |  blog 
>> <http://www.startupbitz.com/>  |  twitter 
>> <https://twitter.com/intent/user?screen_name=theneura>  |  map 
>> <http://goo.gl/maps/ZRkg5>
>> 
>> 
>> 
>> 
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Re: JMX Connection

Posted by Kirk Pepperdine <ki...@gmail.com>.
Hi,

You might not have enough settings to make it all work.

-Dcom.sun.management.jmxremote
-Djava.rmi.server.hostname=127.0.0.1
-Dcom.sun.management.jmxremote.port=<port>
-Dcom.sun.management.jmxremote.local.only=false
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false

HTH,
Kirk




On Feb 15, 2015, at 4:07 PM, Erez Naim <er...@theneura.com> wrote:

> Already did this with JvisualVM I am using java 6 on both remote and local machine (remote is AWS machine, I've opened all relevant ports and checked that it listen as well for my local machine and it does...) the problem consist however... 
> 
> Cheers old buddy :) 
> 
> -----Original Message-----
> From: Shmuel Krakower [mailto:shmulikk@gmail.com] 
> Sent: Sunday, February 15, 2015 4:45 PM
> To: JMeter Users List
> Subject: Re: JMX Connection
> 
> Try using JConsole and see if that works for you.
> If it does and you still need VisualVM - you are most likely trying to connect with the wrong feature (common pitfall).
> In VisualVM - click File -> Add JMX Connection... - this is the one you should use.
> 
> Shmuel Krakower.
> www.Beatsoo.org - re-use your jmeter scripts for application performance monitoring from worldwide locations for free.
> 
> On Sun, Feb 15, 2015 at 11:23 AM, Erez Naim <er...@theneura.com> wrote:
> 
>> Hello all,
>> 
>> 
>> 
>> I am using amazon Java machine (Tomcat was installed on that machine) 
>> and I am trying to connect to JvisualVM from my local machine (I've 
>> configured JMX properties as follows:
>> 
>> CATALINA_OPTS="-Djava.awt.headless=true -Xmx128M
>> 
>> -server -Dcom.sun.management.jmxremote 
>> -Dcom.sun.management.jmxremote.port=<port>
>> 
>> -Dcom.sun.management.jmxremote.authenticate=false
>> 
>> -Dcom.sun.management.jmxremote.ssl=false"
>> 
>> 
>> 
>> And I enabled the specific port (I used telnet from my local machine 
>> to the remote one and it connected)).
>> 
>> 
>> 
>> Still I cannot use JvisualVM in order to monitor the remote 
>> application server…
>> 
>> 
>> 
>> Any idea how to solve it?
>> 
>> 
>> 
>> Cheers!
>> 
>> 
>> 
>> Erez Naim  |  QA Lead  |   [image: LinkedIn]
>> <http://www.linkedin.com/profile/view?id=34323263>  [image: vCard] 
>> <http://www.theneura.com/vCards/gilad.vcf>  [image: Twitter] 
>> <http://twitter.com/#!/giladmeiri/>
>> 
>> [image: cid:image004.png@01D01E1B.5F153500]
>> 
>> EL AL 2 Street | Herzliya
>> mobile (+972) 50 9 555 686 | fax (408) 689.1366 | skype erez.neura
>> 
>> 
>> 
>> website <http://www.theneura.com/>  |  blog 
>> <http://www.startupbitz.com/>  |  twitter 
>> <https://twitter.com/intent/user?screen_name=theneura>  |  map 
>> <http://goo.gl/maps/ZRkg5>
>> 
>> 
>> 
>> 
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


RE: JMX Connection

Posted by Erez Naim <er...@theneura.com>.
Already did this with JvisualVM I am using java 6 on both remote and local machine (remote is AWS machine, I've opened all relevant ports and checked that it listen as well for my local machine and it does...) the problem consist however... 

Cheers old buddy :) 

-----Original Message-----
From: Shmuel Krakower [mailto:shmulikk@gmail.com] 
Sent: Sunday, February 15, 2015 4:45 PM
To: JMeter Users List
Subject: Re: JMX Connection

Try using JConsole and see if that works for you.
If it does and you still need VisualVM - you are most likely trying to connect with the wrong feature (common pitfall).
In VisualVM - click File -> Add JMX Connection... - this is the one you should use.

Shmuel Krakower.
www.Beatsoo.org - re-use your jmeter scripts for application performance monitoring from worldwide locations for free.

On Sun, Feb 15, 2015 at 11:23 AM, Erez Naim <er...@theneura.com> wrote:

> Hello all,
>
>
>
> I am using amazon Java machine (Tomcat was installed on that machine) 
> and I am trying to connect to JvisualVM from my local machine (I've 
> configured JMX properties as follows:
>
> CATALINA_OPTS="-Djava.awt.headless=true -Xmx128M
>
> -server -Dcom.sun.management.jmxremote 
> -Dcom.sun.management.jmxremote.port=<port>
>
> -Dcom.sun.management.jmxremote.authenticate=false
>
> -Dcom.sun.management.jmxremote.ssl=false"
>
>
>
> And I enabled the specific port (I used telnet from my local machine 
> to the remote one and it connected)).
>
>
>
> Still I cannot use JvisualVM in order to monitor the remote 
> application server…
>
>
>
> Any idea how to solve it?
>
>
>
> Cheers!
>
>
>
> Erez Naim  |  QA Lead  |   [image: LinkedIn]
> <http://www.linkedin.com/profile/view?id=34323263>  [image: vCard] 
> <http://www.theneura.com/vCards/gilad.vcf>  [image: Twitter] 
> <http://twitter.com/#!/giladmeiri/>
>
> [image: cid:image004.png@01D01E1B.5F153500]
>
> EL AL 2 Street | Herzliya
> mobile (+972) 50 9 555 686 | fax (408) 689.1366 | skype erez.neura
>
>
>
> website <http://www.theneura.com/>  |  blog 
> <http://www.startupbitz.com/>  |  twitter 
> <https://twitter.com/intent/user?screen_name=theneura>  |  map 
> <http://goo.gl/maps/ZRkg5>
>
>
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Re: JMX Connection

Posted by Shmuel Krakower <sh...@gmail.com>.
Try using JConsole and see if that works for you.
If it does and you still need VisualVM - you are most likely trying to
connect with the wrong feature (common pitfall).
In VisualVM - click File -> Add JMX Connection... - this is the one you
should use.

Shmuel Krakower.
www.Beatsoo.org - re-use your jmeter scripts for application performance
monitoring from worldwide locations for free.

On Sun, Feb 15, 2015 at 11:23 AM, Erez Naim <er...@theneura.com> wrote:

> Hello all,
>
>
>
> I am using amazon Java machine (Tomcat was installed on that machine) and
> I am trying to connect to JvisualVM from my local machine (I've configured
> JMX properties as follows:
>
> CATALINA_OPTS="-Djava.awt.headless=true -Xmx128M
>
> -server -Dcom.sun.management.jmxremote
> -Dcom.sun.management.jmxremote.port=<port>
>
> -Dcom.sun.management.jmxremote.authenticate=false
>
> -Dcom.sun.management.jmxremote.ssl=false"
>
>
>
> And I enabled the specific port (I used telnet from my local machine to
> the remote one and it connected)).
>
>
>
> Still I cannot use JvisualVM in order to monitor the remote application
> server…
>
>
>
> Any idea how to solve it?
>
>
>
> Cheers!
>
>
>
> Erez Naim  |  QA Lead  |   [image: LinkedIn]
> <http://www.linkedin.com/profile/view?id=34323263>  [image: vCard]
> <http://www.theneura.com/vCards/gilad.vcf>  [image: Twitter]
> <http://twitter.com/#!/giladmeiri/>
>
> [image: cid:image004.png@01D01E1B.5F153500]
>
> EL AL 2 Street | Herzliya
> mobile (+972) 50 9 555 686 | fax (408) 689.1366 | skype erez.neura
>
>
>
> website <http://www.theneura.com/>  |  blog <http://www.startupbitz.com/>
>  |  twitter <https://twitter.com/intent/user?screen_name=theneura>  |  map
> <http://goo.gl/maps/ZRkg5>
>
>
>
>
>