We understood that we cannot fit a 10GB file into only 1GB of memory or 4GB of memory i.e. RAM size.
Even for the 77Mb file it might not be enough depending on your implementation.
Memory issue is a common problem for applications that need to handle large XML files.
The XML parser of BW works roughly like a DOM parser.
Meaning, it loads the whole XML file into memory. This is not really design for working with huge XML.
For reading a large XML file you will need to use a different XML parser that does not load the whole XML (like stax or sax or other ?). For this you need to use "java code".
Design steps:
Step1 : Get the stax jar file and java code from open source links stax xml parser.
Step2: Do the necessary steps for copy the jar file in tibco library folders.
Step3: Design one subprocess with java Code and configure the parameters as required for Jar file.
Step4: Design the Main Process File Pollar, callprocess and Parse XML.
Step5: Select the subprocess (which we designed in Step2) in main process call process.
Solution example posted in this blog with title BW solution for Large XML Files.
Even for the 77Mb file it might not be enough depending on your implementation.
Memory issue is a common problem for applications that need to handle large XML files.
The XML parser of BW works roughly like a DOM parser.
Meaning, it loads the whole XML file into memory. This is not really design for working with huge XML.
For reading a large XML file you will need to use a different XML parser that does not load the whole XML (like stax or sax or other ?). For this you need to use "java code".
Design steps:
Step1 : Get the stax jar file and java code from open source links stax xml parser.
Step2: Do the necessary steps for copy the jar file in tibco library folders.
Step3: Design one subprocess with java Code and configure the parameters as required for Jar file.
Step4: Design the Main Process File Pollar, callprocess and Parse XML.
Step5: Select the subprocess (which we designed in Step2) in main process call process.
Solution example posted in this blog with title BW solution for Large XML Files.