我的服务器上有两个machine.config文件,我该编辑哪个文件,以及如何验证它们是否正在使用? [英] I have two machine.config files on my server, which one do I edit and how do I verify they are being used?

查看:37
本文介绍了我的服务器上有两个machine.config文件,我该编辑哪个文件,以及如何验证它们是否正在使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要进行一些性能调整,并且需要修改以下设置: processModel httpRuntime connectionManagement .我想很简单,但是我不确定要编辑两个machine.config文件中的哪个文件,还是要同时编辑两个文件?

I need to do some performance tuning and need to modify 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 do I edit both?

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

作为后续问题,如何验证设置是否已应用?

As a follow up question, how do I verify that the settings have been applied?

我应该提到服务器正在运行带有IIS 6.0(64位)和MSSQL Server Enterprise 2005(64位)的Windows Server 2003 Enterprise(64位).

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

感谢您的提前帮助!

推荐答案

如果.net应用程序/IIS以64位模式运行,则使用位于Framework64中的一个.如果以32位模式运行,则使用另一个.

The one located in Framework64 is being used if your .net application/IIS is running in 64 bit mode. The other is used if running in 32 bit mode.

启动Windows任务管理器时,如果在进程名称后附加"* 32",则它将以32位运行.如果不是这样,它将运行在64位以下.

When bringing up the Windows Task Manager, if there's "*32" appended to the process name, then it runs in 32 bit. If not it runs under 64 bit.

如果您的操作系统是64位的,那是我假定的情况,因为您的计算机上同时有两个文件夹.

If your OS is 64bit that is, something I assume since you have both folders on your machine.

如果您使用的是IIS6/7,则该进程名为w3wp.exe.

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

IIS7对此也有更多设置,可以阅读

IIS7 has more settings for this as well which can be read at this blog post.

这篇关于我的服务器上有两个machine.config文件,我该编辑哪个文件,以及如何验证它们是否正在使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆