Skip to Content
avatar image
Former Member

Problem with number of connections to RFC

Hi Experts,

I have created an application that fetches data through an RFC while loading the iview.

So when user opens application, its loading data properly.

But this works only for 6 users at a time now.

when i opens 7th user, model connection is not working.

I checked JCO config... and its given below for RFC model data and meta data.

Maximum Pool Size:5

Maximum Connections:10

Connection Timeout (msec.):10,0000

Maximum Waiting Time (msec.):30,0000

Actually i want to give access to 500 users at a time. Kindly let me know what are all the values i should give in above configuration for 500 users.

I sow few forums but its not clear for me.



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Dec 19, 2011 at 08:55 AM

    Hi John,

    You need to maintain the value in Maximum Connections ... before you change the value for this, you need to be aware of the number of concurrent users for the application. This will help you deciding a number.

    Please refer to SAP help document for more details -

    Also you could ask the developers to check the web dynpro code to make sure that are not making unnecessary backend calls.

    The above link would help WD Java code optimization.



    Add comment
    10|10000 characters needed characters exceeded

  • Dec 19, 2011 at 03:27 PM

    Dear John,

    Please refer to Web Dynpro Best Practices: [How to Configure the JCo Destination Settings|]

    Also please make sure that you use the invaidate method just after execute method and close the connection in finally block like:-

    <RFC Node>   <RFC Object>= new <RFC Node>(WDModelScopeType.APPLICATION_SCOPE);
    wdContext.node<RFC Node>().bind(<RFC Object>);
        <RFC Object>.execute();			
        wdContext.node<Output Node>().invalidate();						
    }catch(Exception ex){
        // Log message here
        wdContext.current<RFC Node>Element().modelObject().modelInstance().disconnectIfAlive();

    Hope it will helps

    Best Regards

    Arun Jaiswal

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 19, 2011 at 07:20 PM

    Hi John,

    As mentioned by Arun in his solution, this has to be taken in consideration during development of Application. Additionally, since you are fetching data from backend system (herein ABAP System), There is always a limit to the number of concurrent connections which can be opened on the ABAP server (gateway).

    Therefore, I would suggest you to go through the following links to understand the Efficient Use of JCo Connections


    2. SAP Note# 1507034

    I hope this will help you.


    Gautam Singh

    Add comment
    10|10000 characters needed characters exceeded