SAP J2EE ports


These ports are used for communication with the J2EE Engine as part of the SAP NetWeaver AS. They are generated at installation time and when new cluster elements have to be created.
For the J2EE Engine, 20 ports are available for the dispatcher element and 80 are available for the server elements, since five is the maximum number of ports for a server process. Therefore, no more than 16 server cluster elements can be created on one instance.
The default J2EE Engine ports meet the following requirements:
     The port value is a number over 50000
     For each cluster element the ports begin with 50000+100*instance_number, where instance_number is a two digit number from 00 to 99 specifying the number of central instance and dialog instances.
<IMG TABINDEX=0 ALT= "Note" id="_x0000_i1027" src= "../../images/hinweis.gif">
You can see the instance number from the directory, where the J2EE Engine is installed. Under /usr/sap/<SID>, there is a directory which name contains the instance name including the instance number, for example, JC40 (where 40 is the instance number).
     For dispatcher cluster elements
The ports are created from 
50000+100*instance_number+port_index, where port_index is a number from 0 to 19 inclusive.
Dispatcher port_index Values
Index
Port Name
0
HTTP port
1
HTTP SSL port
2
IIOP Initial Context port
3
IIOP SSL port
4
P4 port
5
P4 HTTP Tunneling port
6
P4 SSL port
7
IIOP port
8
Telnet port
10
JMS port
According to the formula mentioned above and the port_index values, the dispatcher ports for the J2EE Engine are as follows (in the table below, NN corresponds to instance_number):
J2EE Engine Dispatcher Ports
Service Name
Port Number
Default Value
Range (min-max)
HTTP
5NN00
50000
50000-59900
HTTP over SSL
5NN01
50001
50001-59901
IIOP
5NN07
50007
50007-59907
IIOP Initial Context
5NN02
50002
50002-59902
IIOP over SSL
5NN03
50003
50003-59903
P4
5NN04
50004
50004-59904
P4 over HTTP
5NN05
50005
50005-59905
P4 over SSL
5NN06
50006
50006-59906
Telnet
5NN08
50008
50008-59908
JMS
5NN10
50010
50010-59910

     For server cluster elements
The ports are created from 
50000+100*instance_number+20+n*5+port_index, where n is the number of server elements from 0 to 15 and port_index is from 0 to4.
<IMG TABINDEX=0 ALT= "Note" id="_x0000_i1028" src= "../../images/hinweis.gif">
You can see the number of the server element from the installation directory of the J2EE Engine. Under <Drive>:\usr\sap\<SAPSID>\<Instance_Name>\j2ee\cluster, there are server<Server_Number> directories representing the server processes in the J2EE Engine. Their number depends on the number specified at installation time.<IMG TABINDEX=0 ALT= "This graphic is explained in the accompanying text" src="TEMPLATE_image001.gif">
The ports for J2EE Engine server3 with instance_number=15 are from 51535 (50000+100*15+20+3*5+0) to 51539 (50000+100*15+20+3*5+4).
Server port_index Values
Index
Port Name
0
Join port
1
Debug port
According to the formula mentioned above and the port_index values, the server ports for the J2EE Engine are as follows:
J2EE Engine Server Ports
Internal Port
Value
Server Join Port
For s0: 5NN20, for
s1=5NN25, for s2=5NN30….for s15=5NN95, where s0, s1, s2,..s15 shows the
number of server processes and NN isinstance_number.
Server Debug Port
For s0: 5NN21, for
s1=5NN26, for s2=5NN31….for s15=5NN96, where s0, s1, s2,..s15 shows the
number of server processes and NN isinstance_number.

Example

The port for P4 on a dispatcher element with instance_number=15 is: