I am adding a parsed value to an ArrayList. I am getting a lot of parsed values in webservice. Because of this, I am getting an out of memory error. How do I avoid this?
Asked
Active
Viewed 286 times
0
-
2Out of memory usually means that you're creating a whole lot of objects in a for loop or something. paste the code you've tried. – asgs Feb 21 '11 at 12:50
-
2Can **you** give an example? I.e. an example out of memory stacktrace, an example piece of code causing out of memory errors, etc... – Lukas Eder Feb 21 '11 at 12:51
-
I agree with asgs.Please paste your code if some one can help you. – Shashank_Itmaster Feb 21 '11 at 12:52
-
This is not possible to diagnose without seeing some code. – Don Roby Feb 21 '11 at 12:52
2 Answers
1
You are holding to many values in memory, find a way to store some of the data outside of memory so you can keep processing values without having to raise the amount of memory you use.

jzd
- 23,473
- 9
- 54
- 76