Shared memory and running multiple copies of the executable

I have an application (winform exe) that I run several times. Does this mean that I have common assemblies or each instance has its own copy of assemblies? When I launch the application, it uses about 30 MB (in the task manager), and when I launch another copy of the application, it uses another 30 MB.

How can I determine how much memory it uses, and if I can reduce memory usage, if I run multiple instances?

Relationship JD.

+3
source share
3 answers

It's complicated.

Start by reading my recent article on virtual memory.

http://blogs.msdn.com/ericlippert/archive/2009/06/08/out-of-memory-does-not-refer-to-physical-memory.aspx

, , , , , DLL . , , Foo.DLL. ONCE, . , , , 4 . 4KB BOTH . , 30 .

, . " ", " ". " " - , , . " " - , .

- , -, , . , 30 - . , - , , . , , , , . .NET- , .

+4

, , , . , Firefox.

+1

, , , 30 .

.

, , , ( ) , - . , , , , .

0

Source: https://habr.com/ru/post/1710945/


All Articles