Memory leaks?
I see reports from several years ago of memory leaks. I find I have to close LinqPad regularly because it consumes a lot of memory - I just killed a collection of LP processes, one of which was consuming over 2GB and another over 1.5GB and the total in use by LinqPad processes was over 8GB. It seemed to be holding onto processes for tabs I'd closed because there were only 4 tabs in which I'd executed queries, but there were 10 processes other than the main app process.
When I restart LP (which I kill in Task Manager because otherwise I lose my queries and even then I have to reopen any that were previously saved), only the main process and one user query process (though I've executed no queries) appear. As soon as I start executing queries the memory footprint rapidly builds. The memory used by a user query process doesn't only take up whatever is needed for the execution. The memory used keeps going up for a while, then becomes fairly stable (it does keep growing, seemingly going up by a few hundred kB over several minutes, which is perhaps why it consumes more and more memory even if I just leave it open for a long time after executing at least one query) until the next time I execute it. Then it seems to rise by a bigger chunk again. So each time I execute a query or if I execute and then leave LP running for a long time, the footprint of the process grows unless I regularly kill the processes in Task Manager.
-
Craig commented
This is on v5.05.02, by the way.