Microsoft IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationMicrosoft IIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #16  
Old May 19th, 2008, 04:33 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
ASP Free God 46th Plane (27500 - 27999 posts)
 
Join Date: Sep 2004
Location: Israel
Posts: 27,737 Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)  Folding Points: 377762 Folding Title: Super Ultimate Folder - Level 1Folding Points: 377762 Folding Title: Super Ultimate Folder - Level 1Folding Points: 377762 Folding Title: Super Ultimate Folder - Level 1Folding Points: 377762 Folding Title: Super Ultimate Folder - Level 1Folding Points: 377762 Folding Title: Super Ultimate Folder - Level 1Folding Points: 377762 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 2 Weeks 5 h 41 m 46 sec
Reputation Power: 1914
even if you will get it working, without changing the code it will happen again.
the code is bad.

it flood the Session with tons of data, that's the reason for the Out Of Memory
problems. even if you'll have 20 Giga of memory, at some point when the websites
will have heavy traffic, the server will crash.

you need to change the logic and use Database instead of Session to store
the shopping carts of the users.

Reply With Quote
  #17  
Old May 19th, 2008, 07:56 AM
bdam bdam is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 16 bdam User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 19 m 37 sec
Reputation Power: 0
Quote:
Originally Posted by Shadow Wizard
the code is bad.


Agreed; but I do not control that, I cannot change the code on the wholesale level that would probably be required. I'm not even sure how I would go about finding where the memory leak is. We're talking about thousands and thousands of lines of code I have never seen on a site I have nothing to do with. The vendor is refusing to do anything. So unless I can come up with some proof and point at the problem directly it's a dead end even though I am 100% convinced it's the right solution.

From what I can tell, IIS simply will not use more than 2 gigs of memory on our system were 4 gigs is installed. Regardless of issues with the code, I find that to be a problem on a dedicated machine. I simply would like it to use the resources given to it. Is that unreasonable of me?

Reply With Quote
  #18  
Old May 19th, 2008, 08:39 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
ASP Free God 46th Plane (27500 - 27999 posts)
 
Join Date: Sep 2004
Location: Israel
Posts: 27,737 Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)  Folding Points: 377762 Folding Title: Super Ultimate Folder - Level 1Folding Points: 377762 Folding Title: Super Ultimate Folder - Level 1Folding Points: 377762 Folding Title: Super Ultimate Folder - Level 1Folding Points: 377762 Folding Title: Super Ultimate Folder - Level 1Folding Points: 377762 Folding Title: Super Ultimate Folder - Level 1Folding Points: 377762 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 2 Weeks 5 h 41 m 46 sec
Reputation Power: 1914
you have full error message.
you know the code that causing the leak: the code that is using Sessions
without ever considering what happens if there's heavy traffic.

imagine that your car suddenly stopped working. you go to the garage
and ask them to fix it.

after couple of days they call you and give you the car, saying that
it's now driving well.

you start driving, and find that it can't drive more than 10 Miles Per Hour.

The car is driving, no doubting that.
but it's very limited, and surely not what you intended.
the garage made sloppy and bad job on the car.

it's exactly the same in your case: whoever wrote the code
gave you something that work, up to some specific point.

Reply With Quote
  #19  
Old May 19th, 2008, 10:49 AM
q97 q97 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Location: Brisvegas
Posts: 276 q97 User rank is Sergeant Major (2000 - 5000 Reputation Level)q97 User rank is Sergeant Major (2000 - 5000 Reputation Level)q97 User rank is Sergeant Major (2000 - 5000 Reputation Level)q97 User rank is Sergeant Major (2000 - 5000 Reputation Level)q97 User rank is Sergeant Major (2000 - 5000 Reputation Level)q97 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 4 Days 10 h 41 m 49 sec
Reputation Power: 37
Quote:
Originally Posted by bdam
From what I can tell, IIS simply will not use more than 2 gigs of memory on our system were 4 gigs is installed.


Is it only using 2Gb even out of isolation mode?

Reply With Quote
  #20  
Old May 19th, 2008, 01:09 PM
bdam bdam is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 16 bdam User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 19 m 37 sec
Reputation Power: 0
Quote:
Originally Posted by q97
Is it only using 2Gb even out of isolation mode?

Correct, our metric show 50% as the most we have ever used. Currently, the site is running reasonably well so this is bordering academics. However, I agree that the real problem isn't solved.

Again, I agree wholeheartedly that there is a serious issue in the code. But, to use the analogy, I build the roads, not the car. If there are two lanes I want cars to use both regardless of how slow they go.

Is there a way to track the number of sessions, how long the sessions are sticking around, and what sort of resources individual sessions are taking? Not knowing the code or being an ASP expert I would assume that code making use of the sessions is everywhere. If I can point to some figures showing ridiculous amounts of resources for sessions then I have something worthwhile to complain to the vendor about.

Reply With Quote
  #21  
Old May 20th, 2008, 05:14 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
ASP Free God 46th Plane (27500 - 27999 posts)
 
Join Date: Sep 2004
Location: Israel
Posts: 27,737 Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)  Folding Points: 377762 Folding Title: Super Ultimate Folder - Level 1Folding Points: 377762 Folding Title: Super Ultimate Folder - Level 1Folding Points: 377762 Folding Title: Super Ultimate Folder - Level 1Folding Points: 377762 Folding Title: Super Ultimate Folder - Level 1Folding Points: 377762 Folding Title: Super Ultimate Folder - Level 1Folding Points: 377762 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 2 Weeks 5 h 41 m 46 sec
Reputation Power: 1914
you can reduce the Session Time Out, setting this to, for example, 10 minutes
is pretty reasonable.
this will cause that Sessions will be killed after 10 minutes (instead of the default
20 minutes) and hopefully release memory faster.

Reply With Quote
  #22  
Old May 20th, 2008, 08:24 AM
bdam bdam is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 16 bdam User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 19 m 37 sec
Reputation Power: 0
Yep, we ratcheted that stuff back when we came out of isolation mode.

Thanks for all the help and suggestions. I know we haven't 'fixed' anything but the site seems to be limping along which was ultimately our goal. It gives us the breathing room to see if we can figure out the real problem.

Reply With Quote
  #23  
Old May 22nd, 2008, 10:43 AM
q97 q97 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Location: Brisvegas
Posts: 276 q97 User rank is Sergeant Major (2000 - 5000 Reputation Level)q97 User rank is Sergeant Major (2000 - 5000 Reputation Level)q97 User rank is Sergeant Major (2000 - 5000 Reputation Level)q97 User rank is Sergeant Major (2000 - 5000 Reputation Level)q97 User rank is Sergeant Major (2000 - 5000 Reputation Level)q97 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 4 Days 10 h 41 m 49 sec
Reputation Power: 37
Quote:
Originally Posted by bdam
Correct, our metric show 50% as the most we have ever used.

Is there a way to track the number of sessions, how long the sessions are sticking around, and what sort of resources individual sessions are taking?


Sorry, been busy with Tomcat and IIS problems myself...grrr...

Anyhow, IIS will use by default approx half available RAM for caching - so I guess from that, the other 50% is for application code. There is a registry setting you can fiddle with to make that more or less, do a google on IIS infrastructure site:microsoft.com and hopefully you'll find the article I found...

Secondly, you may be able to track number of sessions etc using perfmon - surely there'd be some IIS metrics in there? Haven't looked as yet, as I said, been busy with my own IIS demons

It would be interesting to see what is going on with your sessions, whether they are hanging around too long, etc. There might be a way to expire all sessions at a particular time, dunno if you can get something to fire at the Application_End (or whatever) event (last person leaves the site).

Reply With Quote
  #24  
Old May 22nd, 2008, 10:58 AM
q97 q97 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Location: Brisvegas
Posts: 276 q97 User rank is Sergeant Major (2000 - 5000 Reputation Level)q97 User rank is Sergeant Major (2000 - 5000 Reputation Level)q97 User rank is Sergeant Major (2000 - 5000 Reputation Level)q97 User rank is Sergeant Major (2000 - 5000 Reputation Level)q97 User rank is Sergeant Major (2000 - 5000 Reputation Level)q97 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 4 Days 10 h 41 m 49 sec
Reputation Power: 37
Indeed there is...

In ASP.NET Applications there is a few listings under Sessions...

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationMicrosoft IIS > Management - Bumping up Memory Use


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT