V
V
Vitaly Pukhov2015-05-07 15:33:13
Programming
Vitaly Pukhov, 2015-05-07 15:33:13

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

2 answer(s)
A
Alexey Kulakov, 2015-05-07
@Neuroware

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.

A
AxisPod, 2015-05-08
@AxisPod

Those. Is the GC to blame, and for example not the cyclic links created by you? For example on the same event handlers.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question