IISReset의 기능은 무엇입니까?
IIS 6에서 IIS 재설정은 무엇을합니까?
앱 풀 재활용과 ASP.NET 웹 사이트 중지 및 시작과 비교하십시오.
DLL을 바꾸거나 ASP.NET 웹 사이트에서 web.config를 편집 / 바꾸면 해당 웹 사이트를 중지하고 시작하는 것과 동일합니까?
IISReset은 전체 웹 서버 (비 ASP.NET 앱 포함)를 중지하고 다시 시작합니다
. 앱 풀을 재활용하면 해당 앱 풀에서 실행중인 응용 프로그램에만 영향을줍니다.
웹 애플리케이션에서 web.config를 편집하면 해당 웹 애플리케이션에만 영향을줍니다 (해당 앱만 재활용 됨).
머신에서 machine.config를 편집하면 실행중인 모든 앱 풀이 재활용됩니다.
IIS는 응용 프로그램의 / bin 디렉터리를 모니터링합니다. 해당 dll에서 변경 사항이 감지 될 때마다 앱을 재활용하고 새 dll을 다시로드합니다. 또한 web.config 및 machine.config를 동일한 방식으로 모니터링하고 해당 앱에 대해 동일한 작업을 수행합니다.
IISReset은 전체 웹 서버 (모든 관련 사이트 포함)를 다시 시작합니다. 단일 ASP.NET 웹 사이트를 재설정하려는 경우 해당 AppDomain을 재활용해야합니다.
ASP.NET 웹 사이트를 재설정하는 가장 일반적인 방법은 web.config 파일을 편집하는 것이지만 다음을 사용하여 관리 페이지를 만들 수도 있습니다.
public partial class Recycle : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
HttpRuntime.UnloadAppDomain();
}
}
다음은 추가 정보로 작성한 블로그 게시물 입니다. ASP.NET 응용 프로그램에서 IISRESET 방지
응용 프로그램 풀이 아닌 전체 IIS 프로세스 트리에서 작동합니다.
C:\>iisreset /?
IISRESET.EXE (c) Microsoft Corp. 1998-1999
Usage:
iisreset [computername]
/RESTART Stop and then restart all Internet services.
/START Start all Internet services.
/STOP Stop all Internet services.
/REBOOT Reboot the computer.
/REBOOTONERROR Reboot the computer if an error occurs when starting,
stopping, or restarting Internet services.
/NOFORCE Do not forcefully terminate Internet services if
attempting to stop them gracefully fails.
/TIMEOUT:val Specify the timeout value ( in seconds ) to wait for
a successful stop of Internet services. On expiration
of this timeout the computer can be rebooted if
the /REBOOTONERROR parameter is specified.
The default value is 20s for restart, 60s for stop,
and 0s for reboot.
/STATUS Display the status of all Internet services.
/ENABLE Enable restarting of Internet Services
on the local system.
/DISABLE Disable restarting of Internet Services
on the local system.
응용 프로그램 풀 재활용 은 해당 응용 프로그램 풀에 대한 w3wp.exe 프로세스 를 다시 시작 하므로 해당 응용 프로그램 풀에서 실행중인 웹 사이트에만 영향을줍니다.
IISReset은 모든 w3wp.exe 프로세스 및 기타 IIS 관련 서비스 (예 : NNTP 또는 FTP 서비스)를 다시 시작합니다.
전체 응용 프로그램 풀을 변경 web.config
하거나 /bin
재활용하지 않는다고 생각 하지만 확실하지 않습니다.
IIS가 구성하는 서비스를 중지하고 시작합니다.
관련 프로그램을 닫고 다시 시작하는 것으로 생각할 수 있습니다.
iisreset 에 대해 technet이 말하는 것
You might need to restart Internet Information Services (IIS) before certain configuration changes take effect or when applications become unavailable. Restarting IIS is the same as first stopping IIS, and then starting it again, except it is accomplished with a single command.
You can find more information about which services it affects on the Microsoft docs.
When you change an ASP.NET website's configuration file, it restarts the application to reflect the changes...
When you do an IIS Reset, that restarts all applications running on that IIS instance.
Editing the web.config
file or updating a DLL in the bin
folder just recycles the worker process for that application, not the whole pool.
IISReset restarts the entire webserver (including all associated sites). If you're just looking to reset a single ASP.NET website, you should just recycle that Application Domain.
참고URL : https://stackoverflow.com/questions/23566/what-does-an-iisreset-do
'program tip' 카테고리의 다른 글
사용자 CPU 시간 대 시스템 CPU 시간? (0) | 2020.11.02 |
---|---|
git branch -d는 경고를 제공합니다. (0) | 2020.11.02 |
클래스에 정적 필드와 메서드 만있는 것이 나쁜 습관입니까? (0) | 2020.11.01 |
PHP에서 배열 요소를 문자열로 캐스팅하는 방법은 무엇입니까? (0) | 2020.11.01 |
EJB를 JAX-RS (RESTful 서비스)에 삽입 (0) | 2020.11.01 |