Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
How to avoid Out of Memory Exception in IIS 7.5? I am using asp.net with c#.
I tried to load all active cards in my site [400 thousand]. I waited for 5-10 minutes. Then also the report was not loading. I tried to load the same report 3 more times. During this time Site was okay.

But within 10 minutes, portal started showing error in report and also reading or accepting files was failing. No other malware backprocesses were running. On restarting the Web Server it became fine. I want to resolve this.
Posted

1 solution

Dear Rahul


I. Release your all object because some object can contain more data like dataset,datatable,session etc .
II. After realesing object worker process can process easly.
III. Close your Sql-connection,File IO Operation after you have used it.
IV. Close all Datareaders after you have used
V. after using dataset release all values from dataset
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900