If it is a flat file sent via a card, do you convert it to XML correctly? The increase in size can be huge. XML can easily add a factor of 5-10 times on a flat file. Especially if you use descriptive or long xml tag names (which would usually be).
Something simple that you could try is to rename the xml nodes to shorter names, depending on the number of records (sounds a lot), this can significantly affect the amount of your memory.
, , , ( , ). . , , , 125 , , , , .