Archive

Posts Tagged ‘Windows Server’

Improving Web Service Performance (Enable GZip)

December 17th, 2008

Adding Zip Compression To Your Web Services

Follow these steps to turn GZip compression on your IIS6 server for your Web Service:

First, before anything else, backup the metabase. This is done by right-clicking on the server in the IIS snap-in and selecting All Tasks -> Backup/Restore Configuration.

  Read more…

Note ,

WSUS: Script to Force the Update Detection from Automatic Update Client (WUA) for updates on WSUS Server

December 13th, 2008

SUMMARY

 

Windows Server Updates Service (WSUS) Script to Force the Update Detection from Automatic Update Client to check for updates on WSUS Server.
 

WSUS: Script to Force the Update Detection from Automatic Update Client for updates on WSUS Server

This script will force the Update Detection from Automatic Update Client to check for updates on WSUS Server.
 
Copy and Paste the code below into a text file and name it AUForceUpdate.cmd
=======================================================================
@echo off
Echo This batch file will Force the Update Detection from the AU client:
Echo 1. Stops the Automatic Updates Service (wuauserv)
Echo 2. Deletes the LastWaitTimeout registry key (if it exists)
Echo 3. Deletes the DetectionStartTime registry key (if it exists)
Echo 4. Deletes the NextDetectionTime registry key (if it exists)
Echo 5. Restart the Automatic Updates Service (wuauserv)
Echo 6. Force the detection
Pause
@echo on
net stop wuauserv
REG DELETE “HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update” /v LastWaitTimeout /f
REG DELETE “HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update” /v DetectionStartTime /f
Reg Delete “HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update” /v NextDetectionTime /f
net start wuauserv
wuauclt /detectnow
@echo off
Echo This AU client will now check for the Updates on the Local WSUS Server.
Pause
=======================================================================

Note ,

Trace IIS[分析追踪当前IIS请求所占用的资源]

December 2nd, 2008

容量计划跟踪

Web 请求通过操作系统的许多层,大多数层都可以进行调整。使用日志管理器跟踪 IIS 和内核事件可以帮助您确定服务器的哪些部分能够调整以改善性能,并指出服务器上的 Web 瓶颈。

日志管理器和跟踪报告是随 Windows Server 2003 家族提供的通用工具。日志管理器创建跟踪数据,这些数据随后由 Windows 跟踪报告实用工具处理。跟踪报告实用工具创建一个带格式的详细报告,对于评估 IIS 和操作系统中与 IIS 有关的活动,该报告非常有用。通过提供要跟踪的特定 IIS 事件的列表,在日志中记录了数据在每个 IIS 子系统中的时间长短。日志管理器可用于“应用程序”模式或“专用”模式。

为简单起见,下面阐释了一个特定的跟踪报告。对于该示例以及可能要跟踪的其他子系统,可能会有许多变化形式。

Read more…

Note ,

Trace All Requests Currently Executing in IIS Worker Processes (IIS 6.0)

December 2nd, 2008

Use currently-executing requests tracing to find out which requests are executing in a worker process when the worker process has become slow or unresponsive. When enabled, currently-executing requests tracing prompts worker processes to report statistics and details about each request in each worker process.

Currently-executing requests tracing does not require a provider file. Instead, currently-executing requests tracing uses the following commands or switches:

 

logman start

Starts the trace session using Logman.exe as the controller.

logman stop

Stops the trace session.

session name

Any name you want to give this trace session.

-p “IIS: Request Monitor”

Identifies which provider (-p) should be traced.

-ets

Tells Logman.exe to start the trace session immediately.

Read more…

Note ,

Userenv errors occur and events are logged after you apply Group Policy to computers that are running Windows Server 2003, Windows XP, or Windows 2000

November 11th, 2008

Article ID : 887303
Last Review : September 4, 2007
Revision : 4.6
On This Page
SUMMARY
SYMPTOMS
CAUSE
RESOLUTION
Step one: Examine the DNS settings and network properties on the servers and client computers
Step two: Examine the Server Message Block signing settings on the client computers and member servers
Step three: Make sure that the TCP/IP NetBIOS Helper service is started on all computers
Step four: Make sure that Distributed File System (DFS) is enabled on all computers
Step five: Examine the contents and the permissions of the Sysvol folder
Step six: Make sure that the Bypass traverse checking right is granted to the required groups
Step seven: Make sure that the domain controllers are not in a journal wrap state
Step eight: Run the Dfsutil /PurgeMupCache command

Read more…

Note , ,

配置Windows 2003 Domain Controller NTP 服务[DC SYN with external time source]

November 10th, 2008

How to configure an authoritative time server in Windows Server 2003

Article ID : 816042
Last Review : October 30, 2006
Revision : 6.1
Important This article contains information about how to modify the registry. Make sure to back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:
256986 (http://support.microsoft.com/kb/256986/) Description of the Microsoft Windows registry
On This Page

INTRODUCTION

Configuring the Windows Time service to use an internal hardware clock

Configuring the Windows Time service to use an external time source
Read more…

Note ,

AD Member Server DNS Register

November 10th, 2008

AD成员服务器配置完TCP/IP信息后,发现DNS Server中没有相应的记录,
1、检查DNS相关的配置,已配置为自动注册地址
2、使用ipconfig /registerdns 手工注册,返回错误Registration of DNS records failed: The RPC server is unavailable.
3、DNS服务器接受安全更新,且其他成员服务器注册地址没有问题
转了一大圈,发现DHCP Client Service也要启动,即使网络不使用DHCP获得TCP/IP信息

Note ,

优化文件服务器的磁盘性能

November 10th, 2008

硬件环境
6XSAS 146G HDD , RAID Level:5 (Raid Adapter:HP P400;Model:HP DL380G5)

操作系统
Windows2003 R2 x64

应用模型
20台Web Server读写文件服务器的共享目录

症状
奇怪的是正常负载上来后,文件服务器磁盘性能表现极差,读取只有10 MB/s左右,并且经常出现磁盘无响应,这与之前的测试和理想指标都相差太大

分析
文件服务器上每个文件介于2~10K之间,总容量在300G左右,对于这种大量的小文件,每次读取时的速度优势显然无法得到发挥,而操作系统对每次文件读取还有一堆的日志记录及对文件头的修改,致使磁盘在本身空闲时间接近0的情况下增加了更多的读写任务,前端20台web server大量的文件读取请求也是造成文件服务器阻塞的原因之一,所以需要将应用系统有效读取负载之外的所有负载减至最小
Read more…

Note , ,

How to poll for object attribute changes in Active Directory on Windows 2000 and Windows Server 2003

November 10th, 2008

On This Page

SUMMARY

INTRODUCTION

MORE INFORMATION

Method 1: The DirSync control

DirSync control behavior and limitations

Microsoft Windows 2000 and the DirSync control

Microsoft Windows Server 2003 and the DirSync control

Method 2: USN queries using the uSNChanged attribute

Monitoring USN changes behavior

Monitoring USN changes benefits and permissions

Object deletion detection
SUMMARY
There are two methods that you can use to develop programs that poll the Active Directory Directory service for object attribute changes. This article describes these two methods.
Back to the top
Read more…

Note ,

HOW TO:在图形用户介面中查看和转移 FSMO 角色

November 10th, 2008

HOW TO:在图形用户介面中查看和转移 FSMO 角色
察看本文应用于的产品
文章编号 : 255690
最后修改 : 2004年3月26日
修订 : 2.0
本文的发布号曾为 CHS255690
本页
概要
用 MMC 工具转移 FSMO 角色
转移特定于域的角色:RID、PDC 和结构主机
转移域命名主机角色
转移架构主机角色
注册架构工具
转移架构主机角色
这篇文章中的信息适用于:
Read more…

Note ,