Show TOC Start of Content Area

Background documentation AS Java Ports  Locate the document in its SAP Library structure

These ports are used for communication with the AS Java as part of the SAP NetWeaver AS. They are generated at installation time and when new cluster elements have to be created.

AS Java Ports

For the AS Java, 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 AS Java 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.

Note

You can see the instance number from the directory, where the AS Java 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 AS Java are as follows (in the table below, NN corresponds to instance_number):

AS Java 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 to 4.

Note

You can see the number of the server element from the installation directory of the AS Java. Under <Drive>:\usr\sap\<SAPSID>\<Instance_Name>\j2ee\cluster, there are server<Server_Number> directories representing the server processes in the AS Java. Their number depends on the number specified at installation time.
This graphic is explained in the accompanying text

The ports for AS Java 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 AS Java are as follows:

AS Java 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 is instance_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 is instance_number.

Example

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

P4 port=50000+100*15+4=51504

Administrative Services for AS Java Ports

There are additional administrative services used by the AS Java. The corresponding ports are shown in the table below.

Administrative Service Ports

Service

Port / Service

Default

Range

Start service

HTTP

5NN13

sapctrlNN

50013

50013-59913

Start service

HTTPS

5NN14

sapctrlsNN

50014

50014-59914

SDM

5NN17

5NN18

5NN19

50017

50017

50019

Not applicable

See also:

TCP/IP Ports Used by SAP Applications

This document provides a complete list of the ports used in conjunction with the AS Java, for example, the ports used by SAPinst during installation or when using the SAP Web Dispatcher. You can find this document on the SAP Developer Network at www.sdn.sap.com/irj/sdn/security under Infrastructure Security   Network and Communications Security.

 

 

 

End of Content Area