Ask the Expert

JCo connectivity, out of memory problem

We have a JCO client trying to execute a BAPI and get a table containing 10,000 rows. The IBM's proxy based RFC API has no problem doing it. However, when we changed it to JCo, we have the out of memory error from middle ware (listed below.) Is there any way to change buffer size. What is the problem? Can you help us?

    Requires Free Membership to View


Thanks very much.

Error message:
java.lang.OutOfMemoryError: out of memory
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeExecute(Native Method)
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.execute(MiddlewareRFC.java:76 0)
at com.sap.mw.jco.JCO$Client.execute(JCO.java:2378)
at com.sap.mw.jco.JCO$Client.execute(JCO.java:2313)
at com.bcone.util.JcoProcessor.extractToRepository(JcoProcessor.java:281 )
at com.bcone.util.JcoProcessor.processExtract(JcoProcessor.java:231)


Out of memory can be fixed by increasing the space allocation for the JVM (details differ between VMs). There is no limited buffer in JCo as far as I know. JCo may need a little bit more space since it marshalls the complete table from C to Java in order to provide much better performance.


This was first published in May 2002

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: