This section describes monitoring tools, required privileges, and recommended schedules. It also discusses common errors and troubleshooting techniques.
Building an absolute schedule for monitoring all BizTalk solutions is either impossible or suboptimal. However, there are guidelines for building schedules that are optimized for your own solutions.
-
Scheduling. As often as possible
-
Required privileges.
Local Administrator, although follow-up may require BizTalk Administrator privileges
-
Tools. To open Event Viewer, click Start, point to Programs, point to Administrative Tools, and then click Event Viewer.
Event Viewer is the key to monitoring the health of BizTalk Server. If anything goes wrong during system startup, operation, shutdown, or message processing, an event appears in the tool. Although this tool seems simple, it provides critical troubleshooting information.
Because Event Viewer is a Microsoft Management Console (MMC) snap-in, you can use any MMC console that has the Event Viewer snap-in, or you can create your own console by starting MMC and adding the snap-in. Conveniently, the BizTalk Administration console contains the Event Viewer snap-in.
When you use Event Viewer, look for events from the following sources:
-
BizTalk Server 2004
-
ENTSSO (Enterprise Single Sign-On)
-
MSSQLSERVER
-
MSSQLServerOLAPServices
-
SQLSERVERAGENT
-
MSDTC (Distributed Transaction Coordinator)
-
Windows SharePoint Services 2.0
The Event Viewer error events typically give you an idea of where to start troubleshooting. Problems generally fall into one of two categories:
-
BizTalk message problems
-
System problems
The only two sources that post message error events are BizTalk Server 2004 and XLANG. Any other errors that you find are system issues.
With BizTalk Server 2004 or XLANG error events, you often find several events from other sources clustered together. This is because failing systems have a cascading effect, with the result being that BizTalk Server suspends the instance. Consider this when determining whether you have a health issue or an availability issue.
BizTalk Server 2004 Errors
Symptom
You receive an error event with the source equal to "BizTalk Server 2004."
Possible cause
This error could be caused by one of the following:
-
System problem
-
BizTalk Server message or Messaging Engine problem
Solution
To troubleshoot BizTalk Server errors
-
In Event Viewer, make a note of the message instance ID or service instance ID.
-
Examine the contents, and possible errors, around the event to gather direction for your next steps.
If the error appears to be caused by the BizTalk Server message or the Messaging Engine, you can query for the message in the Health and Activity Tracking (HAT) tool by using the following procedure:
-
On the Reporting menu, click Find Message.
-
In Event Viewer, find the message instance ID.
-
In the results pane, right-click the message and select one of the following to determine what went wrong:
Orchestration Debugger - if there was a problem in an orchestration
Message Flow - if there was a problem with the message itself
-
Use the ID from step 1 to retrieve the BizTalk Server message in HAT. For more information, see the "Health and Activity Tracking" section.
After you resolve the problem, either resume or terminate the suspended BizTalk Server message.
ENTSSO (Enterprise Single Sign-On) Errors
Symptom
You receive an ENTSSO (Enterprise Single Sign-On) error.
Possible cause
In the BizTalk Server context, Enterprise Single Sign-On (SSO) is responsible for storing adapter configurations. Therefore, if you find ENTSSO errors in your event log, they probably indicate a problem with one of your adapter configurations or with the connection to the master secret server or SSO database.
Solution
If you have not already done so, back up your SSO master secret. Until you do this, SSO will continue to litter your event logs with error messages telling you that the master secret has not been backed up.
For more information, see the SSO content in the BizTalk Server documentation.
MSSQLSERVER (SQL Server) Errors
Symptom
You receive an MSSQLServer (SQL Server) error.
Possible cause
Because BizTalk Server depends on SQL Server, errors here are often critical, and you should deal with them as quickly as possible to avoid extended outages. Often the issues reported by SQL Server are for the following reasons:
-
Lack of sufficient privileges
-
Connections timing out
-
Databases growing too large
Solution
Verify that the correct privileges have been granted.
If connections have timed out, check your network for possible problems.
If your network connection is not the problem, make sure that your databases have not grown too large. When databases become too large, they can cause a connection to time out.
For more information about troubleshooting BizTalk Server databases, see the "Health and Activity Tracking" and "Working with the MessageBox" sections.
For more information about general troubleshooting of databases, see SQL Server Books Online.
MSSQLServerOLAPServices (SQL Analysis Services) Errors
Symptom
You receive an MSSQLServerOLAPServices (SQL Analysis Services) error.
Possible cause
Errors that you see in Analysis Services generally do not affect the real-time operations of a BizTalk Server system. However, if you leave these errors unattended, you will lose analysis data and Business Activity Monitoring (BAM) or BizTalk Tracking Analysis will not display accurate information. If you are using BAM for administrative tracking, these errors can prevent you from effectively troubleshooting problem areas in your system.
Solution
For information about general troubleshooting of Analysis Services, see SQL Server Analysis Services Books Online.
SQLSERVERAGENT (SQL Server Agent) Errors
Symptom
You receive a SQLSERVERAGENT (SQL Server Agent) error.
Possible cause
SQL Server Agent runs scheduled jobs to move data to the tracking databases, remove old data, and several other "clean-up" tasks. If these tasks are not performed, the databases become large and slow, and a backlog is formed. At this point, the system is in critical danger of never catching up or of failing completely.
Solution
If you see SQL Server Agent errors in Event Viewer, resolve them as quickly as possible.
For more information about troubleshooting the SQL Server database, see "Working with the MessageBox."
For more information about general troubleshooting of SQL Server Agent, see SQL Server Books Online.
MSDTC (Distributed Transaction Coordinator) Errors
Symptom
You receive an MSDTC (Distributed Transaction Coordinator) error.
Possible cause
The Distributed Transaction Coordinator (DTC) is responsible for handling transactional information across process boundaries, and, as such, is critical for BizTalk Server functionality. If the DTC is down for any reason, your BizTalk Server system can be rendered useless very quickly; therefore, pay very close attention to any alerts received from this service.
Solution
For more information about general troubleshooting of Distributed Transaction Coordinator, see SQL Server Books Online.
Windows SharePoint Services 2.0 Errors
Symptom
You receive a Windows SharePoint Services error.
Possible Cause
Because Business Activity Services (BAS) runs under Windows SharePoint Services version 2.0, you should be mindful of these errors.
Solution
For more information about general troubleshooting of Windows SharePoint Services, see the Windows SharePoint Services documentation.
-
Scheduling.
Daily
-
Required privileges.
BizTalk Administrator
-
Tools. To open the BizTalk Administration console, click Start, point to Programs, point to Microsoft BizTalk Server 2004, and then click BizTalk Server Administration.
The BizTalk Administration console is the primary application for starting, stopping, configuring, and administering an operational BizTalk Server system. Also, when performing availability monitoring, the BizTalk Administration console provides a quick status of the following:
-
Hosts
-
Host instances
-
Receive locations
-
Send ports
-
Send port groups
-
Orchestrations
-
Servers
-
Adapters
-
Business Activity Monitoring Event Bus statistics
The Event Viewer snap-in is included in the BizTalk Administration console. This lets you move from an event in Event Viewer directly to the problem area in BizTalk Server.
For more information about using the BizTalk Administration console, see the BizTalk Server documentation.
-
Scheduling. Business Activity Monitoring (BAM) schedules vary on a solution-by-solution basis. Because BAM processes data in an ongoing manner, you should work with business users and developers to create BAM views.
-
Required privileges.
You must be a BizTalk Administrator to configure BAM; however, for monitoring only, you can customize privileges on a view-by-view basis.
-
Tools. For monitoring with BAM, you need a Web browser and the Office Web Components version 10.
BAM is the business-side complement to Health and Activity Tracking (HAT). Where HAT helps you analyze the health of your underlying system, BAM helps you analyze the more abstract business processes that exist in your solution.
At first, BAM appears to be a tool that only a business user would use; however, BAM also serves well as an administrative tool. For example, where a business user may want to see how many times a particular purchase order process has been started, an administrator can insert a simple measurement or dimension and use the tool to see how long the operation takes to complete. With this small adjustment, an administrator can now see and monitor the BizTalk solution, not just the system. Because business solutions vary greatly, you must work with your developer to make sure that the appropriate dimensions are in place.
The workflow for BAM typically follows these stages:
-
The business user defines the dimensions and measurements in Microsoft Excel.
-
You (the BizTalk administrator) add dimensions and measures to the Excel file before giving it to the developer. To better understand the orchestrations, work with the developer so that you can determine what dimensions and measures will help you monitor most effectively.
Of particular interest with any orchestration are the points where the orchestration connects to another computer or process. Often these points either are or become bottlenecks for many systems. By using BAM to monitor the response times for these connections, you can see trends and proactively deal with issues before they become problems.
-
The developer uses the Excel file and the Tracking Profile Editor to link the dimensions and measures to the solution's orchestrations and deploys the profile.
-
You use the BAM Manager (bm.exe) to generate the OLAP cubes and views that the business user can see on the Business Activity Services (BAS) site.
For more information about BAM, dimensions, measurements, OLAP cubes, and so on, see the BizTalk Server documentation.
-
Scheduling. Schedules are built into MOM.
-
Required privileges. Privileges are specific to each management pack.
-
Tools. Microsoft Operations Manager (MOM)
One tool you should consider when you build out your monitoring system is Microsoft Operations Manager (MOM) and the downloadable BizTalk Server 2004 Management Pack. Although discussion of the intricacies of MOM and the management pack is beyond the scope of this document, some description is appropriate.
MOM helps simplify identification of issues, streamlines the process for determining the root cause of a problem, and makes it easier to quickly restore services and to prevent potential IT problems. You can set rules that analyze a set of monitoring data and prescribe actions to take when the rule criteria are met. The actions can be alerts, system remedies, or other actions.
MOM management packs are packs of rules that you import into MOM. These packs, which are designed and built by software developers, aggregate data like events in Event Viewer. After the data is aggregated, the rules more effectively recommend steps to resolve the problem. Each rule in a management pack has information from the developer regarding the recommended steps to take for resolution.
One additional small but important feature of MOM is that of event consolidation. Often a single error in a system causes a glut of event messages in Event Viewer. These events, though informative, can distract you from the real problem in your system. MOM, together with the management packs, consolidates these error messages into smaller, actionable chunks for more focused troubleshooting.
Both Microsoft SQL Server and Microsoft BizTalk Server have management packs that have many useful rules, which relieve you of the laborious tasks of repeated monitoring.
For more information about Microsoft Operations Manager, see the MOM Web site. This site also contains a link for downloading management packs.