it's difficult to help with so little information, but there are two option - more memory or less data. The latter is usually the easiest, so I would look to see how I could consume data in more manageable pieces.
More memory wont help, the application can only allocate 1GB of ram anyways.
The solution would most likely be that you change the flow of your proces or split Up the actions so i can release the memory before it runs out.