Welcome Guest ( Log In | Register )


 
Reply to this topicNew Topic
Memory usage OracleSP-mapping
Rhenus ICT Servi...
post Feb 24 2009, 10:52 AM
Post #1


Regular Contributor
***

Group: Members
Posts: 31
Joined: 6-November 08
Member No.: 82


When processing a file of 4.3 MB with approx. 24000 lines (records) using an object-mapping (FILEIN -> ORACLESP) the memory usage is quite high (around 700 MB) and the processing takes about 15 minutes (even on an fast Oracle-testserver that is not doing much besides receiving the data XIB delivers)

When the map is running I can see the memory usage going up 1 MB per second blink.gif

Why is XIB (2.1.1) using so much memory in a ORACLESP-mapping and why is it taking so long. (a simple DB dump with the sqlloader is much, much faster) ? unsure.gif

I already placed a //DISPOSE directive at the input-container, but this is not having any effect.

Also the proc.engine is not returning the memory to the system after completing the mapping; it's only given back to the system after manually stopping the proc.engine. huh.gif
Go to the top of the page
 
+Quote Post
vidya
post Feb 25 2009, 06:09 PM
Post #2


Visitor
*

Group: Members
Posts: 2
Joined: 30-January 09
Member No.: 304


give a try with the BEQUEATH_DETACH strategy
Go to the top of the page
 
+Quote Post
Rhenus ICT Servi...
post Feb 26 2009, 08:18 AM
Post #3


Regular Contributor
***

Group: Members
Posts: 31
Joined: 6-November 08
Member No.: 82


QUOTE
give a try with the BEQUEATH_DETACH strategy


What is this 'BEQUEATH_DETACH strategy' and how do I configure this?

P.S. I have the strong impression that after installing a lot of patches recently (incl. SP3 + additional patches for SP3) there is something fundamentally wrong in the way a proc.engine ends processing a mapping; e.g. the DATABASE CLOSE command does NOT close the DB connection anymore. I already submitted a supportcase to Axway Support for this. rolleyes.gif
Go to the top of the page
 
+Quote Post
Rhenus ICT Servi...
post Mar 10 2009, 09:35 AM
Post #4


Regular Contributor
***

Group: Members
Posts: 31
Joined: 6-November 08
Member No.: 82


I found the cause of the excessive memory usage with this particular FILEIN -> ORACLESP mapping. smile.gif

This mapping uses a dedicated HME/Proc.Engine/OracleSP Connector combination. In the advanced settings I had to raise the 'Maximum string size' to 4096, because this OracleSP Connector is also used by another mapping that feeds large texts into an OracleDB. Now when processing this 'big' file of 4.3 MB it uses this 4096 stringsize and starts to use lots of memory. blink.gif

I now configured a new HME/Proc.Engine/OracleSP combo with the default stringsize of 256 for processing the 'big' file of 4.3MB. The memory usage is a lot smaller (around 90MB) and the processing appears to be a bit faster, although still not very fast. mellow.gif

After processing the data, the memory is still not returned to the system... huh.gif

What exactly does this 'Maximum string size' setting mean? Is it the maximum size of 1 IN-parameter of the called OracleSP or the TOTAL of all IN-parameters of the called OracleSP ?
Go to the top of the page
 
+Quote Post
ptwyhk
post Mar 18 2009, 07:31 AM
Post #5


Visitor
*

Group: Members
Posts: 3
Joined: 6-November 08
Member No.: 51


QUOTE (Rhenus ICT Services @ Feb 26 2009, 08:18 AM) *
P.S. I have the strong impression that after installing a lot of patches recently (incl. SP3 + additional patches for SP3) there is something fundamentally wrong in the way a proc.engine ends processing a mapping; e.g. the DATABASE CLOSE command does NOT close the DB connection anymore. I already submitted a supportcase to Axway Support for this. rolleyes.gif



I also have your impression. Regarding the DB connection, in my case, there are a memory leakage. Finally, we doesn't depend on Integrator DB connector and make a java program to handle the case.
Go to the top of the page
 
+Quote Post
Rhenus ICT Servi...
post Mar 26 2009, 08:27 AM
Post #6


Regular Contributor
***

Group: Members
Posts: 31
Joined: 6-November 08
Member No.: 82


QUOTE
P.S. I have the strong impression that after installing a lot of patches recently (incl. SP3 + additional patches for SP3) there is something fundamentally wrong in the way a proc.engine ends processing a mapping; e.g. the DATABASE CLOSE command does NOT close the DB connection anymore. I already submitted a supportcase to Axway Support for this.

This problem has been 'solved' by using a WORKAROUND; Axway apparently implemented something called 'oci-session-pooling', which was 'falsely' enabled by default after installing a certain patch. To turn this feature off you must set the environment-variable 'EDI_ORACLE_OCI_SESSION_POOL_ENABLE' to '0' (e.g. EDI_ORACLE_OCI_SESSION_POOL_ENABLE=0). Now the 'DATABASE CLOSE' will work as before.

The memory is still not cleared after ending an OracleSP-mapping, but I already opened a new supportcase for this.
Go to the top of the page
 
+Quote Post
Rhenus ICT Servi...
post Apr 16 2009, 01:10 PM
Post #7


Regular Contributor
***

Group: Members
Posts: 31
Joined: 6-November 08
Member No.: 82


I finally traced down the root-cause of the excessive memory-usage; we were still using version 9.2.0.1 of the Oracle Client. After a fresh install of Oracle Client version 9.2.0.4 the memory-usage is MUCH lower. biggrin.gif

In one of the patches I installed, the file $CORE_ROOT/4edi/dbload/oracle92.db was updated and did not work very well anymore with version 9.2.0.1 of the Oracle Client. mellow.gif

The memory used by the OracleSP mapping is still not fully cleared after map-ending...
Go to the top of the page
 
+Quote Post
Tony
post Apr 20 2009, 04:52 PM
Post #8


Regular Contributor
***

Group: Members
Posts: 44
Joined: 6-November 08
From: Washington, D.C.
Member No.: 50


Thanks for continuing to fill us in on the information you're uncovering. I'm sure others are following it as well and it's great to have the chronicling of information so that we can see the steps taken, what worked, what didn't, and what eventually resolves things with issues like this! It's great to have such valuable contributors to the Axway Customer's body of knowledge!

QUOTE (Rhenus ICT Services @ Apr 16 2009, 08:10 AM) *
I finally traced down the root-cause of the excessive memory-usage; we were still using version 9.2.0.1 of the Oracle Client. After a fresh install of Oracle Client version 9.2.0.4 the memory-usage is MUCH lower. biggrin.gif

In one of the patches I installed, the file $CORE_ROOT/4edi/dbload/oracle92.db was updated and did not work very well anymore with version 9.2.0.1 of the Oracle Client. mellow.gif

The memory used by the OracleSP mapping is still not fully cleared after map-ending...



--------------------
[i][size=2]--
Tony Lloyd
Sr. Axway Consultant
Washington DC Area
Mobile: 703-261-4449
Go to the top of the page
 
+Quote Post

Reply to this topicNew Topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Skin designed by IPB Forum Skins