Skip to Content
avatar image
Former Member

Out of Memory Exception when calling BAPI through JCO

Hi,

When i try to execute a BAPI from PDK it works fine and displays the results in the table.But when the same BAPI is executed from EP6.0 and say if the table has no of rows greater than 6000 , it throws the following exception...

java.lang.OutOfMemoryError: out of memory at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeExecute

Can anyone help me with this?

Thanks,

Vivek

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Dec 29, 2003 at 11:59 AM

    Difficult to examine from here.

    Mainly you should put on trace logging at JCO (Refer to JCO tutorial and documentation on help.sap.com.)

    You may also post the stack trace from console logger.

    You have also to check how much memorz you assigned to the VM of your Server. (1024 ?)

    6000 rows in fact is really huge. If one row has 200 Characters (small table in R/3), you have at least 400 Byte per row (Unicode).

    For 6000 rows this is 2,4 GB. If you are running on windows you peaked the maximum VM size. Also PDK is a small tool , Ep6.0 already assigns a lot of memory for the additionalm services.

    Check your VM in TaskManager

    Oliver

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      6000 rows * 400 Byte/row = approx. 2.4MB, NOT 2.4GB and should be much easier to handle depending on the memory assigned.

      Gabor