Link to home
Start Free TrialLog in
Avatar of yarabati
yarabatiFlag for India

asked on

SAP JCo Concurrent connections & it's limitations

Hi there,

We are working on one of migration project from SAP to Java. For which, we are using JCo to make SAP/RFC calls.

Since our is a vast product with over 75000 users and around 20000 concurrent users (expected), I am interested to know JCo maximum concurrent connections which we can made.

I have tested this through the program and creted connections opened about for 25000 in a for loop, after certain extent (reaching around 300 connections created & Opened) it is giving below error.

com.sap.mw.jco.JCO$Exception: (110) RFC_ERROR_BUSY: Connect to SAP gateway failed
Connect_PM  GWHOST=***, GWSERV=***, ASHOST=***, SYSNR=***

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

TIME        Tue Jun 01 15:02:02 2010
RELEASE     700
COMPONENT   SAP-Gateway
VERSION     2
RC          633
MODULE      gwxxrd.c
LINE        8188
COUNTER     81476

*** - removed sensitive information. Please ignore.

I reqeust any one of you help to get rid of this. BTW, I am very new to SAP programming. kindly give reponse.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of gnurl
gnurl
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of yarabati

ASKER

Hi gunrl, thank you very much for the reply.

Since, I am very very NEW to SAP, I am afraid, I do not no where to see SAP notes for 314530 & 894100. Can you please help with the corresponding URL.

Also, I have already set CPIC_MAX_CONV on my dev machine. I am bit confused here, I have two machines my SAP/R3 machine is at remote place. And I am connecting to that machine using regular process. I have set this env (CPIC_MAX_CONV) variable on my machine, from which I do devlopment activities. Can you please tell me, is it fine to set this env variable on my machine or do I need to set this on my remote SAP/R3 machine as well?

Thanks in advance for your help!

Best Regards,
Yarabati
Hi Yarabati,

the CPIC_MAX_CONV variable must be set for the user running the SAP system.
So if you are running the SAP system "DDD" on linux you must set this variable for user dddadm on the linux host for the SAP system.
On windows the variable for the user SAPServiceDDD must be set in the system properties.

To be sure the parameter is used please restart the SAP.

To access the SAP notes you need access to the sap marketplace (http://service.sap.com/notes) There you can search for notes and problems.
One of your SAP administrators should have an "s-user" to access the marketplace.

Best regards
gnurl
many thanks for helping me out...

Could you please elaborate bit more on your suggetion? Here is my scenario.I have two machines

A - with SAP installedand running in remote location on Windows.
B - this is my desk machine which I used for devlopment.
I use "User1" user for login to machine for connection pooling & connections purpose. And I have environment variable CPIC_MAX_CONV set on machine B 2000. But my program running on B, is not taking connections more than 300.  

Can you please help me according to my scenario?

thanks in advance for your help.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi yarabati,

could you solve the problem?

Best regards,
gnurl
Hi gnurl

I have intimated this to my client for changing the parameters on SAP machine... because it's not in our control.
Hopefull they will intimate us tomorrow on changes, so that v can test this out... :)

Anayways, thank you very much remembering this and to get back to me ... will let u know

yarabati
I am closing this question. My client still didn't give direct acess to work on SAP machine, we have shared the properties which needs to changed on remote machine.

I hope I can get out with the property change as suggested by experts here...

Thanks all