简体   繁体   中英

Arraylist issue - Out of memory error

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?

增加堆内存

-Xms64m -Xmx256m

您要在内存中保持许多值,找到一种将一些数据存储在内存之外的方法,以便可以保持处理值而不必增加使用的内存量。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM