HighTechTalks DotNet Forums  

aspnet memory consumption

ASP.net Caching microsoft.public.dotnet.framework.aspnet.caching


Discuss aspnet memory consumption in the ASP.net Caching forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Mayakrishnan Manikandan
 
Posts: n/a

Default aspnet memory consumption - 11-03-2004 , 11:56 AM






My web server (IIS 5.0) runs only one intranet web application in Win2k
Server .For the first page alone, aspnet_wp consumes around 2-3 MB , but
doesn't release all. The first page is a search page which is used to
query a particular table with 10-15 parameters. It has got a datagrid
in it. All the database connections are properly closed and disposed,
datasets are disposed properly. But I still see some amount of memory
leak in it.

Does anyone have any idea on this ? Is there anything to do with the
way of loading data in datagrid or configurations in IIS ??????

Server Info :

Windows Server 2000 (Service Pack 4)
RAM - 4GB
Pentium III , 1400 MHz * 2 (Dual Processors)
IIS 5.0
Hard Drice : 60 GB






*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Reply With Quote
  #2  
Old   
Ben Strackany
 
Posts: n/a

Default Re: aspnet memory consumption - 11-16-2004 , 02:26 PM






Maybe there isn't a leak at all, but garbage collection just hasn't run yet.
ASP.NET won't instantly release the memory if it doesn't need to. A leak
would be if it continued to consume more & more memory every time the page
was run over a long period of time.

Try sticking GC.Collect at the end of that page & see if the memory gets
released. If it does, then you don't have a leak -- it's just a normal GC
issue. You may want to take GC.Collect back out when you're done testing.

HTH

--
Ben Strackany
www.developmentnow.com

<a href="http://www.developmentnow.com">dn</a>


"Mayakrishnan Manikandan" <manikandanm (AT) changepond (DOT) com> wrote

Quote:
My web server (IIS 5.0) runs only one intranet web application in Win2k
Server .For the first page alone, aspnet_wp consumes around 2-3 MB , but
doesn't release all. The first page is a search page which is used to
query a particular table with 10-15 parameters. It has got a datagrid
in it. All the database connections are properly closed and disposed,
datasets are disposed properly. But I still see some amount of memory
leak in it.

Does anyone have any idea on this ? Is there anything to do with the
way of loading data in datagrid or configurations in IIS ??????

Server Info :

Windows Server 2000 (Service Pack 4)
RAM - 4GB
Pentium III , 1400 MHz * 2 (Dual Processors)
IIS 5.0
Hard Drice : 60 GB






*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.