I get a beautiful SystemOutOfMemory exception in my StringBuilders. This is not due to the lack of a ram, so I believe that this is a fragmentation of memory.
I have ~ 200 StringBuiler objects. All of them are reused (using strBldr.clear ()). This seems to make my system fragment memory quite badly. How can i solve this?
Thanks:)
EDIT:
Here are some details:
Maximum registered input size & stringBuilder: 4,146,698.
Restarting restartable string files / seconds:> 120 (possibly → 120)
Input length @ first error: 16 972 (string)
StringBuilder length @ first error: 16
The number of times a new stringBuilder @ was created @ first error: ~ 32500
General drum use @ first error 637 448K
source share