wvnoort wrote:
The main problem is that a lot of data is fetched. As an example, the function i am now working on fetches about 6800 rows and prefetches 2 additional collections (with a total of 145000 rows and 235000 rows). Furthermore, there can be more threads with similar amounts at the same time.
That's indeed a lot.
Though a lot of memory is currently wasted on entity field info which should be shared among all instances. I hope to bring down memory usage a lot in v2.0.
In the meantime, try paging, if possible.
[Edit]
By the way, does anybody know a method to find out how much memory is still available for the current process/thread?
Have you tried performance monitor? Ok, not from code, but you can examine a lot of counters related to .NET which can give you a clear picture what the memusage is of the current thread/appdomain etc.