Optimizing Umbraco memory footprint
Asked Answered
I

2

3

We are running Umbraco in an virtual environment with 8GB Ram on a Windows 2008 R2 OS. Regardless of Version (we have 4.X and 6.x running) we see memory consumption of about 600MB per App Pool and Website. The sites have 20 to 40 pages and maybe 500 page servs per Day.

The memory consumption seems excessive as soon after a IIS reset the w3c processes go up to 300 - 500 MB again. How can the memory footprint be reduced?

Insular answered 9/7, 2013 at 7:4 Comment(0)
K
2

A website lite Umbraco consists of many different parts that consumes memory, the most typical except the iis service itself would be

  • Logging
  • Web Services
  • Search service (that it self may be a web service)
  • Scheduled jobs
  • Data caching
  • Custom asp.net code, ie if you have any custom dlls or code in the app_code folder
  • ...

I'd start by looking in the Event Viewer seeing if there are any exceptions thrown by your web applications, if there is the web applications will typically collect lots of garbage information that is released on iisreset.

Next step is to check all custom code and tune the logging levels. When done I'd profile the application with a memory profiler, there are a few but red-gate is know for their high quality tools (www.red-gate.com/Memory_Profiling).

And... 300-500 Mb memory isn't that much from a website running .net with content caching, image transforms and so on activated, keep your expectations real. Spontaneously I'd say you are within the normal range.

Keratose answered 9/7, 2013 at 10:39 Comment(0)
P
0

Today a simple Umbraco 7 website use more than 100MB, but when you enable 32bit it can be lesser than 100Mb Memory. In IIS go to the Applications pools, Advanced Settings, and set Enable 32-Bit Applications on True.

See: Umbraco-7-Worker-Process-Memory-Usage

Patriciate answered 16/8, 2015 at 20:38 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.