pablo
pablo

Reputation: 6402

.NET CLR Memory\% Time in GC

I'm testing an app that reads thousands of small objects and sends then back to the client through remoting.

Using ProcessExplorer from SysInternals I see the ".NET CLR Memory\% Time in GC" is bigger than 50% under heavy load.

Thanks

Upvotes: 2

Views: 3192

Answers (1)

Jeroen Landheer
Jeroen Landheer

Reputation: 9903

AFAIK Value types are put on the stack, reference types are put on the heap. Once you go "out of scope" releasing value types (i.e. structs) is a lot faster than releasing objects on the heap (these are GC-ed).

About the %time in GC, take a look here

Hope this helps.

Upvotes: 4

Related Questions