cancel
Showing results for 
Search instead for 
Did you mean: 

Disconnect JCO Connection

Former Member
0 Kudos

Hi,

In WebdynPro Application without using Adaptive RFC, we are able to disconnect a connection after few seconds as we using disconnect() method for that.

But for a WebdynPro Application using Adaptive RFC, we are not able to disconnect a connection as fast as we were able to do in first case.

We are using following to disconnect:

wdContext.currentInputElement().modelObject().modelInstance().disconnectIfAlive();

In SM04 transaction, we observed that the connection(Adaptive RFC) is taking more time to close than it is taking for without Adaptive RFC WD application. The connection still exists even the memory utilized becomes 0 MB.

Also, when we are not disconnecting in Adaptive RFC WD application, then memory is utilized as long as connection exists. But, when we are disconnecting the connection, the memory utilized is 0 MB though the connection still exists.

While creating the JCo connection for metadata and modeldata we gave:

Max pool size : 5

Max connection: 1000

Connection Timout (msec.) : 1000

Maximum Waiting Time (msec.): 5000

Can anybody suggest how to disconnect the connection to overcome above problem?

Thanks and Regards,

Vaibhav

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Check this URL

Actually The Connection will be Terminated when it is inactive for particular time

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/85a483cb-0d01-0010-2990-c5168f01ce8a">Jco Connection Pools</a>

Regards

Chandran S

Former Member
0 Kudos

Thats true.

But in our case its taking more than 1 min.

But w/o Adaptive RFC, its getting connected and disconnected instantly.

Please Help!!!

Answers (0)