Answer the question
In order to leave comments, you need to log in
GC does not work in the application, what should I do?
The problem is not exactly what is written in the question, the application consumes only 24 MB of RAM, but "fills" the entire RAM with "pending memory", which is not cleared even after the application ends, only memreduct or reboot helps. In itself, this is not scary, this memory is overwritten by other applications as needed, but I don’t like this behavior, can I do something with this?
The application reads a lot of data (over 50GB) from the disk in 500kb portions, after processing the portion it overwrites it again and again. I think the problem is in the GC, because after "filling" the entire RAM with this garbage, the GC.Collect () command crashes with an error.
Answer the question
In order to leave comments, you need to log in
There are cached data that can theoretically be reused. On the Internet, there were references to a program called RamMap. It will help to identify the resources polluting the memory. By the way, GC has nothing to do with it, of course, if your reading code is not a curve and everything is released correctly. After all, the OS is responsible for cached data in memory, not the GC.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question