+

Search Tips   |   Advanced Search

Configure port settings


Overview

When we configure WebSphere Application Server resources or assign port numbers to other applications, we must avoid conflicts with other assigned ports. In addition, we must explicitly enable access to particular port numbers when we configure a firewall.

(iSeries) For more information about port numbers that the IBM i system currently uses, enter the NETSTAT *CNN command on the command line. Press F14 to view assigned port numbers.

(iSeries) We can also use the port validator tool to find port conflicts between different WAS profiles, products, and servers. See Port validator tool for more information.

Port conflicts might occur if we assign a custom port value within the recommended default dynamic port range. Because port values are assigned dynamically, WAS cannot predetermine the port values that will be assigned to the servers. A way to avoid the possibility of a port conflict among servers is to either accept the default server port values assigned by the Profile Management Tool, or assign custom port values that do not fall within the default dynamic port range. The default dynamic port ranges for pre-2008 operating system is 1025 to 5000, and the dynamic port ranges for newer operating systems is 49152 to 65535. Because these default ranges are recommended by the Internet Assigned Numbers Authority (IANA), they are common across all operating systems.

Port conflicts might occur if we install WAS on multiple systems with deployment managers managing servers or clusters on different systems. The configuration-service port-resolution mechanism does not support cross profiles on different host machines.


Configure port settings

  1. Review the port number settings, especially when we are planning to coexist.

    (iSeries) Use the dspwasinst command-line tool to display the port information for a profile. See dspwasinst command for more information.

    Clone migrations allow the old and new cells to coexist by preventing port conflicts for all servers running on the same LPAR when migrated. Depending on the server type being used migrated, the zMMT wizard allows us to specify how port assignments to the new servers are to be processed. We should only migrate one node at a time. igrating one node at a time allows the newly migrated node to synchronize its port assignments with the new deployment manager, preventing possible port conflicts across federated nodes on the same LPAR.

  2. Optional: Change the port number settings.

    We can set port numbers when configuring the product after installation.

    • During profile creation using the manageprofiles command, we can accept the default port values or we can specify your port settings. To specify ports, we can do so in any of the following ways:

      • Use of a port file containing the port values.

      • Use of a starting port value.

      • Use of the default port values.

      See manageprofiles command for more information.

    • During profile creation using the Profile Management tool, we can accept the port settings recommended by the tool or we can specify your port settings.

      See Manage profiles using the graphical user interface for more information.

    • (iSeries) Use the chgwassvr command to change the ports for an application server within a profile.

      See chgwassvr command for more information.

    (ZOS) We can set port numbers when configuring the product after installation. Start to think about port numbers during the planning phase described in Plan for product configuration.

    (Dist) We can perform one of the following actions to change port settings after installation:

    • Use the updatePorts Ant script to change port settings.

      See Update ports in existing profiles and Port number settings for more information.

    • Edit the profile_root/config/cells/cell/nodes/node/serverindex.xml file to change the port settings, or use scripting to change the values.

  3. Optional: Set port numbers in a different port range so that they cannot conflict.

    WAS cannot always detect port conflicts when multiple installations are present on multiple hosts. To set port numbers in this situation so that you avoid port conflicts, adjust the starting port numbers of each installation to be in a different range from the other installations.

    For example, in a system with two installations, we can configure one installation to use the default port number settings, and manually assign a different port range in the second installation.

    1. Create the deployment manager of the second installation using the manageprofiles command. On the -startingPort option, set a starting port number that is out of range of any ports that other installations use.
      bin/manageprofiles.sh -create -profileName Dmgr03 -profilePath
      /opt/IBM/WebSphere/AppServer_2/profiles/Dmgr03 -templatePath
      /opt/IBM/WebSphere/AppServer_2/profileTemplates/management -startingPort 15000
      

    2. Create the application server or custom profiles on each target machine.
    3. Federate the profiles to the deployment manager by running the addNode command.

    4. Create clusters and cluster members from the deployment manager.

      New servers that we create inherit the higher starting port number from the deployment manager.

      Node agents do not inherit the starting port number from the deployment manager. If needed, manually change the port number settings.

    Tip: Use the Profile Port Checker tool to check for conflicts without needing to start the servers. Note that the tool checks only for conflicts on the machine where it runs. For information about using the Profile Port Checker, see Use the Profile Port Checker.


Subtopics


Related

  • Manage profiles using the graphical user interface
  • (ZOS) Plan for product configuration
  • Update ports in existing profiles
  • Use the Profile Port Checker
  • (iSeries) dspwasinst command
  • manageprofiles command
  • (iSeries) chgwassvr command
  • addNode command
  • Port number settings