How much RAM is .NET using?

S

SpookyET

Java applications start under java.exe/javaw.exe and you can see in the
task manager how much memory they use. I'm wondering how much memory .NET
is using compared to Java. I have 2 programs that do the same thing, one
in Java, using 200MB, and one in C++, using 20MB of RAM. I'd like to know
how you can see how much RAM .NET is using.

I know that .NET is much faster than Java, and I know that MS wouldn't
make large parts of Longhorn managed if it would take 10 times more
resources than native apps, but there must be some overhead.
 
J

Jon Skeet [C# MVP]

SpookyET said:
I know that .NET is much faster than Java

What makes you think that? There are some things Java is faster at, and
some things .NET is faster at. There are some things which are
significantly faster to do in native code than in either, and many
things where the difference between native code and managed code is
very small.
 
M

Michael Giagnocavo [MVP]

What does this mean "how much memory .NET is using"?

Do you mean the size of the class libraries? The JIT engine (if loaded)? The
managed heap?

Using Task Manager you can only get gross approximations as to how much
memory any app is using. Use google groups and search for dotnet memory and
so on.

As far as Longhorn, you're right. They wouldn't use something where
performance was not acceptable. Lots of resources are going into the JIT
engine (which powers the preJIT AFAIK) and performance in general.

-mike
MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top