Wrox Programmer Forums
|
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 22nd, 2010, 10:31 AM
Authorized User
 
Join Date: Aug 2010
Posts: 12
Thanks: 0
Thanked 2 Times in 2 Posts
Default Session expires

f you use this code to determine if someone is logged in, then the user is not really being logged out, but the Session expires.
__________________
free web directory :yourowndir.com
seo service india : sbglobal.info
 
Old October 30th, 2010, 07:49 AM
Authorized User
 
Join Date: Aug 2010
Posts: 16
Thanks: 10
Thanked 0 Times in 0 Posts
Default

I'm bumping this because I've made progress on the problem.

http://forum.winhost.com/showthread.php?t=6203

It appears my website is using over 100MB of server resources which causes it to get recycled by the server.

I originally dismissed this as a problem because my whole website was under 10MB. Is it normal for a website to use such a proportion of resources?

My website needs to consume less server memory. I'm taking a guess here but is it better to have a number of small pages which each perform a single task than have one or two complex pages? Lately I've tried to condense the number of pages in my site but I'm thinking it may be causing each page to put a larger strain on the server.
 
Old October 30th, 2010, 08:23 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
I originally dismissed this as a problem because my whole website was under 10MB. Is it normal for a website to use such a proportion of resources?
The size of a web site has nothing / not much to do with memory consumption. You can store a 100MB object in session state with just a few lines of code ;-)

So, I guess it all comes down to what you do and how that affects memory. Do you store lots of objects in session or application state? Do you have a long session timeout? Are you, for example, generating images on the fly and do not dispose of all your objects? Could you have other memory leaks by not using a using statement (or calling Dispose in a Finally block) on disposable objects such as ObjectContexts or SqlConnections?

You may want to take a look at red Gate's memory Profiler: http://www.red-gate.com/products/ant...iler/index.htm and see if you can find the cause of this problem.

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
R4VEN (October 30th, 2010)
 
Old October 30th, 2010, 08:32 AM
Authorized User
 
Join Date: Aug 2010
Posts: 16
Thanks: 10
Thanked 0 Times in 0 Posts
Default

I don't think I was storing anything in session state or application state.

I don't think I dispose of my objects.

Also I've never used the using keyword.

That program looks awesome I'll spend some time with that and try to streamline my application.

I'll also research disposing objects. Thank you so much! :)





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to redirect a user after timeout in asp.net mvc? chobo2 ASP.NET 3.5 Basics 0 November 8th, 2009 10:29 PM
Login Timeout Expired error smnel ASP.NET 2.0 Basics 0 May 7th, 2008 06:58 AM
Asp .Net 2.0 request/response timeout problem VijayT .NET Framework 2.0 5 February 5th, 2007 01:26 PM
ASP.Net Timeout Problem busher ASP.NET 1.0 and 1.1 Professional 1 December 8th, 2005 01:17 AM
ASP.Net: 'Timeout expired' Error umertahir Classic ASP Databases 5 May 13th, 2005 01:23 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.