Chatta subito con l'assistenza
Chat con il supporto

Foglight for SQL Server (Cartridge) 5.7.5.30 - User Guide

Managing SQL Server Database Systems Introduction to this Guide Using Foglight for SQL Server Monitoring Business Intelligence Services Administering Foglight for SQL Server Glossary Reference

Monitoring Buffer Cache-related Data

The Buffer Cache table displays the objects that currently occupy the most space in the buffer cache (the Top N buffer cache objects).
To improve performance, Foglight for SQL Server limits the number of records that can be displayed in this table to 300 rows, but by default, a maximum of 20 records are displayed.
The Plan Cache panel displays information about the SQL Server's plan cache, which holds execution plans for stored procedures, triggers, ad hoc SQL, and so on. This panel can be used for tracking the plan cache hit rate, and, if the rate it too low, investigate which object plans are used frequently.
The various panes of the Plan Cache panel allow carrying out the tasks described in the following sections:
Bound Trees — normalized trees for views, rules, computed columns, and check constraints. For details, see glossary definition of Bound trees.
Extended Stored Procedures — a SQL Server object that dynamically loads and runs a function within a dynamic-link library (DLL) in a manner similar to a stored procedure. For details, see glossary definition of Extended stored procedures.
Object Plans — query plans generated by creating a stored procedure, function, or trigger. For details, see glossary definition of Object plans.
Replication Procedure Plans — query plans of a replication system stored procedure. For details, see glossary definition of Replication procedure plans.
SQL Plans — query plans corresponding to statements prepared using sp_prepare, sp_cursorprepare, or using auto-parameterization. For details, see glossary definition of SQL Plans.
Temporary Tables and Table Variables — temporary tables are session-specific tables, that is, the tables are automatically dropped when the session is closed. Table variables, on the other hand, are created in the memory and exist there until the running of a single Transact-SQL (T-SQL) batch is completed. For details, see glossary definition of Temporary tables and table variables.
To improve performance, Foglight for SQL Server limits the number of records that can be displayed in this table to 300 rows, but by default, a maximum of 20 records are displayed.
Foglight for SQL Server retrieves the largest plan cache entries first, so if any entries are not displayed, they are the smallest ones.
Table 10. The Plan Cache table contains the following columns:
The Cache Size by Object Type chart displays the amount of memory allocated to the plan cache over time, and breaks it down by object type. This display allows viewing trends of plan usage, which can be used for improving the queries used for retrieving the plans.
The Object Types chart shows various statistics for each type of plan cache object.
Table 11. The Object Types chart displays the following metrics.

Reviewing the Instance Activity

Viewing In-depth Data about the Instance

Viewing SQL I/O activity datausing the SQL I/O Activity panel, which provides graphical representations of various I/O activities of the currently diagnosed SQL Server instance. For details, see Viewing SQL I/O Activity Data.
Viewing session datausing the Sessions panel, which lists all current SQL sessions and allows viewing session details and locks. For details, see Reviewing Session Details.
Viewing detailed statistics about locks and latches — using the Locks panel, which displays information about all locks, latches and requests on the currently diagnosed SQL Server instance. For details, see Monitoring Locks and Latches.
Viewing statistics about current lock conflicts — using the Blocking (Current) panel, which displays information about all current blocked sessions and lock conflicts, including the connections and resources involved in these conflicts. For details, see Tracking Current Lock Conflicts.
Tracking deadlocks and their implications — using the Deadlocks panel, which displays all of the deadlocks that took place within the selected time range, as well as the databases and objects that were involved in the deadlock situations. For details, see Tracking Deadlocks and their Affected Objects.
Viewing I/O Statistics by Database Files — using the I/O by File panel, which displays current I/O statistics for each SQL Server file. For details, see Viewing I/O Statistics by Database Files.
The SQL Instance Summary panel displays a breakdown for the selected time range (by default: last 60 minutes) of system and SQL Server activity metrics, such as CPU utilization and response time. The display also includes the inner division within the metrics (for example, total CPU utilization compared with CPU utilization by the SQL Server). All metrics are displayed in the Foglight for SQL Server real-time summary; however, the home page displays only the last snapshot (by default: 20 seconds).
The SQL Instance Summary panel allows carrying out the tasks detailed in the following sections:
The Connected Sessions chart displays SQL Server session information. This chart contains a plot graph, which displays the number of SQL Server sessions over time.
The CPU Utilization chart displays the amount of CPU being used by SQL Server compared with the total being used by all processes in Windows.
The SQL Server IO chart displays the following types of I/O activity:
1
Click Activity > Sessions to go to the Sessions panel.
3
1
Click Activity > IO by File to go to the IO by File panel.
The Response Time chart displays the response over the defined time range.
Figure 15. The Cache Hit Rates chart displays the hit rates for the main SQL Server cache resources.
Buffer Cache — the hit rate for this cache should normally be over 90%.
Procedure Cache — the hit rate for this cache varies widely, depending on how well the application is written.
To further investigate the reasons for the low cache hit rates, see Monitoring Buffer Cache-related Data and Monitoring Plan Cache-related Data. To review how the cache hit rate affects the number of compiles and recompiles, review the Call Rates chart.
Figure 16. The Call Rates chart displays the rate at which various events are occurring in SQL Server.
The SQL I/O Activity panel provides information, represented graphically by charts, about the physical and logical activity of all SQL Server’s sessions. In addition, this panel includes a chart that displays various statistics relating to how SQL Server data is being accessed and updated (for example, page splits and page allocations). An extra chart featured in this panel, Disk Queue Length, displays the disk activity for each logical disk, including activity generated by non-SQL Server processes.
The SQL I/O Activity panel allows carrying out the tasks described in the following topics:
The following table identifies each of the main elements of the Foglight for SQL Server real-time summary page, and provides a link to display more information, corresponding to the logical dataflow within the Foglight for SQL Server Instance Homepage.
Components representing instance data flow — the main activity area in the Foglight for SQL Server Instance Homepage includes several panes and flows that represent the data flow in the SQL Server operation. The dataflow is described in this guide as a top-down design, that is: from the session to the physical disk storage. See Tracking the Instance Data Flow.
Up Sinceidentifies the date and time when the instance was last started.

Tracking the Instance Data Flow

Table 13. Data flows.
When this icon is yellow, clicking it displays text that describes theBlocking Alarm deviations that triggered this display, along with a representation of the rate at which SQL Server is encountering network packet errors.
The Process Activity pane allows monitoring the processes, both system and user sessions, run by the SQL Server. This pane also features other performance indicators, such as total number of lock requests per second and CPU usage, and allows accessing the error log.
Table 14. The Process Activity pane displays the following parameters:
When scanning is enabled, Foglight for SQL Server scans the SQL Server logs and raises alarms upon finding error messages that contain any of the error log alert rules. These rules can be specified for all connections, or for the current connection, using the Log Scanning view in the Databases Administration dashboard. For details, see Defining Error Log Filtering.
The Memory Activity pane allows monitoring the SQL Server’s dynamic memory management and ensuring its proper handling of the buffer pool.
The physical I/O Operations section of the Foglight for SQL Server Instance Homepage displays graphical representations of the number of pages physically read from and written to disk by SQL Server.
The SQL Server Physical I/O chart displays the rate at which pages are physically read from and written to disk by SQL Server. The read and write operations are carried out by either SQL Server processes or system processes.
Checkpoint Writes are the most common type of write activity under normal circumstances. The checkpoint process periodically scans the buffer cache for modified pages and flushes all modified pages out to disk, thereby minimizing the amount of work SQL Server is required to do on restart.
Lazy Writer Writes are carried out when the Lazy Writer process needs to free up buffer pages that have been modified in the buffer cache. Freeing up the buffers requires the Lazy Writer process to write first the changed pages to disk.
Physical Page Reads are carried out when a user connection requests a page that is not already in the buffer cache. The connection requesting the page awaits until the I/O operation completes.
Physical Page Writes are write operations where the user connection has to wait for the I/O to complete before continuing. These are most often caused by operations such as create index, bulk insert, or restore.
Read Ahead occurs when SQL Server forecasts the need for data that currently resides on the disk. In this case, the pages are pre-fetched into the buffer cache before being requested by the user, using Read Ahead processing.
The SQL Server Logical I/O chart displays the number of Logical reads (getpage requests) issued by SQL Server.
The Disk Queue Length chart displays the disk activity for each logical disk.
The Access Methods chart allows viewing various statistics used for monitoring the methods used for accessing and updating SQL Server data. These counters are all collected from the SQL Server Access Methods Manager.
When a row in a table that does not have a clustering index is updated - and if the modified row no longer fits on the old page - SQL Server moves the row to a new page and leaves a forwarding pointer in the old page.
The rate at which SQL Server encounters ghosted records during scans. When a record is deleted from a table, SQL Server improves concurrency by not physically removing the row from index Leaf levels, but marking it instead as deleted (ghosted).
Sessions — Displays the distribution of the currently opened SQL Server sessions between active (sessions that are actively processing in SQL Server) and inactive sessions during the current sampling period.
Throughput — Divided to 3 metrics which represent the throughput of the monitored instance:
Blocked — Displays the total number of SQL Server sessions that are blocked during the current sampling period.
CPU — The Host CPU Usage the total percentage of CPU resources being used on the monitored host. The displayed value represents the total CPU that is consumed by all Windows processes (SQL Server and non-SQL Server processes).
By clicking the All Wait Events link at the upper right corner of the section, The Active Wait Events pop-up appears, with the Resource drop-down list unfiltered and displaying the entire list of wait events
Allows termination of the selected session, using the Kill Session dialog box that is displayed upon clicking this column.
The number of open transactions. This parameter’s value corresponds to the value of the session’s @@trancount — a global variable that reflects the level of nested transactions.
The Locks panel displays information about all locks and latches in the currently monitored SQL Server instance.The information is provided by the panes described in the following topics:
The Locks table displays information about all locks currently held or requested.
Table 28. The Locks table displays the following columns:
The Lock Types chart shows lock statistics broken down by the various types of locks available in SQL Server.
Waits — the rate of lock request wait events. Such wait events take place when lock requests cannot be satisfied immediately and require the caller to wait before being granted the lock.
Average Wait Time — the average time (in seconds) that elapses before a lock request wait is cleared.
Lock Requests — the number of lock requests and lock conversion requests per second.
Timeouts — the number of lock time-outs per second.
Deadlocks — the number of lock requests per second that resulted in a deadlock.
The Latches chart displays statistics on latch requests.
Latch Waits — how many wait events for latches occurred in the specified time range
Total Wait Time — the total amount of time (in milliseconds) that latch requests spent waiting during the specified time range
The Blocking (Current) panel provides details for all current lock conflicts.
The Blocking table displays all connections that are either currently waiting on locks held by others, or are causing others to wait, highlighting who is waiting on whom, and the resources involved.
Table 29. The Blocking table displays the following parameters:
The Number of Blocked Processes chart displays the number of SQL Server sessions that were involved in blocks over time. Use this chart to review the frequency and duration of lock conflicts in SQL Server.
Blocked Processes — number of sessions that were waiting on locks held by others.
Lead Blockers — number of sessions that were not blocked, but were blocking others. Lead Blockers correspond to sessions in the Blocking table that do not have a parent in the Blocking chain (at level 1 in the tree).
Using the Foglight for SQL Server agent for collecting Deadlock Graph trace data does not require turning on any SQL Server trace flags. Foglight for SQL Server collects this data implicitly for any SQL Server user who has been granted the ALTER TRACE permission through the automatic discovery wizard; the user does not need to intervene in the process.
To retrieve Deadlock Graph data, Foglight for SQL Server uses minimal trace over deadlocks, collecting only the deadlock-related data, unlike SQL Server Profiler. The only difference is in the refresh rate; while SQL Server Profiler constantly refreshes its data, Foglight for SQL Server agent collects the data every 1 minute (by default) when focusing the screen (online mode), and every 5 minutes when off screen (offline mode). As a result, when watching the deadlock dashboard the data refresh occurs every 1 minute (by default).
The I/O by File panel displays current I/O statistics for each SQL Server file. The I/O statistics’ display can also be grouped by other grouping criteria, such as database files or disk.
The I/O by File table displays current SQL Server I/O statistics for each SQL Server database file.
Table 31. The I/O by File table displays by default the following columns:
The I/O by File chart provides a graphical representation of SQL Server I/O statistics for each SQL Server database file.
To display only requested files, click the first requested file and then hold down either the Shift key, for choosing a block of multiple files, or the Ctrl key, for choosing individual files.
Related Documents

The document was helpful.

Seleziona valutazione

I easily found the information I needed.

Seleziona valutazione