Disable or transfer IIS httperr error logs

Source: Internet
Author: User

1. Disable the IIS httprerr log function

By default, the 2003 server writes all IIS Access Error records to the log files in C:/Windows/system32/logfiles/httperr. If the access volume is large, after a period of time, the log file may occupy the space on the drive C, causing the server to crash.

 

At the same time, because all IIS access records need to be written, if the access traffic is large enough, the server CPU usage will be greatly increased.

 

How to disable httperr

 

Enter Regedit to enter Registry Editor

[HKEY_LOCAL_MACHINE/system/CurrentControlSet/services/HTTP/parameters]

 

Right-click on the right and choose create DWORD Value enableerrorlogging to restart the server.

 

"Enableerrorlogging" = DWORD: 00000000.

 

After the restart, 2003 will not be written into the httperr log file. You can see that the server CPU usage is significantly reduced!

2. Modifying the storage directory is also a good solution.

 

Search:

HKEY_LOCAL_MACHINE/system/CurrentControlSet/services/HTTP/parameters

Create a string value below, that is, REG_SZ

The Value Name Is errorloggingdir.

Numeric data specifies the path for you, such as D:/logofilse

 

 

From: http://article.01hr.com/wenzhang/459710.htm

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.