Live News

Penny Pinching in the Cloud: Your web app doesn’t need 64-bit

Often times I hear folks say that they need (or want) 64-bit support when they deploy to the cloud. They’ll deploy their modest application to Azure, for example, as a Web Application, then immediately go to the settings and set it to 64-bit. So many years later and it’s “do I need 64-bit” is still confusing to a lot of people.

Change your Azure bitness settings here

I made basic Hello World ASP.NET app and deployed it. Now, I go to that Web Apps “blade” in the Azure Portal, click Tools, then Process Explorer (after exercising the app a little.) I’m running 32-bit here. The K is the Kudu “sidecar” deployment site (for things like Git deploy and diagnostics), and the other icon is the production site.

30 meg working set for IIS in 32 bit mode

Now, I’ll swap it to 64-bit and exercise the web app again. Remember, this app is just a super basic app.

102 meg working set in IIS in 64-bit mode

See how the working set (memory) jump? It’s a little extreme in a hello world example, but it’s always going to be bigger than 32-bit. Always. 64-bit’ll do that. Does your site need to address more than 4 gigabytes of memory from any single process? No? Then your web app probably doesn’t need to be 64-bit. Don’t believe me? Test it for yourself.

I’ll go even further. Most web apps don’t need 64-bit, but here’s the real reason. If you stay 32-bit when putting your Web Application in the cloud you can fit more applications into a limited space. Maybe your Medium App Service Plan can actually be a Small and save you money.

Until 64-bit only is the default in things like Nano Server, today you can fit more Web Apps into limited memory if you stick with 32-bit.

I personally have 18 web apps in a Standard Small App Service in my personal Microsoft Azure account. They are sites like my podcast Hanselminutes and they get decent traffic. But most never get over 300-600 megs of memory and there’s literally no reason for them to be 64-bit today. As such, I can fit more in the Small App Service Plan I’ve chosen.

18 web apps in a single app service plan

Remember that the Azure Pricing Calculator isn’t totally obvious when it comes to Web Applications. It’s not ~$ 55 per Basic Web Site. There’s a Virtual Machine under there, they call the whole thing an “App Service Plan” and your Web Apps sit on top of that plan/VM. It’s really $ 55 for a plan that supports as many web applications you can comfortably fit in there.

The cloud is a great deal when you’re smart about the resources you’ve been given. If you’re using Azure and you’re not using most of the the resources in your service plan, you’re possibly wasting money.

What Penny Pinching in the Cloud tips do you have? Disagree with this advice? Sound off in the comments.

Related Links


Sponsor: Thanks to my friends at Accusoft for sponsoring the feed this week. Just a few lines of code lets you add HTML5 document viewing, redaction, annotation, and more to your apps and websites. Download a free trial now!


© 2015 Scott Hanselman. All rights reserved.

     

Developer Tools Blogs

Leave a Comment