Web Wiz - Solar Powered Eco Web Hosting

  New Posts New Posts RSS Feed - IIS Application Pools is recycling too often?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

IIS Application Pools is recycling too often?

 Post Reply Post Reply Page  <1 2345>
Author
MaximeRoy77 View Drop Down
Groupie
Groupie
Avatar

Joined: 21 November 2010
Location: Québec, Canada
Status: Offline
Points: 54
Post Options Post Options   Thanks (0) Thanks(0)   Quote MaximeRoy77 Quote  Post ReplyReply Direct Link To This Post Posted: 03 January 2011 at 10:10pm
I've had theses a lot ( on a forum with 150 average active users ) and the EVENT LOG is starting to log OUT OF MEMORY entries caused by the forum software.


Error: File /forum/functions/functions_common.asp Line 2018 Out of memory. Unable to allocate required memory..


Code generating the error:

'Place the array into the web servers application memory pool if the user has a session ID
If strSessionID <> "" Then
Application.Lock
Application("sarryUnReadPosts" & strSessionID) = sarryTmp1UnReadPosts
Application("sarryUnReadPosts2" & strSessionID) = strSessionID
Application.UnLock
'Else the user doesn't have a session ID so use the session instead
Else
Session("sarryUnReadPosts") = sarryTmp1UnReadPosts
End If


LINE 2018 is 

Session("sarryUnReadPosts") = sarryTmp1UnReadPosts




Hope this information helps the developper to fix this.

Thanks

Max


Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9791
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 04 January 2011 at 11:58am
This has nothing to do with this topic but what it means MaximeRoy77 is that your server is out of resources and doesn't have adequate memory available.
Back to Top
MaximeRoy77 View Drop Down
Groupie
Groupie
Avatar

Joined: 21 November 2010
Location: Québec, Canada
Status: Offline
Points: 54
Post Options Post Options   Thanks (0) Thanks(0)   Quote MaximeRoy77 Quote  Post ReplyReply Direct Link To This Post Posted: 04 January 2011 at 2:31pm
Maybe noting to do exactly but since this topic discuss memory usage, virtual pools, I was hoping to help others identify their problems. 

The EVENT LOG is a good place to check if your web application is not having enough ressources.

I am having Sessions Timeout frequently , maybe because of a lack RAM and this EVENT LOG entry suggest that it is why the recycling is going on an on - creating timeouts.

I decided 3 days ago to upgrade to a 16GB RAM server ;-)
Back to Top
MaximeRoy77 View Drop Down
Groupie
Groupie
Avatar

Joined: 21 November 2010
Location: Québec, Canada
Status: Offline
Points: 54
Post Options Post Options   Thanks (0) Thanks(0)   Quote MaximeRoy77 Quote  Post ReplyReply Direct Link To This Post Posted: 07 January 2011 at 5:24pm
...again, to help others a bit here. I have a forum averaging 150 active users and the Application Pool runs at 750MB RAM usage (with new server upgrade from 4GB to 16GB RAM) with much less frequent session timeouts and "insufficient permissions" errors. But still, got some... and this is sad.

I might have to re-try SQL Sessions now and report status later.



Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9791
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 10 January 2011 at 11:26am
750MB of RAM for the application pool seems like an awful lot. We have many Web Wiz Forums running on our servers here, including for big companies like Microsoft, that have between 150 and 500 active users at all times and find that the application pools for these forums use around 250MB of memory.
Back to Top
MaximeRoy77 View Drop Down
Groupie
Groupie
Avatar

Joined: 21 November 2010
Location: Québec, Canada
Status: Offline
Points: 54
Post Options Post Options   Thanks (0) Thanks(0)   Quote MaximeRoy77 Quote  Post ReplyReply Direct Link To This Post Posted: 10 January 2011 at 12:55pm
After a reboot, the App Pool of the forum, with exactly 111 users, runs at 365MB RAM !


Back to Top
MaximeRoy77 View Drop Down
Groupie
Groupie
Avatar

Joined: 21 November 2010
Location: Québec, Canada
Status: Offline
Points: 54
Post Options Post Options   Thanks (0) Thanks(0)   Quote MaximeRoy77 Quote  Post ReplyReply Direct Link To This Post Posted: 15 January 2011 at 2:57pm
No recylcing in days..... the forum AppPool runs at 1500 MB Shocked
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9791
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 17 January 2011 at 9:40am
There is something wrong with your setup as a 16GB web server we would run around 2,000 websites each with it's own app pool split between 4 Hyper-v servers with around 300 running Web Wiz Forums and 3,000 to 15,000 concurrent connections.

A forum with 150 active users we would consider low usage and host it on a shared server and not expect it to make much of an impact on resources.

Make sure that you are following Microsoft best practises for the server including running app pools in 32 bit mode for improved memory and performance.

You should also recycle the app pool at least once in 24 hours. Setting a time like 4am when your board would be quite is always a good idea.
Back to Top
 Post Reply Post Reply Page  <1 2345>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.07
Copyright ©2001-2024 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Policy

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2024 Web Wiz Ltd. All rights reserved.