garbage collection in asp.net

G

Guest

I've done some searches on the gc in asp.net and not 100% sure how it works. I just implemented a new asp.net system that accesses only sql2000. The primary architecture is the .net data access class (the one provided on microsoft's site), a data access layer that returns strongly typed datasets and the aspx pages that interact with the data access layer. If I keep an eye on the memory being utilitized by the worker processes (via taskmgr) I see it start at around 30K and will grow to around 140k. Will this memory continue to grow until the garbage collector deems that the heap is full ? Is there something wrong with my code ( a memory leak of some problem ) ? If I stress test the site 5 concurrent users running for over 2 hours pounding all the pages the memory only went up about 6k over the 2 hour period. In Java I've used the heap analysis tool (HAT) to see the behavior of the gc. Is there something similar in .net ?
 
J

Jeremy

If I keep an eye on the memory being utilitized by the worker processes
(via taskmgr) I see it start at around 30K and will grow to around 140k.

Task Manager is not an exact way of monitering memory usage, if you watch it
for other programs under NT/2K/XP, you will see that much more memory is
allocated than is actually being used. You may want to consider using
performance counters and the app test center.

the heap is full ?

Yes, see the .NET docs on garbage collection for a complete explaination on
how the GC grows, collects, and populates generations.

Garbage Collector basics & performance:
http://msdn.microsoft.com/library/en-us/dndotnet/html/dotnetgcbasics.asp?frame=true

Programming the Garbage Collector:
http://msdn.microsoft.com/library/e...programmingessentialsforgarbagecollection.asp



Not likely. But no one could say for sure with out seeing the code.

pounding all the pages the memory only went up about 6k over the 2 hour
period.
gc. Is there something similar in .net ?

Not that I know of. I did a search on google and MSDN, but found nothing
(althought, it was a short search).

-
Jeremy
 
G

Guest

what is the best performance monitor for me to add to check for the memory being used by my asp.net app
----- Jeremy wrote: ----
(via taskmgr) I see it start at around 30K and will grow to around 140k

Task Manager is not an exact way of monitering memory usage, if you watch i
for other programs under NT/2K/XP, you will see that much more memory i
allocated than is actually being used. You may want to consider usin
performance counters and the app test center

the heap is full

Yes, see the .NET docs on garbage collection for a complete explaination o
how the GC grows, collects, and populates generations

Garbage Collector basics & performance
http://msdn.microsoft.com/library/en-us/dndotnet/html/dotnetgcbasics.asp?frame=tru

Programming the Garbage Collector
http://msdn.microsoft.com/library/e...nprogrammingessentialsforgarbagecollection.as



Not likely. But no one could say for sure with out seeing the code

pounding all the pages the memory only went up about 6k over the 2 hou
period
gc. Is there something similar in .net

Not that I know of. I did a search on google and MSDN, but found nothin
(althought, it was a short search)


Jerem
 

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