Use Spotlight configuration and performance monitoring tools

      This is my off-line collating information in the content, probably in 2012, when to start using performance monitoring tools, until now, access to several performance monitoring tools, the company's quest or the United States this product is relatively Spotlight cow!

I do not know how many resources can be developed to support the monitor, I took my finishing before the document corresponding version of the tool to explain, as to download some software support or resources to a resource, your own Baidu search: quest Spotlight, official website to download version is available for a surcharge, and therefore their own web search download cracked version.

Spotlight can be monitored very many resources, related as follows:

Spotlight on web server // web application services 

AD domain application services on Spotlight on Active Directory // wwindows operating system

 Spotlight on DB2 // DB2 relational database application services

 Spotlight on MySQL // mysql relational database application services

 Spotlight on Oracle // oracle relational database application services

 Spotlight on SQL Serever // SQL Serever relational database application services

 Spotlight on Sybase ASE // sybase OLTP relational database application services

Spotlight on Unix / Linux // Unix / Linux operating system

Spotlight on Windows // Windows operating system

Spotlight on Microsoft's Exchange e-mail server application service on the Exchange // Windows server operating system

Spotlight does not need to install an agent on the server side, only need to create a number of managed objects.

    Here I have only a few commonly used to install, configure, and simple to use to be introduced:

Spotlight on windows server monitoring

1, Spotlight on Windows-based WMI monitoring, the firewall needs to open TCP 135, TCP 445 port.

Windows Firewall is turned on WMI support methods: Group Policy, Computer Configuration, Administrative Templates, Network, network connections, Windows Firewall, the standard configuration file that allows remote administration exception, add the IP address of the monitoring machine. Not recommended to turn off the Windows firewall.

2, monitoring machine needs a remote computer administrator account for verification. In addition, we wanted to change the way network access Classic - Sharing and security model for local accounts. If you need to use only the authentication guest, guest account is added to make the system user group administrators. Fill guest account when monitoring, password blank.

3, Spotlight dependent on the Remote Registry service, make sure that the remote computer is turned on.

I check the Internet, on windows operating system server monitoring write a more detailed article recommended: https://www.cnblogs.com/qmfsun/p/4838625.html

Spotlight on unix \ linux server

1, the monitored server centos linux operating system as an example, other linux distributions similar, but each operating system, linux command just not the same, first create a user on the server specifically for monitoring use!

Because remote monitoring server, the server needs to obtain resources, so must have permission. Use document clearly stated, you can not use the root user, but I use another user already exists does not work, we can only create a new user, convenience to use spotlight as the user name, as follows:

  >> useradd spotlight

  >> passwd spotlight

  After setting a password ok. But the user must have root privileges spotlight job, but here I just create a normal user. If you create a user with root privileges with the following command, and recommended that the password is slightly more complex:

>> useradd -g root -G root spotlight // user gives permission to spotlight and root the same.

Or directly edit: vim / etc / passwd the spotlight user UID and GID change 0: 0

  >> passwd spotlight

  After setting the password.

2, the spotlight is still monitoring linux linux use of sysstat package, all you need to install sysstat package. You need to have a server monitoring tools, such as sysstat

   (1) Check whether the installation package sysstat: rpm -q sysstat;

   (2) If not, the installation: rpm -ivh sysstat.

  Can be completed

3, the local machine installed spotlight, create monitoring information as follows

  Enter the Spotlight interface, go to File menu, click Connect, enter the following interface:

Double-click the Add New connection, create a new monitor to enter the following links:

Enter the IP address of the server to be monitored, spotlight user account and password, fill OK to finish.

4, the monitoring information is as follows:

Linux operating system server monitoring information at a glance.

(1)、system

System information includes the Linux version, system uptime, time now

(2)、Network

It includes broadband connections and

(3)、CPU

User cpu, cpu and use the remaining systems cpu;

It also includes a process queue.

(4)、Memory

Memory situations include physical memory and virtual memory usage

(5)、Swap Files

Swap file usage

(6)、Disk Activity

Disk Usage

(7)、Paging in /out

Memory pages read per second number. / Sec writing the amount of memory paging. Is the interaction between the CPU and memory.

(8)、Swapping in rate / out rate

The above is paging, this process is interactive.

(9)、Disk I/O writes / reads

Virtual memory is divided out on the hard disk when memory generates I / O disk issues of physical memory and virtual memory will interact responses.

Spotlight on mysql monitoring mysql

To install the first use ODBC 3.5X version;

If you are installing on windows operating system, please read: https://www.jianshu.com/p/fc92cf133899

If you install the linux operating system, please read the following:

potlight on mysql-time monitoring mysql, you need to perform iostat command, so the need to ensure iostat installed on the target server linux 

Not installed iostat, so the disk I / O statistics, OS Performance page and OS Details drilldown, etc. will not be displayed.

yum install -y sysstat.x86_64

establish connection

 Click connect after you can see the effect of the monitoring

1, Sessios Session
Total Users: the total number of users
before connection to the MySQL server's user total number of sessions
Active Users: active users
this control indicates that the connection to the currently executing SQL statement or other MySQL server database request sessions
Active Sessions: number of active sessions
the percentage of your current session is currently executing SQL statements or other database requests

2, Host Host
Total CPU Usage: total CPU usage
this rotator indicates the amount of CPU used, with the increase in CPU demand, it spins faster,
if the total system's CPU utilization exceeds a threshold value (CPU busy alert ), the alarm can become a component of instructions on this,
adversely affect the performance of sustained high CPU utilization of the system will
run queue: the run queue
run queue displays the number of tasks waiting for CPU resources. When this number exceeds the number of CPU resources, CPU bottleneck existed
Memory: Memory
Free Physical RAM: available physical memory
that is available physical RAM,
if available physical RAM is low (low free physical RAM alerts), alerts on instructions may be on this component

3, MySQL database
Sorts: Category
Sort Buffer Size: Sort buffer size
which is global server settings sort_buffer_size value. sort_buffer_size the definition of available memory, each time you want to perform the sort,
if the sort required more memory than is available, it will execute the sort using temporary tables on disk,
the displayed value is a global setting. Individual sessions may change this parameter on an individual basis
Rows Sorted: Sorting Rows
This control displays the number of rows MySQL server sorting per second. It is based on the value of the state variable sort_rows server,
MySQL only reports the number of lines ordered at the completion of the sort, so if you perform some sort long, the statistic value may rise sharply in a short time to periodically very high value
per second: sec
query cache: query cache
status: status
MySQL query cache status, valid values are:
OFF- query cache is inactive,
ON- cache option than other sql_no_cache implied
demand -MySQL cache SELECT statement includes only sql_cache hint
size: the size of the
query cache size
Querirs: query
query the number of MySQL query cache currently in the
free: free
amount of free memory query cache
QC hit rate: query cache hit rate
found in the query cache select the percentage match sELECT statement need not be executed

Query cache hit ratio alarm
MySQL database server MySQL query cache to store recently selected to perform the query,
as well as those queries result set.
This may reduce the amount of parsing overhead, and logical and physical I / O,
if the query is repeated, these queries associated with those queries.
Query cache hit rate when an alarm is triggered SQL query below a specified threshold proportion found in the MySQL query cache.
You can adjust the query cache performance by modifying the configuration variables:
Change the query cache size or type of
change can be cached query the maximum size
change query cache allocation size or the minimum block size
Thread Pool: thread pool is
currently used to connect reuse number of threads

4, InnoDB database engine
Buffer Pool: pool
Size: the size of the
data cache InnoDB buffer pool table, so it does not need to write every disk,
this control displays the size of the InnoDB buffer pool to megabytes
Free: free the
amount of memory is not included in the data InnoDB buffer pool,
in most systems, it will eventually reach zero,
unless the buffer pool is large enough to accommodate all of the data read from the database periodically
hit rate: the hit rate
in the buffer pool time to find the requested data block percentage, avoiding disk I / O,
a higher value indicates a good cache effectiveness,
however, if the application performs a large number of full table scan, then low value may be normal
Rows Processed: row
this measure display insert, update, delete, and select the speed of operation of the second row is expressed,
it does not include sorting line rate
per second: per
log buffer: log buffer
size: the size of the
size of the log buffer InnoDB to megabytes,
InnoDB log buffer InnoDB buffer is written to the transaction log
IO threads: IO thread
worker thread execution InnoDB I / O count

5, Storage storage
Tablespace: tablespace
total size of InnoDB table space in the file, the total number of these documents free space
Note:
In this version,
if you use a table space for InnoDB table configuration file for each table space that we can not usage report
total: all of the
total space allocated to InnoDB tables for the diagnosis of MySQL database,
to set the InnoDB table space configuration parameters through the my.cnf file [mysqld] section innodb_data_file_path options or my.ini (Windows),
Note: the refresh rate spotlight homepage may be delayed exact value of the component
free: free
the remaining space available for the diagnosis of MySQL database, InnoDB table space in
the amount of free space in the tablespace is displayed by the MySQL command returns the table status one of the values,
note: the refresh rate spotlight homepage may be delayed exact value of the component
Auto extend: automatic extension of
the InnoDB table entry can be set to automatically increase the size of the (auto) when they become full,
for InnoDB table space configuration parameters ( including AUTOEXTEND) it is in the my.cnf file [mysqld] section innodb_data_file_path Item or size my.ini (Windows), the
expansion of InnoDB table space by setting innodb_autoextend_increment option, the
default value is 8, which corrresponds in fixed increments MB 8
Logs: Log
transaction log of InnoDB.
Note: This component is currently no value, only appears as a MySQL architecture of the transaction log
meaning of values: log size and number of log groups used in the InnoDB storage engine,
the number of log files in the log group is set in the my.cnf file [mysqld] section innodb_log_files_in_group option, the
default value of 2,
the size of each log file in a log group is made innodb_log_file_size,
with a 5 MB default,
values are displayed by the MySQL variable retrieving command (see event details configuration page) 

Read and write streams:

Executions The SQL / S
SQL perform
this flow display client connection to send SQL statements or other rate request to the server database.
All database requests, including calls, a display, and set the report description.
However, if the client makes a call statement, this counts as an executive, even if stored procedure calls execute multiple SQL statements.
Data Send Rate
data transmission rate of
this stream represents the transmission data rate to all clients from a server.
Data in this context includes a command packet (e.g., SQL statements), and data is sent to the database.
High rate usually associated with high insertion rate.
Data Received Rate
data rate receiving
the stream data transmitted from the display rate of MySQL server to all clients.
Packets may contain the return code and error messages, but most of the data from the server to the client transmission is usually in the form of a SELECT statement result set.
The Logical Writes The InnoDB / S
InnoDB logical write speed,
write operations are performed in InnoDB buffer pool, based on the state variables innodb_buffer_pool_write_requests.
InnoDB Logical Read Rate
logic InnoDB read rate of
rate logic read request by InnoDB. This includes all data required from InnoDB, including a data buffer pool and data read from the hard disk.
The Physical Writes The the InnoDB / S
the InnoDB physically written
This flow rate display data is written to the tablespace InnoDB file on disk.
The Physical the Read Rate InnoDB
InnoDB physical reading of
physical I / O operations to the file from the InnoDB tablespace InnoDB buffer pool.
The Log Writes The Buffer the InnoDB / S
the InnoDB the Log Write Buffer Innodb rate is written to the log data buffer.
InnoDB Log File Write Rate
writing speed innodb log file
I shows such a flow / O rate InnoDB transaction log.

 

Related Monitoring Introduction:

1, MySQL-related

1.1 Activity->Mutex 对应Show engine innodb mutex  

1.2 Activity-> InnoDB Status correspond to show engine innodb status;

1.3 Activity-> Error Log displays the current connection recent error, including the creation of the database, start, or create a table of the check && repair, as well as the creation of a logfile

1.4 Activity-> General Log Display connecting and disconnecting a client records, and each SQL statement in a table form

NOTE: my.cnf in setting parameters for an log_output = table

1.5 Activity-> Slow Query Log in tabular form showing a slow query SQL statement

2 system-related

2.1 OS Details-> OS Performance Displays the operating system cpu, disk I / O, memory and other monitoring information

2.2 OS Details-> OS Processes displays the current active processes

Spotlight on oracle monitor oracle

1) First, to ensure the installation of the machine spotlight on the oracle oracle client tools installed.

Install the Oracle client instantclient_11_2;

And configure the system PATH environment variable TNS_ADMIN instantclient_11_2 the path are mounted;

Tnsnames.ora configuration file, fill in the required information on the database instance, as follows:

2) establish a connection to Oracle

If you need to simultaneously monitor the operating system, you need to enter a user name and password of the operating system; select the database in tnsnames.ora configuration database client;

Note: If you want to simultaneously monitor OS, be sure to use the administrator account Windows, linux can not use the root account;

If synchronization is not required to monitor OS operating system, it is not required in the "monitor OS" tick before, as shown below:

3) monitor user configuration

Set user oracle connection (recommended to re-establish a new monitoring user, do not use the system real account)

We must first create a monitor for the user to be monitored database before connecting Oracle database to obtain this information through monitoring user monitoring

 

We must first create a monitor for the user to be monitored database before connecting Oracle database to obtain monitoring information by monitoring the user,

First, open the "file" -> "OracleUser Wizard" screen, as shown below:

4) the main interface

The main interface reflects the overall operation of the system, what aspects of the system if there is a problem, a warning will be reported to the appropriate, different levels of display different colors, the most serious red alert.

According to this warning can then drill down to the appropriate child window, view the situation. The following describes each child window.

Note: The green area represents the normal relevant areas, a yellow area represents the area outside the standard value warning, red area represents the region is abnormal.

 

1.Session panel:

Response time (1) Response <10, the system

(2) Total Users: Total number of users SESSION

(3) Active Users: SESSION number of users currently being executed

2.Host panel:

(1) CPU utilization

(2) Memory usage

3. Server Processes panel: Displays information about the server process

(1) PGA Target / Used to display the total number of current use and PGA target

(2) dedicated display the number of dedicated server process

(3) Shared displays the number of shared server processes.

(4) Dispatchers dispathers the number of display.

(5) JobQueue show the number of work processes

4. SGA Panel: Shows the SGA memory usage of each component

(1) CurrentSize sga used to display the current number M

(2) BufferCache, KeepPool, RecyclePool case where the display data buffer memory

(3) SharedPool: shared use of pool

(4) RedoLog: use of redo logs

(5) LargePool: the use of a large pool

(6) JavaPool: the use of java pool

5.Background process panel - daemon panel: displays the disk I / O of background processes.

(1) DBWR data write process

(2) LGWR log process

(3) ARCH regulatory process type file

6. Disk storage panel: display case main database file (except for control file)

(1) DatabaseFiles: the display data file usage.

(2) online log file cases. Comprising a number of groups and size.

(3) archived logs situation.

5) focus on monitoring and analysis project

You can view current session which is currently taking up a lot of resources, thereby positioning database problem topSession panel.

This is a master-slave panel, click the top list, displays all the information in the session in sessionInformation.

You can view current session which is currently taking up a lot of resources, thereby positioning database problem topSession panel.

Click on the upper part of the list, all the details of the session will be displayed in the session Information. 

Below are a few places should pay attention to:

  most recent sql: it can be used to determine the current maximum occupancy of resources sql statement

       Session waits: you can find out the wait events associated with the session.

 Session locks: lock display relevant information.

6) SQL application workloads

top sql: Click Top Sql can view all system resources occupied large sql statement, select the appropriate line, you can view detailed information about SQL information;

The conditions in the respective view libraryCache sql.

 The main options for sorting

 Could then to find a big impact sql 

 

Find out the length of time elapsed occupied SQL statement, and then optimize; find out what sql multi-disk read and write cache hit rate, optimize costs almost optimized for 0 sql statement, starting with grammar optimization, re-optimization from business logic .

Click Fetch SQL button, you can view the corresponding SQL statement 

7) activity analysis

Activity: This window, which offers a wait event, lock wait, wait Yan lock, current affairs. You can view graphically disk, IO, wait for events and other information;

 8), and memory configuration: the main display and the usage parameter configuration SGA 

9), disk storage: The table shows the usage of space utilization and online logs.

 

Guess you like

Origin www.cnblogs.com/douyini/p/11604472.html