on 12-01-2005 9:39 AM - last edited on 02-04-2024 1:06 AM by postmig_api_4
Hi,
Can anyone please help me with the following error.I am getting this when I'm testing my JCO connection :
RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed Connect_PM TYPE=A ASHOST=cgnsap13 SYSNR=01 GWHOST=cgnsap13 GWSERV=sapgw01 PCS=1 LOCATION SAP-Gateway on host cgnsap13 / sapgw01 ERROR max no of cpic clients exceeded (300)
Thanks and regards,
Lisha
Hello -
Delete the excessive number of remote gateways via SMGW. This will fix it.
Harmeet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Symptom
Connecting to an ITS service fails with the error message "Connect to SAP
gateway failed Connect_PM DEST=..., GWHOST=... GWSERV=..., ASHOST=...,
SYSNR=... LOCATION CPIC (TCP/IP) on local host ERROR max no of 100
conversations exceeded". This happens for services that are based on ITS
FlowLogic.
Solution
The problem is caused by too many open RFC connections. There are the
following options to fix this:
1. Reduce ~timeout on the ITS machine to enforce the automatic
termination of unused sessions.
2. Configure ITS, SAP gateway and ITS to support more RFC connections.
Please apply the following steps in the given order until the problem
is resolved:
a) Set environment variable CPIC_MAX_CONV to a value > 100 on the ITS
server and reboot the system.
b) Increase the profile value gw/max_conn and gw/max_sys on the SAP
gateway to support more parallel connections. If you run into
memory bottlenecks also increase gw/max_overflow_size and
gw/max_shm_req.
c) Increase the profile values rdisp/tm_max_no and
rdisp/max_comm_entries on the application server.
The following is a setting for these values that have been
tested successfully. Please note that this is only an example
setting the parameter values depend on the expected load.
SAP-Gateway
gw/max_conn 2000, gw/max_sys 1200
gw/max_overflow_size 40000000, gw/max_shm_req 200 (this is to
adjust the memory allocation)
Profile parameters
rdisp/tm_max_no 5000, rdisp/max_comm_entries 200
ITS
CPIC_MAX_CONV 5000
Additional ITS Registry Keys to check:
Programs\SAPmpr\ProductionMode=1
=> RFC connections get closed earlier (note 321432)
Programs\SAPmpr\RFC\MaxRfcHandles=XXX
=> where XXX is the number of expected RFC connections (default=100)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Solution
By setting the environment variables CPIC_MAX_CONV, the library can manage
multiple connections in parallel.
Windows: set CPIC_MAX_CONV=<n>
for example, set CPIC_MAX_CONV=500 (for 500 connections)
Unix: setenv CPIC_MAX_CONV <n> ( csh )
for example, setenv CPIC_MAX_CONV 500 (for 500 connections)
Unix: export CPIC_MAX_CONV=<n> ( ksh )
for example, export CPIC_MAX_CONV=500 (for 500 connections)
iSeries : ADDENVVAR ENVVAR(CPIC_MAX_CONV) VALUE(<n>)
for example, ADDENVVAR ENVVAR(CPIC_MAX_CONV) VALUE(500) (for 500
connections)
This will solve your problem
With Regards
Sunil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I tried to increase the JCO Connection parameter "max pool size" to 100 which is its max permissible value. Still the same error persists.
Please help.
Regards,
Lisha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lisha,
I guess you have specified some max. pool connections in JCO connections. And now it exceeds that limit.
Regards,
Bhavik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.