"Disclaimer: This blog post is reproduced from http://www.cnblogs.com/ljhdo/p/5149401.html"The most recent work has been to deal with the SQL Server database, which requires a more comprehensive understanding of SQL Server. So also in the urgent to read the data, learning this classic relational database.Performance counters (performance Counter) are a numerical value that quantifies the state or activity of a system, and Windows Performance Monitor a
Windows performance monitor Overview
Windows performance monitor is a Microsoft Management Console (MMC) management unit that provides tools for analyzing system performance. Monitors applications in real time only from a single consoleProgramAnd hardware performance, custom data to be collected in logs, define thresholds for alarms and automatic operations, generate reports, and view performance data in various ways.
Start Windows Performance Monitor: start --> Run-> enter
Current connection
System
Total processor time
Context conversion per second
System calls per second
Processor (0)(Each processor)
DPC speed
Number of interruptions per second
DPC queues per second
The results in the performance counter must be written into a special result file, testname. PRF (testname is the name of the test ). This is a text file separated by commas
is a text file separated by commas (,). It can be read in any standard text editor or used as input to workbooks or databases. However, this file cannot be read directly using PerfMon. This file contains the header information (number of counters, machine name, start time of naming), column header, and a table containing collected performance data. For the complete syntax and usage of this file, refer to t
During Game Development, the performance of the same type of games will always be compared. Generally, nvperfhud can only be used to analyze the applications we write.ProgramBecause this involves modifyingCode. So how can we analyze other people's games? We can use the counters provided by NVIDIA perfkit and the system management tools perfmon and DX pix for window for monitoring.
Procedure:
1. install
Io subsystem counters in Performance Monitor
Enter "perfmon" in the operation and use the performance monitor to observe the current I/O performance and determine whether I/O problems exist.
On SQL Server, counters involving I/O are:Average read Bytes/sec, average number of bytes read per secondAverage write Bytes/sec, average number of bytes written per secondRe
process type. The instance name is the name of the process you serve (without a suffix)For descriptions of other counters, open the perfmon tool to view the instructions of each counter one by one.The code for getting a counter value of a machine is as follows:
Public class perfcounter{Public perfcounter (string categoryname,String countername,String InstanceName,String machinename){This. categoryname = c
For normal testing, you often need to look at the data in Performance Monitor and now teach you how to turn on Performance Monitor:
1. Start-run (or press Win+r to open the Run dialog box)
2, input "Perfmon", and then enter
Run window
You can go to Performance Monitor, as shown in the figure:
Performance Monitor
Windows Performance Monitor uses performance counters, event trace data, and con
transactions. If transactions is very long, this wait type can start building up because of the other waiting transactions. Keep the transactions small.
Serialization isolation can build up this wait type. If the is a acceptable isolation for your business, this wait type may be natural. The default isolation of SQL Server is ' Read Committed '.
One of my clients have changed their isolation to "Read uncommitted". I strongly discourage the use of this because this would probably leads to ha
practical way to get started is to use the basic list and add the necessary related counters in the iteration. In addition, it is possible to capture and visualize performance counters in real time using Perfmon. In many cases, it is also possible to integrate user-defined metrics or plug-ins with APM tools.
SQL Tools
Because of the widespread use of databases i
Server farms by observing users' behaviors in the system and actively formulating countermeasures. Through reconfiguration and lock prevention, you can ensure that the improper behavior of a single user does not affect the experience of other users.
For example, experienced terminal server administrators configure performance alarms to be notified when processor utilization increases and remains very high. This behavior usually indicates that a process occupies the processor exclusively, or a u
virtual memory to force the system to use faster memory. In fact, this is not wise. The so-called everything should not be done too absolutely, and it will not work if there is no virtual memory at all. The reason is that many applications require virtual memory to be used during design. If they are not used, the system may be unstable or the system will crash.
For systems with small memory, such as 256 MB, the ratio is the most stable according to the ratio of 1.5 times and 3 times. That is,
you don't want to use C ++ attributes, there are corresponding classes and macros that you can use instead. you shoshould also be aware that setting counters to specific values is generally safe without having to worry about thread synchronization, but specify Ming calculations on the counters, such as incrementing or decrementing, requires the use of atomic operations such as interlockedincrement or synch
You can use Windows performance monitor to check in real time how running programs affect computer performance and collect log data for future analysis.During the testing process, you often need to view the data in the "Performance Monitor". Now you can enable the "Performance Monitor" method:1. Start-run (or press win + R to open the run dialog box)
2. Enter "perfmon" and press Enter.
You can go to the Performance Monitor ",
Windows performance mon
add the necessary related counters in the iteration. In addition, it is possible to capture and visualize performance counters in real time using Perfmon. In many cases, it is also possible to integrate user-defined metrics or plug-ins with APM tools.SQL ToolsBecause of the widespread use of databases in many applications, persistent layers (that is, SQL databas
simply choose not to set virtual memory to force the system to use faster memory. In fact, this is not wise. The so-called everything should not be done too absolutely, and it will not work if there is no virtual memory at all. The reason is that many applications require virtual memory to be used during design. If they are not used, the system may be unstable or the system will crash.For systems with small memory, such as 256 MB, the ratio is the most stable according to the ratio of 1.5 times
Windows Server 2008 R2 en enterprise 64bitSQL Server 2008 R2 en enterprise 64bit
Symptom: the performance counters related to SQL Server are not displayed in Performance Monitor.
Solution:
Rebuilding the counters:CD c: \ windows \ system32Lodctr/RCd c: \ WINDOWS \ syswow64Lodctr/R
Resyncing the counters with Windows Management Instrumentation (Wmi ):Winmgmt. EXE/resyncperf
Stop and restart the Performa
windows 2000 2000 core Components
Label.exe> change label for drives: change the volume label of the drive.
Lcwiz.exe> license compliance wizard for local or remote systems. license compliance
Wizard
Ldifde.exe> ldif cmd line manager ldif directory switch command line management
Licmgr.exe> terminal server license manager terminal Service license Agreement Management
Lights.exe> display connection status lights display connection status
Llsmgr.exe> windows 2000 license manager 2000 license agre
1,sqldiag is a successor of PSSdiag. SQL Nexus is a tool used to load and analyze performance data collected by SQLdiag
The SQLDIAG function is to collect the following information.
Hardware and software information for Windows Server (extracted via MSINFO32 utility)
Windows performance counters, event logging
SQL Server Profiler Tracking
SQL Server error logging
SQL Server blocking information
SQL Server Assignm
brief look at each one and tell us the pros and cons of each.Performance CountersFor developers using the Windows operating system, the performance counters are no longer unfamiliar, the simplest way is to run "perfmon", you can open the Performance Monitor window, and then add the corresponding counters, to monitor. As shown in the following:Performance
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.