JMX enabled Java application appears to open a random high order port when JMX client connects

I have successfully configured a helloworld JMX enabled program, and I can connect to it using jconsole JMX client from a remote location.

When I attempt to turn on iptables I noticed that a random high order port is established when a client logs in. Eventually I would like to monitor Java applications in firewall segregated network segments. Can we control the range the random port opens in?

asked 06 Sep '11, 22:47

fox's gravatar image

fox ♦♦
800162527
accept rate: 37%

edited 06 Sep '11, 22:47


If you know Java you can write your own custom agent and define a port range JMX can use.

I found this blog post helpful:

http://blogs.oracle.com/jmxetc/entry/connecting_through_firewall_using_jmx

link

answered 06 Sep '11, 22:55

Russell%20Ballestrini's gravatar image

Russell Ball...
1.3k232937
accept rate: 43%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×2
×1
×1
×1
×1

Asked: 06 Sep '11, 22:47

Seen: 1,329 times

Last updated: 06 Sep '11, 22:55

powered by OSQA