How much memory does my .NET application use? [Tim Anderson]
source : http://www.itwriting.com/dotnetmem.php
Comme quoi le task manager n'est pas toujours sur ...
Many developers are surprised by the high memory usage that Task Manager reports for their .NET application. But is Task Manager giving misleading information? By Tim Anderson.
Here's what happens when you minimize a Windows application: Working Set drops dramatically, but Private Bytes stays flat.
If you search back through .NET discussion groups you’ll see many conversations like this. Newcomer to .NET says: “I’ve just been looking at Task Manager. Why does my simple VB.NET Windows application use 12MB RAM?” The answer comes back, “Don’t worry. The app doesn’t really use that much RAM; Windows will give it back if other apps need it. Minimize your application and you’ll see how little it really needs.” Newcomer minimizes the app, and sees the Mem Usage reported go down to say 750K. You don’t even need to minimize it: if you execute the API call SetProcessWorkingSetSize with -1,-1 arguments, then Windows will trim the working set immediately.
la suite >>>
Ce post vous a plu ? Ajoutez le dans vos favoris pour ne pas perdre de temps à le retrouver le jour où vous en aurez besoin :