cancel
Showing results for 
Search instead for 
Did you mean: 

Garbage collection in AdaptiveRFC Model

Former Member
0 Kudos

Hi,

Our Webdynpro Application(no. of users > 300) uses AdaptiveRFC model extensively. There exists a single model(implies a single JCO Connection) for the complete application.

We are facing performance problems because of large BAPI objects being created as a result of innumerable BAPI calls.

Is there any standard means of garbage collection for these BAPI objects?

Regards

MK

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member214651
Active Contributor
0 Kudos

Hi MK,

Many times it happens that if the model instance is not disconnected there could be problems for number of users. To ensure the connection is closed write the code manually to disconnect the model connection in the finally block of the method where the RFC is executed.

This helps in closing the connection manually.

To close the connection manually use the class of the model and the statement

<modelclass>.disconnectIfAlive() method. this shoudl disconnect the RFC connection manually

Regards,

Poojith MV

Former Member
0 Kudos

Hi,

If you are facing problems to obtain JCo connectivity, you actually increase the Jco connection pool no:s. This can be done by editing the jco connection in the content administrator

regards,

mahesh

Former Member
0 Kudos

Hi Mahesh,

The JCo Connection pool isnt a problem as all the users are being able to login.

The objects being created to call the BAPIs are accumulating in the JVM without being destroyed. I was looking for some standard mechanism to destroy these objects.

Regards

MK

Former Member
0 Kudos

Hello,

Did you resolve this issue as I am facing the same request?

Any help would be highly appreciated

Nicolas