I developed an website in ASP.NET MVC 3.0 with NHibernate its deployed on server now my IT infra team informed that this site is taking upto 1.5 GB Memory (RAM) even when no user hits are their.
I asked them for server/IIS error to check wether any URL goes fail and also asked for an minimum benchmark of Memory for an ASP.NET MVC 3.0 website.
Can any one tell me what should i check for why this website is taking that much of memoey?
Or is it normal for ASP.NET MVC 3.0 WEbsite.
What is the minimum limit for such website.?
IT Infra team gives me
This File.can any one one tell me whats the problem
You can use Outputcache on your controller actions which have expensive queries to executes.
You can define cache durations in your web.config file with names such Long - 600sec n Short - 10seconds of caching.
Thanks
With Regards
Abhishek Rajiv Luv
"Helpful then please Mark as Answer"
http://www.codeabstract.com/
http://pluralsight.com/training/users/abhishekluv
Use a decent memory profiler like RedGate ANTS Memory Profiler.
I used .NET Memory Profiler 4.5 on my local machine but its taking hardly 500 MB on user hits if no hits to localhost then it slowly release memory to 180MB. 180MB is the constant memory consumption if no user hits are there.
is there any need to check on live server with Memory Profiler?
My IT infra team inform that when application pool is restarted memory consumption of w3wp.exe for my website is near about 200-210 MB as user hits increase consumption also get increase but when there is no hits to website it will not release memory.
How abt cache uses in your app, both Session and Applicaiton Cache? Looks like you are storing data in cache or sessionstate which is never gettting released.
rover886
Member
97 Points
55 Posts
ASP.NET MVC 3.0 website takes 1.5 GB Memory.
Jan 14, 2013 08:14 AM|LINK
I developed an website in ASP.NET MVC 3.0 with NHibernate its deployed on server now my IT infra team informed that this site is taking upto 1.5 GB Memory (RAM) even when no user hits are their.
I asked them for server/IIS error to check wether any URL goes fail and also asked for an minimum benchmark of Memory for an ASP.NET MVC 3.0 website.
Can any one tell me what should i check for why this website is taking that much of memoey?
Or is it normal for ASP.NET MVC 3.0 WEbsite.
What is the minimum limit for such website.?
IT Infra team gives me This File.can any one one tell me whats the problem
ignatandrei
All-Star
135184 Points
21682 Posts
Moderator
MVP
Re: ASP.NET MVC 3.0 website takes 1.5 GB Memory.
Jan 14, 2013 08:21 AM|LINK
Do you put something in application ? Cache? Session?
Abhishek Luv
Participant
1746 Points
468 Posts
Re: ASP.NET MVC 3.0 website takes 1.5 GB Memory.
Jan 14, 2013 08:58 AM|LINK
You can use Outputcache on your controller actions which have expensive queries to executes.
You can define cache durations in your web.config file with names such Long - 600sec n Short - 10seconds of caching.
With Regards
Abhishek Rajiv Luv
"Helpful then please Mark as Answer"
http://www.codeabstract.com/
http://pluralsight.com/training/users/abhishekluv
CPrakash82
All-Star
18296 Points
2847 Posts
Re: ASP.NET MVC 3.0 website takes 1.5 GB Memory.
Jan 14, 2013 11:28 AM|LINK
Use a decent memory profiler like RedGate ANTS Memory Profiler.
No it is not unless you are doing heavy caching.
Shouldn't take more than few MBs, I have a site while does really large caching and it takes around 600MB.
rover886
Member
97 Points
55 Posts
Re: ASP.NET MVC 3.0 website takes 1.5 GB Memory.
Jan 16, 2013 12:05 PM|LINK
I used .NET Memory Profiler 4.5 on my local machine but its taking hardly 500 MB on user hits if no hits to localhost then it slowly release memory to 180MB. 180MB is the constant memory consumption if no user hits are there.
is there any need to check on live server with Memory Profiler?
My IT infra team inform that when application pool is restarted memory consumption of w3wp.exe for my website is near about 200-210 MB as user hits increase consumption also get increase but when there is no hits to website it will not release memory.
CPrakash82
All-Star
18296 Points
2847 Posts
Re: ASP.NET MVC 3.0 website takes 1.5 GB Memory.
Jan 16, 2013 01:35 PM|LINK
How abt cache uses in your app, both Session and Applicaiton Cache? Looks like you are storing data in cache or sessionstate which is never gettting released.
rover886
Member
97 Points
55 Posts
Re: ASP.NET MVC 3.0 website takes 1.5 GB Memory.
Jan 17, 2013 07:53 AM|LINK
In application no data is stored in Applicaiton Cache.
About session i am storing only loginAccountId (int) after login and i m realse it on logout link.
CPrakash82
All-Star
18296 Points
2847 Posts
Re: ASP.NET MVC 3.0 website takes 1.5 GB Memory.
Jan 17, 2013 11:18 AM|LINK
Do you have trace enabled in the web.config file or Memory Leak in your .NET Code.
make it <trace =enabled="false"...
http://www.codeproject.com/Articles/42721/Best-Practices-No-5-Detecting-NET-application-memo
DannyMualim
Member
260 Points
77 Posts
Re: ASP.NET MVC 3.0 website takes 1.5 GB Memory.
Jan 18, 2013 10:37 AM|LINK
Is it happenning in IE 9 only? what about other browser?
Danny