Session.Abandon()

G

Guest

I am trying to free up some memory by forcing a session.clear and a
session.abandon. When I startup the application, it starts at about 80,000
KB of memory in the aspnet_wp.exe. I am able to load a huge data table into
a session variable and watch my aspnet_wp.exe (w3wp.exe on 2003 server)
increase it's memory usage by about 70,000 KB to 150,000 KB. I then click a
Logout button, which uses Session.Clear and Session.Abandon. The memory
usage of the worker process remains at 150,000+ KB though. Shouldn't I see
it go down when my session ends, considering I just cleared out the Session
vars that included that huge datatable that caused the 70,000 KB increase?
 
A

Alvin Bruney - ASP.NET MVP

No, your memory will be released when there is a garbage collection.

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
 

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

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top