JPPF, java, parallel computing, distributed computing, grid computing, parallel, distributed, cluster, grid, cloud, open source, android, .net
JPPF

The open source
grid computing
solution

 Home   About   Features   Download   Documentation   On Github   Forums 
November 18, 2019, 07:07:21 AM *
Welcome,
Please login or register.

Login with username, password and session length
Advanced search  
News: New users, please read this message. Thank you!
  Home Help Search Login Register  
Pages: [1]   Go Down

Author Topic: Question about node configuration ports for JMX/RMI  (Read 3016 times)

codemonkey

  • JPPF Council Member
  • *****
  • Posts: 138
Question about node configuration ports for JMX/RMI
« on: July 07, 2011, 09:12:10 PM »

Hi Laurent, according to the documentation in the config file for JMX/RMI ports it states that 2 or more JPPF components on the same machine must use distinct values for ports:

Code: [Select]
#------------------------------------------------------------------------------#
# JMX management port                                                          #
# default value is 11198; uncomment to specify a different value               #
# 2 or more JPPF components on the same machine must use distinct values       #
#------------------------------------------------------------------------------#

jppf.management.port = 12001

#------------------------------------------------------------------------------#
# Internal RMI port used by JMX management                                     #
# default value is 12198; uncomment to specify a different value               #
# 2 or more JPPF components on the same machine must use distinct values       #
#------------------------------------------------------------------------------#

jppf.management.rmi.port = 13001

#------------------------------------------------------------------------------#
# path to the JPPF security policy file                                        #
# comment out this entry to disable security on the node                       #
#------------------------------------------------------------------------------#


I have 2 nodes running on the same machine that uses this exactly as it is to launch our nodes.

When the nodes are launched, the first one gets the port value of 12001, and the second gets a value of 12002. My assumption is the the framework is auto incrementing the ports, and my assumption is that it's doing the same for the rmi port. Is this correct? Should I be dynamically assigning ports based on the number of nodes on the machine, as the comments state?

In fact when I look both node's information in the admin ui,

Code: [Select]
node 1:
jppf.discovery.enabled = false
jppf.management.port 12001
jppf.management.rmi.port 13001
jppf.server.host localhost
processing.threads 2
reconnect.max.time 900

node 2:
jppf.discovery.enabled = false
jppf.management.port 12002
jppf.management.rmi.port 13002
jppf.server.host localhost
processing.threads 2
reconnect.max.time 900

So this is just a documentation issue?

Thank you again very much
« Last Edit: July 07, 2011, 09:44:32 PM by codemonkey »
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2256
    • JPPF Web site
Re: Question about node configuration ports for JMX/RMI
« Reply #1 on: July 08, 2011, 05:28:03 AM »

Hi,

Yes you are right, JPPF automatically increments the port numbers when it detects that one is already bound. It is also true that we do not mention it in the documentation, thanks for spotting it!
I registered a documentation bug report for this: 3358138 - the doc does not mention that JMX port are auto-incremented.

Sincerely,
-Laurent
Logged
Pages: [1]   Go Up
 
JPPF Powered by SMF 2.0 RC5 | SMF © 2006–2011, Simple Machines LLC Get JPPF at SourceForge.net. Fast, secure and Free Open Source software downloads