cancel
Showing results for 
Search instead for 
Did you mean: 
jeesshnasree
Flight Engineer
Flight Engineer
  • 2,644 Views

Could you please explain about port offset value on JBOSS Application server

Jump to solution

Hi All,

 

kindly share about port off set value with detailed  explanations .

Labels (1)
0 Kudos
1 Solution

Accepted Solutions
williamwlk
Flight Engineer Flight Engineer
Flight Engineer
  • 2,636 Views

Hi @jeesshnasree

Let's say you wanted to have 3 x Standalone Servers of JBoss EAP for some DevOps Reason.

1st Instance:

$ sudo -u jboss ./standalone.sh -Djboss.server.base.dir=/opt/jboss/standalone/

The management console at http://localhost:9990

2nd Instance:

$ sudo -u jboss /opt/jboss-eap-7.0/bin/standalone.sh -Djboss.server.base.dir=/opt/jboss/standalone2/ -Djboss.socket.binding.port-offset=10000

The management console at http://localhost:19990

3rd Instance:

$ sudo -u jboss /opt/jboss-eap-7.0/bin/standalone.sh -Djboss.server.base.dir=/opt/jboss/standalone3/ -Djboss.socket.binding.port-offset=10000

The management console at http://localhost:29990

This is just a useful parameter in JBoss EAP that you can set in order to avoid port conflicts on a system. In the above example, the 2nd and 3rd standalone instances will be listening on ports witht the offset i.e. 10000 ie. 19990 and 29990 accordingly.

 

Hope this helps.

Will

View solution in original post

0 Kudos
2 Replies
williamwlk
Flight Engineer Flight Engineer
Flight Engineer
  • 2,637 Views

Hi @jeesshnasree

Let's say you wanted to have 3 x Standalone Servers of JBoss EAP for some DevOps Reason.

1st Instance:

$ sudo -u jboss ./standalone.sh -Djboss.server.base.dir=/opt/jboss/standalone/

The management console at http://localhost:9990

2nd Instance:

$ sudo -u jboss /opt/jboss-eap-7.0/bin/standalone.sh -Djboss.server.base.dir=/opt/jboss/standalone2/ -Djboss.socket.binding.port-offset=10000

The management console at http://localhost:19990

3rd Instance:

$ sudo -u jboss /opt/jboss-eap-7.0/bin/standalone.sh -Djboss.server.base.dir=/opt/jboss/standalone3/ -Djboss.socket.binding.port-offset=10000

The management console at http://localhost:29990

This is just a useful parameter in JBoss EAP that you can set in order to avoid port conflicts on a system. In the above example, the 2nd and 3rd standalone instances will be listening on ports witht the offset i.e. 10000 ie. 19990 and 29990 accordingly.

 

Hope this helps.

Will

0 Kudos
jeesshnasree
Flight Engineer
Flight Engineer
  • 2,623 Views

hi @williamwlk,

 

thanks for share your valuable information . 

i have one doubt regarding port offset value its automatically taken by OS or need to add/modify manually . could you please share your valuable informaton , soryy for late reply .

0 Kudos
Join the discussion
You must log in to join this conversation.