Home > Articles > Operating Systems, Server > Microsoft Servers

This chapter is from the book

Windows Throughput, Resources, and Rescue

Here's where the rubber meets the road: The part in which, if you don't have the necessary resources, or if some bit of configuration fluff gets dinked up, all of the preceding fancy file and printer sharing simply seizes up and stops working.

The first bit of good news is that you can say what you want about Microsoft, but it built some killer statistic-gathering mechanisms into all Microsoft Networking server and client programs. This, coupled with System Monitor, enable you as Joe User to see how you're doing in terms of performance at any given time. This means that you can quickly and easily profile a particular server or network segment. This is something that used to take a network expert and a $10,000 piece of equipment to do, but, whoa, you can do this on pretty much any Windows workstation. (Did I mention that I like this feature?)

Throughput Thruway

In all seriousness, the powerful statistics-gathering abilities of Windows really allow you to do some powerful troubleshooting cheaply. Let's look at a two quick examples.

Scenario 1: Suppose we have an application that's running very slowly for a given person. Other folks are running the application just fine, but our confidence level is pretty low concerning how alike each workstation is. We discover that the user can log in to someone else's workstation and work just fine.

Somebody suggests that we nuke the user's hard drive and make it just like a setup that works. This is greeted with stony silence by the user, who happens to be a big shot in the company. Apparently, this is not the path that we will take. At least, not if we want to continue our employment.

The user says that his machine runs like molasses, and he seems right from what we can tell of other people's workstations. What's going on? Is it the client or the server? Is this subjective slowness, or is there an objective way of measuring this?

We could break out the network analyzer to measure the network throughput by attaching it to the network segment and analyzing packets between the client and server. However, because network throughput is easy to measure with the Windows 9x family's System Monitor, we install this to the user's workstation and add the Microsoft Network client's Bytes Read/Second statistic to our chart. Figure 12.5 shows a monitor session; it reveals that the Microsoft file and print session is running reasonably fast on this user's 10Mbps network: 625KB–991KB per second. You can't expect much faster than that on a 10Mbps Ethernet network. But would an upgrade to 100Mbps help? Well, it's an older workstation, and you can tell that it is working hard keeping up (look at the CPU utilization and free memory). Both drop when this file transfer is happening. In this example, we would see normal output like this when running the application on a different server.

Figure 12.5 A Windows 9x monitor session.

We keep the System Monitor minimized and run the problem application. Yes, indeed, it's slow. We're seeing wide-area speeds on a LAN connection. Right away we know that there's truly a speed problem on the network; it has nothing to do with his workstation.

Or does it? We have a different server that runs another department's stuff, so in the spirit of ruling in or ruling out the problem, we decide to do the same measurements on a different server using the same application. In this case, the measurements are more in line with what we're seeing on other workstations on the LAN. It seems that this particular server and this person's workstation are not happy with each other. The five minutes we spent with the System Monitor accomplished a couple of important things:

  • This person is not imagining things; we have objective data to prove it.

  • We've discovered that the workstation can connect to a different server without the slowdown problem; we now have a workaround while we further diagnose the problem server or workstation.

But life isn't always simple. It turns out that the original server is not a Microsoft server, it's a UNIX server running Samba—the UNIX/Linux SMB server. Is this the same type of server as the test server we just used? Well, no. So, we do the tests again, this time to a different UNIX server running the same version of Samba. Ah hah! It turns out that this user's workstation seems to have problems talking to this version of Samba. (Others in the department are not having a problem.)

The solution to this problem consisted of (very carefully) reinstalling the Microsoft file and print client to the workstation and repatching the workstation, consistent with other workstations in the department. (Yes, indeed, because we were dealing with a VIP, a backup of his hard drive was done—just in case more problems got caused through this process.) After the application of the client and the service pack, we tested again with the System Monitor. The problem was gone, and the VIP was happy.

Scenario 2: Many, but not all users in a department were complaining about slow application performance. These happened to be users of Windows 2000, so I used the Windows 2000 Control Panel applet (Administrative Tools, Performance) to take some measurements. The first statistic I added was "Redirector—Bytes Received per second," followed by "Redirector—Bytes Transmitted per second." (The redirector refers to the client portion of SMB that redirects server resources to look like local resources, such as drive letters.)

Unlike the first scenario, this network was 100Mbps to the desktop, with a very, very fast server at the other end. There was no reason at all for many people to be complaining, so I thought I'd take a look from my office.

The server itself was connected to a SAN, had huge amounts of memory, and so forth, so I became concerned that any file transfers from that server would be limited by my hard drive. So, I mapped my "O" drive to the server, identified a very large file to use as a test file, and then dropped to a command prompt and typed:

  COPY O:BIGFILE NUL:

The NUL: parameter allows you to say, "Don't actually copy the file to my hard drive, just throw it in the bit-bucket," enabling you to avoid your hard drive as a limiting factor.

Because BIGFILE was huge (it was a SQL server database backup, and was about 10GB), I had plenty of time to switch over to the Performance applet and view how fast, on average, the file was transferring to my workstation. As Figure 12.6 shows, it was averaging around 6.1 megabytes per second, which was not bad.

Figure 12.6 Reasonable performance on a 100Mbps network.

I went down to the wire closet used by the folks who were having problems, using the same laptop that I had used in my office, hooked it into the Ethernet port of one of the problem workstations, and ran my tests again.

Whoa! As Figure 12.7 shows, there was quite a difference. We went down from 6.1MB per second to about a third of a megabyte per second. Also, see how the indicator is jerking up and down? There's no steady stream as you might expect.

Figure 12.7 Poor performance, given a nominally fast server on a 100Mbps network.

So what was the deal? It turned out that the closet switch hadn't been properly configured for our environment—it was left as default; that is, autosense, instead of explicitly set to half duplex, 100 Mbps. As discussed in Hour 10, "Ethernet and Switching," autosensing can cause all sorts of problems, including this type of throughput problem. But, thanks to the Performance applet, it got tracked down pretty quickly.

You can track a huge number of stats with the Performance applet—tracking redirector transmission speeds are just the beginning. You'll definitely want to get familiar with the Performance applet before trouble strikes.

Process, File, and Registry Tracking

Although you can use the Performance applet to track things like processor utilization, it won't tell you which process is using what proportion of processor resources. Fear not, though, the Windows NT family does in fact keep track of such things, just like a real operating system.

The simplest way to check out per-process utilization is to bring up the Windows Task Manager (Ctrl+Shift+Esc is a shortcut key for this) and to sort the columns by CPU time—this is the amount of total CPU time used by a process since it started. On a healthy computer, the System Idle Process should be the highest number. (One other interesting thing to do is to sort by Mem Usage, letting you know which processes are hogging memory.)

Of course, there are other, more buff ways to track processes. SysInternals (http://www.sysinternals.com) provides one freeware program called Process Explorer, which, put simply, rocks the house. Process Explorer (ProcExp.Exe) not only shows various resources used by processes, but it also sports a tree view, showing which processes started which others. It also identifies which files a given process has open, as shown in Figure 12.8. If you've ever been frustrated by file in use errors, kiss them goodbye once you download Process Explorer. Sweet!

Figure 12.8 Process Explorer shows a tree view of the process table, as well as additional process info, notably files open.

Similarly, if you've ever asked, "Which actual process owns that socket pair that I'm seeing in the netstat -r output?" check out TCPView. It identifies all currently used socket pairs (UDP and TCP) and maps them to processes. This can be hugely useful; I once saw a bug in a program that kept infinitely opening sockets, and basically created a denial of service (DOS) because it was opening them so fast that other programs couldn't open sockets. It's pretty good to be able to track this sort of thing and kill the offending process rather than reboot and pray.

SysInternals also provides two other tools that no self-respecting system administrator should be without: FileMon and RegMon. Both utilities work on the Windows 9x and the Windows NT families.

FileMon, as it sounds, tracks all file access on a Windows system. Depending on your troubleshooting scenario, this can be a huge help. I can't even count the number of times I've been hit with some weird application error, "can't access file," and I had no idea what file, what error, or what the deal was. By reproducing the error in a small time frame on an otherwise idle system, FileMon quickly identified which file this was. Why not use ProcExp? Well, ProcExp only shows files that are currently open by processes, not open attempts.

FileMon actually shows failed attempts as well, which is awesome if you are a troubleshooter. (You might not know which application file you need to restore from backup, and this tells you.) Figure 12.9 shows FileMon tracking a Notepad session that is attempting to load a nonexistent file called Ouch.txt. As you can see, FileMon fingers both the nature of the error as well as the name of the missing file.

Figure 12.9 FileMon and RegMon show current activity on the file system and registry, respectively.

RegMon looks and works similarly to FileMon, but it deals with the registry instead of the Windows file system. Both tools are extremely powerful for dealing with corruption or security issues.

Nonbootable OS Recovery Methods

There are two ways in which you might not be able to access your Windows NT family machine: First, you might not be able to logon; second, you might not be able to boot into the OS at all.

In the good old days, you might boot an operating system diskette, fix the problem on the hard drive, and then reboot the hard drive. Well, there are a couple of problems with that nowadays. First, the Windows NT family doesn't offer a bootable OS diskette. Second, booting to a different operating system (such as DOS) presents a problem: The NTFS (NT File System) isn't readable by DOS, so restoring files that way is a bit of a problem. Besides, you can't exactly make registry tweaks here.

Microsoft has a couple of recovery methods that it recommends. First is the "Last Known Good" boot prompt. This has its uses, but I can tell you from experience that this does not always work. "Last Known Good" means, "restore the registry to the last known good point," where "last known good point" means "after Windows goes graphical." If Windows goes graphical, and then you have your problem, you're sort of out of luck.

For example, one time I ran the viewer application for a certain type of remote control package, and it randomly decided to modify my Windows 2000 workstation and install remote control. When I rebooted, I couldn't log in because it was complaining that it couldn't find a certain DLL. Well, sure, I hadn't installed the remote control piece. I tried using "Last Known Good" to no avail. How about the Emergency Recovery Diskette (ERD)? Well, I hadn't updated my workstation's ERD recently, so that was out.

There were a few methods I could have tried, in order, from most annoying and complex to least. First, I could have installed another copy of Windows 2000 in a different directory on the hard drive, and then manually copied the required file to the dead installation. Second, I could have moved my hard drive to another Windows 2000 workstation, and fixed it there. Third, I could have shared my hard drive from another Windows machine, and copied the remote control DLL to the proper place.

Clearly, the third option was, in this case, most preferable. But the first and second would have worked if my workstation was so dinked up that I could not share the drive from another machine. This happens with servers more often than we'd like to think.

If you find yourself doing a lot of recovery work, I'd like to recommend that you invest in some more utilities, produced by the same folks that write the SysInternals ones. They are

  • NTFSDOS Professional—Allows you to read and write files from an NTFS hard drive after booting from a DOS diskette.

  • Remote Recover—Allows you to read and write from a dead server over the LAN, by providing a LAN boot diskette for the server.

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020