Tasks
TCP/IP port assignments
Port assignments for a WebSphere site should be coordinated with network administrators. It is desirable to know each and every port usage ahead of time, including the process names and the owners using them. For troubleshooting, you can use lsof to associated port numbers with processes.
Depending on the chosen WAS configuration and hardware topology, the setup for a single machine can involve having multiple cells, nodes, and server profiles in a single process space. Each WebSphere process requires exclusive usage of several ports and knowledge of certain other ports for communication with other WebSphere processes.
To simplify the installation and provide transparency to the ports use, the following approach is reliable and reduces the complexity of such a scenario considerably:
- With the network administration, discuss and decide on a fixed range of continuous ports for exclusive use for the WAS installation.
- Draw the overall WAS topology and map the app life cycle stages onto WebSphere profiles.
- List the number of required ports per WebSphere profile and come up with an enumeration scheme, using appropriate increments at the cell, node, and appserver level, starting with the first cell. Make sure to document the ports in an appropriate way.
When creating the profiles with the PMT using the advanced options path, we can set the ports for the profile as needed. The PMT identifies the ports used in the same installation on that system and the ports that are currently in use and will suggest unique ports to use.
The manageprofiles.bat(sh) command allows we to control the port numbers through the -portsFile and -startingPort parameters.