davitz38
davitz38

Reputation: 377

is there a way to estimate the ram needed by a .net mvc application?

Is there a soft to do that?

I'm looking for a windows server (I might go for a VPS server), and I would like to know the ram I will need

I know I won't need a lot of ram, but beside the "windows task manager", is there a way to really test that?

Thanks

Upvotes: 2

Views: 513

Answers (3)

Robert Koritnik
Robert Koritnik

Reputation: 105059

I don't think there's a reliable way of doing this, because there a just too many factors with managed code (any, not just MVC):

  • garbage collection
  • connection pooling
  • etc...

But one that you can't avoid at all and is very undefinable: your data. Let's say, you're pulling a list of some records that may be this or that long with this or that much properties, with strings of whatever length... You won't be able to reliably estimate memory consumption at all. Especially if users enter data which is probably 99.9% common to all applications in one way or another.

I'd suggest something @mare suggested. Stress test it yourself or get someone do it for you. There are companies doing it against payment.

You can as well do the trial-and-error approach. Launch your app and add resources as it runs. :) But this depends largely on how critical this solution is.

Upvotes: 0

mare
mare

Reputation: 13083

There's hardly a way to estimate it but there are ways to test it and see for yourself.

There was once a Web Application Stress Tool but it was always buggy and now it few years since the last update so I don't think it would work with the new IIS and MVC.

What you could use now is the tools that come in the Visual Studio Team System package - lots of performance, testing and monitoring tools.

HTH

Upvotes: 0

TomTom
TomTom

Reputation: 62127

No, no way.

Problem is - a lot depends on your internal data structures, how much you cache, how much you want IIS to cache, how much that makes sense. There is absolutely no way to estaimte that without having some more information.

Upvotes: 1

Related Questions