Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.net application size in memory

What are the ways to reduce the amount of memory my applications take in RAM?..Because even 30kb application loads ~20Mb of "unneeded" dlls.Am i mistaking when i think that any .NET app takes at least 10Mb in working set of memory when we need a form with text in it? Couldn't find any explanation of this :(

PS question is closed. But i suggest everyone interested in how CLR works read this: CLR via C#

like image 240
0x49D1 Avatar asked May 21 '26 12:05

0x49D1


2 Answers

I found this post helpful.

like image 108
Xn0vv3r Avatar answered May 23 '26 00:05

Xn0vv3r


First .NET application launch takes a lot of memory to load a lot of .NET internal data, but all other launches of this application or another one would take a significantly less.

like image 23
abatishchev Avatar answered May 23 '26 01:05

abatishchev