Log worker process recycle events in IIS 6.0

Source: Internet
Author: User
Tags iis metabase

By default, IIS does not record worker-process recycle events. However, you can enable the specified worker process to recycle event records. Unlike other IIS activities that are recorded at your designated location and file, worker process recycle events are written to the system event log.

Logging worker Process Recycling events helps troubleshoot IIS. For example, when troubleshooting an ISAPI extension that performs a new server support feature Report_unhealthy, you can specify that IIS record each ISAPI self report as an example of a bad state.

The following table describes the worker process recycle events that you can record. To log events, set the corresponding Metabase property to True.

Metabase Property Description
Record events with time as the basis for recycling.

Log events as a recycle base.

Log events by scheduling as the basis for recycling.

Record events using memory as the basis for recycling.

Because ISAPI reports are in poor state, events are logged when worker processes require recycling.

Events are logged when the system administrator requires that all the processes in the application area be reclaimed.

If the application assembly area is reclaimed because one of the application assembly properties that requires recycling is changed, the event is logged.

Events are logged if the application assembly area is reclaimed according to private memory.

Important matters
You must be a member of the Administrators group on the local computer to execute the specified code and the execution file. The best security approach is to log on to your computer using an account that is not a Administrators group, and then use the runas command to execute the script or file as a system administrator. In the command prompt character input runas/profile/user:mycomputeradministrator cmd, open the Command window with system administrator privileges, and enter Cscript.exe ScriptName ( Contains the full path of the script and any parameters).
Enable records for worker process recycling
1. Click [Execute] on the [Start] menu.

2. In the [Open] box, type cmd, and then click [OK].

3. Type the following in the command prompt character, and then press the ENTER key. CD%systemroot%inetpubadminscripts

4. Type the following in the command prompt character, and then press the ENTER key. cscript adsutil.vbs set w3svc/apppools/apppoolname/eventname true

Replace AppPoolName with the name of the application assembly area, and replace EventName with the event name you want to record. For example, the following command records the memory-based recycle events of a preset AppPool: csript adsutil.vbs set w3svc/apppools/defaultapppool/apppoolrecylememory true

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.