开发者

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 wind开发者_如何学Goows 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


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.


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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜