I am currently running a program in mono (Mac OSX) that reads through a very large data file and creates summary statistics after aggregation.
Mysteriously, I get the following error message at some point in the program:
Garbage collector could not allocate 16384 bytes of memory for major heap section
I was hoping for an OOM exception, or something else I could work with. I have tried upping the max-heap-size with:
export MONO_GC_PARAMS=max-heap-size=4g
but, it winds up telling me that I need to set it to an integer, trying to input the value manually with appropriate zeros leads to a gdb dump at the start of execution.
The thing that annoys me about this is that I think at this particular section of code where it breaks, there is 16384 bytes available on the machine, and i think it should be able to GC just fine and get more memory.
Does anyone know how to fix this?