debug=true in web.config = BAD thing?

后端 未结 5 1560
感动是毒
感动是毒 2020-12-22 19:38

We\'re seeing lots of virtual memory fragmentation and out of memory errors and then it hits the 3GB limit.

The compilation debug is set to true in the web.config bu

5条回答
  •  臣服心动
    2020-12-22 19:40

    It absolutely could affect memory, just take a look at some of the perfmon counters and run a comparison with both configurations.

    If your site has a lot of files I would be more concerned with disk io in the asp.net temp folder.

    Couple Questions...

    1. Do you have a lot of files in your App_Code?
    2. Are you allowing the site to be updatable or are you publishing it?
    3. If so is the site being updated frequently or is there a deployment process?
    4. What is the hardware configuration?

    Why not utilize multiple configurations?

    Web.Debug.Config - Have debugging turned on Web.UAT.Config - Whatever your preference Web.Release.Config - Have Debugging turned off

    This way you can minimize regression configuration errors like a developer checking a web.config in with debug="true"

提交回复
热议问题