Hi Rashmi,
Per my experience, which is a bit dated, GatewayScript is rather sensitive to large payloads if you want to work heavily with them.
Back in the old dw DP forum, like 4 years ago we discussed with a user some 600MB to 2GB payload processing.
That thread got migrated to the CSP forum, you find it at
https://www.ibm.com/mysupport/s/question/0D50z00006AB67W/gatewayscript-and-large-files - just the formatting is maybe a bit ugly and hard to follow.
Expectably a first challenge is the 256 MB String limit.
Next limit is the 1 GB for one Buffer.
I'm not sure if anyone managed to successfully and fast process anything above 2 GB. In my testing back then things went slow like minutes fast if beyond 1.5 GB.
Not sure if traditional DP binary processing is the better model for such payloads.
Anyway, you are talking about just 70 MB, so ensure your loops are not to wild and you stay efficient in what you do, leveraging built in functions and proper regexes or whatever is needed.
You see I didn't look specifically into your GWS hear, but just wanted to give you a broader picture of what to expect.
------------------------------
August Ziesemer
------------------------------
Original Message:
Sent: Mon April 20, 2020 11:35 AM
From: Rashmi Chandra
Subject: Maximum Size for datapower file processing
Hi Herman,
I am using .readAsBuffers() to read the file . The appliance is able to process ~70mb file without transformation.The problem start when i am trying to transform the data using "For loop". The appliance is becoming unreachable for few mins and action never completes. The same script works fine for small size files. I have attached the gateway script. Please let us know if there is more suitable approach.
------------------------------
Rashmi Chandra
Original Message:
Sent: Mon April 20, 2020 05:45 AM
From: Hermann Stamm-Wilbrandt
Subject: Maximum Size for datapower file processing
There is no size limitation.
For XML processing, a streamable stylesheet can process arbitrary big XML documents.
Years back with 5.0.0.0 firmware as first 64bit firmware, I processed a 25GB XML file non-streaming. There is a rule of thumb that internal memory size of XML file is roughly 3 times the file size. I did process on an IDG with 96GB memory, expect to be able to process 50GB XML file in an IDG-X2 with 192GB ram size. Of course only one at a time, since all transactons share DataPower ram.
For Non-XML processing, you can process files up to 1GB with .readAsBuffer(). For files bigger than 1GB please use .readAsBuffers().
Btw, 7.7 firmware is out of support since 2018.4.1 shipped last year.
------------------------------
Hermann Stamm-Wilbrandt
Compiler Level 3 support & Fixpack team lead
IBM DataPower Gateways (⬚ᵈᵃᵗᵃ / ⣏⠆⡮⡆⢹⠁⡮⡆⡯⠂⢎⠆⡧⡇⣟⡃⡿⡃)
Original Message:
Sent: Sun April 19, 2020 03:03 AM
From: Rashmi Chandra
Subject: Maximum Size for datapower file processing
Hi All,
What is maximum size of non-xml file size that can be processed IDG.7.7.1.3.
We have file till 6 GB size and would like to transform then using gateway script action. Currently , I am able to process ~ 10MB. The maximum message size in XMl-manager is set to 0 .
------------------------------
Rashmi Chandra
------------------------------