asp.net - Memory consumption differs by environment -


i have mvc4 web application that, when volume put through it, consumes ~400mb ram in environments excluding production environment. when similar volume of load put through on production server (hosted externally), memory utilisation trebles ~1.2gb , memory isn't released when application idle. iis configuration across environments same.

its worth noting application, when idle, releases of memory in test environments, doesn't same in production. ram gradually increases , tops out @ 1.2-1.3gb, never drops below – if traffic routed away server.

i have not been able recreate issue on other environment other third party hosting platform, before conclusively blame infrastructure , hosting company on case wondered:

a) common problem , why happen

b) how can see using memory

c) expect same code consume different levels of system resources based on platform (i know host may have monitoring etc. in production perhaps inflate little)

any on appreciated.

this common problem face when work on different environments. because system configuration, windows etc differs system system.

in particular case see big difference, there loops or memory not freed @ regular intervals.

few steps:

  • try root of problem i.e. method taking time. use loggers nlog.
  • try using profilers if using sql server
  • and third use ants-performance-profiler

also depends on number of user hitting on site , deadlock conditions. there can numerous reasons same.


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -