This Time, Virtual Memory Does Matters?

We’ve spent weeks trying to run our game robusted with iOS x64 IL2CPP build settings. After several Unity patches, the socket/thread part seem to be stable now. Yet we stuck in another problem which seems related with virtual memory.

The game crash with certainty running around 10 to 20min with the log :
allocate_free_list_pages() – virtual memory exhausted!
or something like that :
malloc: *** mach_vm_map(size=606208) failed (error code=3)
*** error: can’t allocate region
*** set a breakpoint in malloc_error_break to debug
2015-04-07 15:18:09.153 mu[424:90683] Could not allocate memory: System out of memory!
Trying to allocate: 593888B with 16 alignment. MemoryLabel: String

We have a good memory management. In the Xcode Instruments profiler, our game’s RAM usage constrains between 160 to 230MB. However as for Virtual Memory, it starts at around 1000MB and increases continuously with 30kb per second! until the game crashed!

Is that really a virtual memory problem? Is RAM usage remain same while VM increasing a normal thing? or I just look at the wrong direction.

Hi, i just faces the same problem as you said. Do you solve that by now?