I have two machine.config files on my server that I am editing, and how can I verify that they are used?

I need to do some performance tuning and change the following settings: processModel , httpRuntime and connectionManagement . Simple enough, I suppose, but I'm not sure which of the two machine.config files to edit, or am I editing both?

  • \ Windows \ microsoft.net \ Framework \ v2.0.50727 \ CONFIG \ machine.config
  • \ Windows \ microsoft.net \ Framework64 \ v2.0.50727 \ CONFIG \ machine.config

As the next question, how to check if the settings have been applied?

I should mention that the server runs Windows Server 2003 Enterprise (64-bit) with IIS 6.0 (64-bit) and MSSQL Server Enterprise 2005 (64-bit).

Thanks for the help in advance!

+6
windows-server-2003 machine.config
source share
2 answers

The one located in Framework64 is used if your .net application / IIS is in 64 bit mode. Another is used when working in 32-bit mode.

When creating the Windows Task Manager, if "* 32" is added to the process name, it starts in 32 bits. If it does not work up to 64 bits.

If your OS is 64-bit, then I assume, since you have both folders on your computer.

If you are using IIS6 / 7, the process is called w3wp.exe.

IIS7 has additional settings for this which can be read in this blog post .

+11
source share

Personally, I would not edit a single one, but instead modify the web.config files at the site or application level.

You should be able to change the httpRuntime and connectionManagement parameters this way, but not the processModel , which can only be used in machine.config.

However, you may not need to change the processModel if you are on Windows Server 2003.

As others pointed out, if you want to change machine.config, IIS6 will work in 64-bit mode by default, so that the version is editable. If you need to run 32-bit mode (for example, because you need to use 32-bit native DLL files), you can configure 32-bit mode as follows:

 cscript.exe adsutil.vbs set W3SVC/AppPools/Enable32BitAppOnWin64 "true" 

See this TechNet article for more information.

+3
source share

All Articles