Reducing Umbraco memory usage by enabling 32-bit applications

Enable 32-bit applications in IISSo enabling 32-bit applications within Microsoft IIS for the application pool behind an Umbraco installation, will make it use a LOT less memory!

Looking at the statistics for many websites that have been running in standard 64-bit, the applications used to use around 600 MB of RAM, however with 32-bit applications enabled, you will notice that it will use around 130 MB. After some research, I found that this is because the garbage collector runs more often for 32-bit applications, simply because a single application can only address 1 GB of RAM/memory. Putting this information to use, you can assume that the 64-bit applications whilst using a lot of memory would release it if the system needed it.

I've noticed that sometimes you get chucked out of the back office, after some reason, though after some research I found a thread about an Umbraco installation that also looses its session intermittently.

In short, looks like you can sort the session problem by storing it in a cookie instead of memory:

<system.web>
  <sessionState mode="StateServer" cookieless="false" timeout="20" /> 
</system.web>

I'd be interested to know what other people think of enabling 32-bit applications on Umbraco.


Published at

Tags: Umbraco

Luke Alderton

Comments

Andy
After 2 days of massive outages on my site, changing to 32 Bit App seems to have sorted it out. I was experiencing 95% Memory and CPU Usage with only one site running and one application pool dedicated for the site. Thanks for the post!
13/06/2016
Sotiris Filippidis
I've also noticed impressive differences between using 32 and 64-bit application pools for Umbraco. With 32-bit enabled, application pools seldom go over 300-400MB, while in 64-bit they'll go as high as 1.5GB.
06/07/2017
AEndumpbub
Pression arterielle est comment poupe votre sang pousse contre les parois de vos arteres lorsque votre coeur essence pompe le sang. Arteres sont les tubes qui transportent perseverent b gerer offre sang loin de votre coeur. Chaque temps votre coeur bat, il pompe le sang par vos arteres a la reste de votre corps. https://www.cialispascherfr24.com/cialis-5mg-le-prix/
13/10/2018
Post a comment
Sit tight...
We're adding your comment.
Thank you.
Your comment has been added.
There's been a problem.
Please try again later.
Share with
Tags
Latest Comments
By AEndumpbub on Reducing Umbraco memory usage by enabling 32-bit applications
13 Oct 2018, 07:04 AM
By nseo-sw.men on MVC forms in Umbraco
12 Oct 2018, 11:30 AM
By JM on Solved: You need to use a Theme.AppCompat theme (or descendant) with this activity
10 Oct 2018, 13:36 PM
By praveen on Xamarin Forms - Working with threads
5 Oct 2018, 12:05 PM
By Jasonced on MVC forms in Umbraco
27 Sep 2018, 05:41 AM
By Евгения on MVC forms in Umbraco
27 Sep 2018, 02:47 AM
By Wokeq62 on Using SQL DataTables to speed up database performance
25 Sep 2018, 17:28 PM
By AnubisMus on MVC forms in Umbraco
24 Sep 2018, 16:54 PM
Categories
App Development
Event
Game Development
Mapping
Modelling
Programming
Review
Robotics
Tutorial
Web Development