cancel
Showing results for 
Search instead for 
Did you mean: 

JCO error

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hello -

Delete the excessive number of remote gateways via SMGW. This will fix it.

Harmeet

Former Member
0 Kudos

Hi Lisha,

Above all...

Have checked whether JCo RFC are working fine

Regards

suresh

sunil_pandey6
Explorer
0 Kudos

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)

sunil_pandey6
Explorer
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi all,

we are receiving the same error in a Portal - ESS scenario within our performance test.

(SAP-Gateway on host avggspah / sapgw05 ERROR max no of cpic clients exceeded (300))

Anyone have a clue which variable to adjust for this purpose?

Thanks in advance,

Jan

Former Member
0 Kudos

Hi Lisha,

I guess you have specified some max. pool connections in JCO connections. And now it exceeds that limit.

Regards,

Bhavik