Click here to Skip to main content
15,887,270 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a vb.net application I developed that in the end I had to use GC.collect called at a specific point in the application cycle to avoid performance impact (whilst the task was at idle). This seemed to work for me. The question Is when I deployed, i ended up with multiple Applications running on the same PC, whose GC.collect/idle times happen at approximately the same time. I think this arrangement is causing an issue but I don’t know how to prove it. Has anyone else had experience of calling GC.collect at the same time from multiple applications? Is the scope of the collector for the application only or does it consider the entire application memory in the PC I.e if I called it once from 1 application instance, would it clean up the Garbage from other running applications who I know to be at idle?

What I have tried:

Disabled all other garbage collection in loaded libraries that are used in the program. Tested the performance of forced GC.collect vs automatic heuristic driven (the forced collection was more consistent when I decided when to call)
Posted
Updated 18-Nov-19 7:47am

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900