Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
WHEN WE TRY TO IMPORT A FILE 900MB XML, WHY HAVE OVER 200,000 PRODUCTS FOR AN ONLINE STORE, GIVES SERVER PROBLEMS, WHICH WOULD BE THE OPTIMAL SETTINGS FOR IMPORT FILES SO BIG?
THANKS SO MUCH.
ERROR:
Memory allocation failed : growing buffer on line 0. Error code: 2 There was an error parsing the XML document.
Comments
Comment #1
j4rk0r CreditAttribution: j4rk0r commentedMemory allocation failed : growing buffer on line 0. Error code: 2 There was an error parsing the XML document.
Comment #2
j4rk0r CreditAttribution: j4rk0r commentedComment #3
ethanLee CreditAttribution: ethanLee commentedyou can try to separate them into different files, like 30000 product each??. 200000 products need many memory resource......
Comment #4
twistor CreditAttribution: twistor commentedAre you using Feeds XPath Parser?
If so, then there's nothing you can really do unless you split up the XML into multiple files.
Another thing you could do is write a custom parser that uses a different XML parser that doesn't try to read the whole file at once.
900MB is a very, very large XML file. Trying to read it all at once is not feasible.