cancel
Showing results for 
Search instead for 
Did you mean: 

Find out the number of used/free JCO connections from CE

saurabh_vakil
Active Contributor
0 Kudos

Dear Experts,

We are using NW CE 7.11 in our production landscape. We have one web dynpro java application which uses Adaptive RFC Model to connect to the backend R/3 system using a JCo Destination.

We have set the Maximum Pool Size value as 100 for this JCo Destination. Some of the users of this application frequently face the error Error connecting using JCO.Client: null while using the application. At maximum peak time, 70-75 users will simultaneously use this application.

I would like to know if there is any standard way of knowing how many JCo connections are being used up at any point of time and how many are free? If we can get these details, maybe we can make some appropriate changes in the JCo Destination parameters so that users do not face this issue.

Regards,

Saurabh

Edited by: Saurabh Vakil on Jan 20, 2012 9:28 AM

Accepted Solutions (0)

Answers (2)

Answers (2)

Qualiture
Active Contributor
0 Kudos

Hi,

You can use the JCO.Pool.getCurrentPoolSize() method to retrieve the number of active connections.

See also http://help.sap.com/javadocs/NW04S/SPS09/jc/com/sap/mw/jco/JCO.Pool.html

Cheers,

Robin

former_member182372
Active Contributor
0 Kudos

Well, yeah, why not smth like:


String pool_name = <SEE_How_are_JCo_Pools_Named_SECTION>;
 JCO.Pool pool = JCO.PoolManager.singleton() .getPool(pool_name) ;

Check http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/705f2b2e-e77d-2b10-de8a-95f37f4c7... -> page 25

Understanding JCo Pools at Runtime 2/5: How are JCo Pools Named?

p330068
Active Contributor
0 Kudos

Dear Saurabh,

Please refer to [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/3103eb90-0201-0010-71af-be6f4a6f61d1?QuickLink=index&overridelayout=true|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/3103eb90-0201-0010-71af-be6f4a6f61d1?QuickLink=index&overridelayout=true

Hope it will helps.

Best Regards,

Arun Jaiswal