Enterprise SAP ALE Sever v4.2 - Out of Memory Issue in handl

We are facing problems in getting large Idocs from SAP R/3 System ( 4.6C)

The error seems to occur when the IDoc for a single invoice exceeds 5,000 segments. I have seen IDocs with over 11,000 segments and expect larger ones.
System Details
webMethods Server: webMethods enterprise 4.1.1 (ES)
webMethods Broker : 4.0
SAP Adapter : Enterprise ALE Server 4.2 adapter
Service Pack : 4
SAP System : 4.6C
Out of Memory Error Limit : The error seems to occur when the IDoc for a single invoice exceeds 5,000 segments.

Pls suggest how to overcome it , Does Service Pack 5 provide any help

Regards
Deepak

Deepak,

You just have to allocate more memory to the adapter.
Customers are encouraged to use the latest SP5, because of its new features.
But it will not make a difference in your specific situation.

We have benchmarked the ALES adapter, using a dual PIII machine.
Sending heavily populated Invoices(full SDATA) from SAP to the Broker we measure how long it takes for the listener to receive an IDOC, parse it, post it to the Broker and become available to process a subsequent event.

Segment # Milliseconds Memory Peak usage
100 70 28Meg
870 300 55
2000 750 58
8600 3000 162
23400 9000 250

You should adjust the Java heap size from the Adapter manager.
Keep in mind that if you continue sending IDOCs back to back, you are “racing” against the JVM garbage collector. So, memory consumption temporarily might continue going up, until the GC reclaims it.
For exmaple, to process 10 back to back 8600 segments IDOCs, you will need even more than 162 Megs, but eventually the GC will free up the space.

Hope this helps
Vasilis