Port Management on multiple xServer

This forum deals with administrative topics such as monitoring and system setup. It is dedicated to system administrators who do not have to deal with the functions themselves but who have to establish and maintain proper environments.
Public since 15.2.2017

Port Management on multiple xServer

Postby PaulBuechs » Thu Feb 08, 2018 4:02 pm

Hi,

we had lately the issue with xServer is not starting on client server and we don’t know why the server was shut down in the first place.
We got “Address already in use…” Exception by trying to restart this service. The problem could be solved like mention in post viewtopic.php?f=43&t=632.

Another xServer was blocking the Port that we needed, so we ask how xServer decide which port they use?
Current understanding, example xRoute Server:
Set in config file:
Starter Port: 50030
End Port: 50033
We assume:
m0001: 50031
m0002: 50032
m0003: 50034
m0004: 50035
m0005: 50036

The restart was canceled by xCluster Server, which starts with port 50080. Therefore, we wonder why he blocked Port 50036?

From logfile:
Caused by: ERROR 08001: java.net.ConnectException : Error connecting to server localhost on port 50,036 with message Connection refused: connect.

Can we tell xServer which ports he should use?
Or can we predict based on start port which ports he will use?

Kind regards,
Paul
User avatar
PaulBuechs
 
Posts: 8
Joined: Tue Mar 28, 2017 1:09 pm

Re: Port Management on multiple xServer

Postby Joost » Fri Feb 09, 2018 7:46 am

The fixed used ports are described in the manual: https://xserver.ptvgroup.com/fileadmin/ ... n%7C_____3

The HTTP port, Tomcat shutdown and derby port are enabled by default. The Alive and https port need to be explicitly enabled in the configuration. All the other ports used are dynamic and your OS will assign a unused port number on request the port.

If xCluster was taking a 50036 port, is was a dynamic port request that your OS gave away before the xServer that uses that port started up. To prevent this, please see the " Preventing Conflicts with Dynamically Assigned Ports" paragraph of the documentation I linked to above.
Joost Claessen
Senior Technical Consultant
PTV Benelux
Joost
 
Posts: 173
Joined: Fri Apr 25, 2014 1:46 pm


Return to PTV xServer Administration

cron