The whole cache part is already commented....
have a quick question regarding variables.
Q-1)All variables which I create in a VB file (even public variables , all datasets ) gets destroyed and cleared after page is executed (means page is displayed) ????
Q-2)variable inside function gets destroyed once function is complete so I dont need to worry but what about public variable which I declare in class scope (so that I can use them in .aspx also) do they also get destroyed once page execution is complete.??
Q-3) while executing any page suppose I am retrieving some data from backend and storing in dataset, could that data be so large that memory threshold gets crossed and application pool gets shutdown..?but in this case 503 error should come only on a
I am trying dotnet profiler also to keep a track of memory usage. I am running same code on my local machine with dotnet profiler.
live instance and live memory usage remains same but total instances and total memory usage keeps increasing.
some statisctics- when I go from page1 to page2 again to page1 then to page2 and the to page1
page1 page2 page1 page2 page1
total instance 62,976 84,421 84,316 82,185, 86,720
live instance 61,620 74,314 75,545 74,845 76,126
Total memory(bytes) 4,096,751 5,829,198 8,183,464 6,300,569 7,512,323
live memory(bytes) 3,705,235 4,437,829 4,871,300 4,478,517 4,603,951
earlier I was using
Response.Cache.SetExpires(DateTime.Now.AddDays(1))
in page 2(statistics are posted after removing this line)