on 09-27-2011 2:04 PM
Dear friends,
We are getting following error on JDBC sender Adapter: Error during conversion of query result to XML: java.lang.OutOfMemoryError: Java heap space (failed to allocate 1073741848 bytes)
I have read blogs where there have been suggestions to limit the amount of data picked by using WHERE condition and not using SELECT *
In our scenario we are creating GL IDOCs . In SQL when PI picks it up it needs to get all the corresponding Header and line items together. We cannot randomly pick 1000 records at a time. The SQL table has 500,000 rows in the following format
H H H L1 L1 L1
H H H L2 L2 L2
H H H L3 L3 L3
H1 H1 H1 L1 L1 L1
H1 H1 H1 L2 L2 L2
H1 H1 H1 L3 L3 L3
Please let me know how can we solve this issue?
Thank you,
Teresa
Edited by: Teresa lytle on Sep 27, 2011 3:13 PM
This is pretty standard error. To fix this...
a) You can increase java heap size. Talk to BASIS team
b) You can design interface to read data of mesg size not more than 5 mb.
c) Also if you increase your hardware, memory resources this problem can be avoided.
I would recommend to design interface in such a way to read only required fields in the select query and control message size for each time.
Refer this [link |http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/17243] [original link is broken] [original link is broken] [original link is broken];for controlling high volume data...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Baskar,
Thank you for the suggestions. We cannot limit the data as I had mentioned we need to be able to pick up both the header and its corresponding line items to process one posting correctly.
Will memory increase resolve the issue? I am surprised PI cannot handle this size of messages.
Thanks,
Teresa
If you are using oracle database, uses ROWNUM field to fetch first set of records and you can update those records with the flag as true.
similarly If you are using MS SQL database, uses SELECT TOP command to fetch first set of records and you can update those records with the flag as true.
Like File/FTP adapter, the next poll interval would be as scheduled. The Administrator can then alter the table contents, to ensure lesser no of records are picked up.
Here You need to limit the no of rows if you again face the problem. Please chec the SAP Note
https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1296819
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check the steps within the note #994433 'XI AF on J2EE Engine terminates with OutOfemoryError'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.