Problems establishing multiple RFC connections

Problems establishing multiple RFC connections

I have successfully used JCo to connect to R/3 and make BAPI calls. However, I got errors when I establish more than 100 concurrent RFC connections. I have set the connection pooling to 200. The error:

    Requires Free Membership to View

    When you register, you will start receiving targeted emails from my award-winning team of editorial writers. Our goal is to keep you informed on the hottest topics and biggest challenges faced by SAP professionals today.

    Hannah Smalltree, Editorial Director

    By submitting your registration information to SearchSAP.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchSAP.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.


com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed
Connect_PM GWHOST=192.168.103.21, GWSERV=sapgw00, ASHOST=192.168.103.21, SYSNR=00

LOCATION CPIC (TCP/IP) on local host
ERROR max no of 100 conversations exceeded

TIME Thu May 08 11:16:04 2003
RELEASE 46D
COMPONENT CPIC (TCP/IP)
VERSION 3
RC 466
MODULE r3cpic.c
LINE 9937
COUNTER 1

at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeConnect(Native Method)
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.connect(MiddlewareRFC.java:755)
at com.sap.mw.jco.JCO$Client.connect(JCO.java:2605)
at com.sap.mw.jco.JCO$Pool.getClient(JCO.java:3806)
at com.sap.mw.jco.JCO$PoolManager.getClient(JCO.java:4353)
at com.sap.mw.jco.JCO$PoolManager.getClient(JCO.java:4311)
at com.sap.mw.jco.JCO.getClient(JCO.java:5998)
at com.sap.mw.jco.JCO$Repository.queryFunctionInterface(JCO.java:15503)
at com.sap.mw.jco.JCO$Repository.getFunctionInterface(JCO.java:15562)
at com.sap.mw.jco.JCO$BasicRepository.getFunctionTemplate(JCO.java:14720)
at ESSSurveyManager.<init>(ESSSurveyManager.java:23)
at ThreadGenerator.run(VolumeTest.java:49)
Just because the JCo connection pool is set to 200 does not mean that you can get 200 simultaneous dialog instances on the SAP application server. Check the value of the profile parameter rdisp/max_comm_entries to make sure the value to greater than or equal to 200.

This was first published in July 2003