[Mono-devel-list] Too many heap sections: Increase MAXHINCR or MAX_HEAP_SECTS

Paolo Molaro lupus at ximian.com
Thu Aug 4 10:12:16 EDT 2005

On 08/02/05 Joannes Vermorel wrote:
> I am currently developping a scientific computing application in C#.
> Basically, the application is simple, first it loads from a text file
> roughly 100MB of data, and then run a CPU intensive algorithm. The memory
> required while running the algo is around 600MB. I am not using anything
> beyond the System.Collections in .Net.
> On MS .Net 1.1, the computation works well and terminates properly. On a
> linux AMD64 (with 8GO of memory), the program is aborded at mid-computation
> and the only message that I get is
> Too many heap sections: Increase MAXHINCR or MAX_HEAP_SECTS
> (I am using mono 1.1.8, compiled with the option --with-large-heap=yes).

Could you provide the code and the data? If not you'll have to
debug the issue yourself. Try setting the GC_PRINT_STATS or
GC_DUMP_REGULARLY environment vars and see if the GC heap
gets fragmented or if it increases too much.
What kind of collections do you use? Do you allocate many small


lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better

More information about the Mono-devel-list mailing list