0

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?

Illidanek
  • 1,003
  • 1
  • 18
  • 32
mohan
  • 12,519
  • 29
  • 106
  • 172

2 Answers2

2

increase heap memory by

-Xms64m -Xmx256m

Community
  • 1
  • 1
jmj
  • 232,312
  • 42
  • 391
  • 431
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,279
  • 8
  • 53
  • 76