Follow the below steps to find the p4 port
- Access SAP Netweaver Administrator
- Goto -> System Information
- Click J2EE cluster element (IDxxxxx)
- Configuration details will be shown under the section "Details about 00 (IDxxxx)"
- Use the port number from the "P4 Port" field to add SAP Java Monitor.
Refer the attached screenshot