Skip to Content
avatar image
Former Member

Connection pool RfcClient is exhausted - What is the parameter name for “Maximum waiting time”?

Scenario:

PI receives a synchronous webservice call and calls a synchronous RFC in ECC Backend.

Application X to PI/PO RFC to ECC

Error:

After 30 seconds we get following error in PI/PO production when calling RFC receiver adapter:

MP: exception caught with cause com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: resource error: could not get a client from JCO.Pool: com.sap.mw.jco.JCO$Exception: (106) JCO_ERROR_RESOURCE: Connection pool RfcClient[Receiver_Rfc_PlannedTask_Update]7c3b04a9b4333c13a488feafc4a46d1d is exhausted. The current pool size limit (max connections) is 1 connections.

Error after 30 seconds:

Application X is sending a lot of messages. A lot of them are processed ok but some fail with above error.

We don’t want to change the max connections parameter but we want to extend the waiting time for a new place in the pool.

Maximum Connections parameter which we don’t want to change in Integration Directory:

According to SAP documentation “Advanced Mode” gives the option to add JCO.Client parameters.

Question:

What is the name of the parameter that can change the default “maximum waiting time” of 30 seconds to e.g. 60 seconds and can be added as “Advanced Mode” parameter?

In put in an example (MaxWaitTimeSec):

Description of maximum waiting time:

https://wiki.scn.sap.com/wiki/display/SI/Java+Connectivity

Maximum Waiting Time

Defines the maximum time to wait to obtain a requested connection. If the connection pool is exhausted (that means that the "Maximum Connections" limit is reached) and another thread is requesting an additional connection, this is the time that is being waited for some connection to be released by another thread so that that one can be handed out to the waiting thread. If the maximum waiting time is reached, and no connection became available in the mean time, then a JCO.Exception with the key JCO_ERROR_RESOURCE is thrown. The default value for the "Maximum Waiting Time" is 30 seconds (30.000 ms).

Hope you can help me with this one.

Many thanks!

Erik

imo9g.jpeg (11.2 kB)
eui4i.jpeg (58.5 kB)
txuud.jpeg (47.6 kB)
15zru.jpeg (43.9 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 08 at 09:38 PM

    Hello Erik van Lisdonk,

    Can you please look in to SAP note : 2218855 - JCO.Pool does not recover from pool exhaustion

    Thanks

    Yogesh

    Add comment
    10|10000 characters needed characters exceeded