System and method for monitoring performance of domestic server

By constructing the overall technical framework of server performance management, the local deployed server performance monitoring system is realized, the problem of monitoring domestic server performance in existing technology, and providing efficient, safe and accurate performance monitoring data to support optimization decisions.

CN119356972APending Publication Date: 2025-01-24FUJIAN YIRONG INFORMATION TECH +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411275181.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-12
Publication Date
2025-01-24

AI Technical Summary

Technical Problem

Existing server performance monitoring technologies are difficult to implement local deployment, and remote monitoring has security and data accuracy problems, especially when monitoring domestic servers, there are hardware performance differences and optimization requirements.

Method used

A system and method of monitoring domestic server performance, including the overall technical framework of building server performance management, including server information management, performance monitoring task management, performance report management modules and databases. The system supports local deployment, can monitor the performance indicators of CPU, memory and disk, and judge disk performance through a weighted average reading rate.

Benefits of technology

Achieve the hardware performance of domestic servers efficiently on local servers, support the X86 and ARM architecture, avoid network latency and data security issues, and provide accurate performance data to support optimization decisions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119356972A_ABST
    Figure CN119356972A_ABST
Patent Text Reader

Abstract

The invention relates to a system and a method for monitoring the performance of a domestic server. The server performance management system comprises a server information management module, a server performance monitoring task management module, a server performance report management module and a database. The server information management module comprises a server information storage module and a server information change module; the server performance monitoring task management module is specifically a collection task creating module; the server performance report management module comprises a central processing unit performance report module, a memory performance report module and a disk performance report module; the server information storage module is used for storing a server IP address, a server SSH port, a server login user name and a server login password; and the server information change module is used for modifying or deleting the existing server IP address, the server SSH port, the server login user name and the server login password.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of server monitoring, and in particular to a system and method for monitoring the performance of domestic servers. Background Art

[0002] At present, it is inevitable that there are differences in software and hardware performance between domestic servers and foreign servers. This difference can be used to optimize server configuration by monitoring server performance.

[0003] Performance monitoring for servers usually involves monitoring indicators such as the central processing unit (CPU) load, memory usage changes, and disk read and write efficiency. Traditional performance monitoring usually requires installing monitoring tools on the server side, and needs to distinguish the central processing unit architecture for version selection, such as LoadRunner, Apache JMeter, etc., and copying and generating fixed-format files to the client for analysis. The process is cumbersome and has high requirements on the environment. There are many modern performance monitoring platforms based on the B / S model, such as Loadstorm and Load impact, but due to remote access and network overhead, the security and data accuracy are not high, and most of them cannot be deployed locally, which has great limitations.

[0004] In the prior art EP2176759B1, a method for measuring the performance of a target server using a dynamic monitoring tool is disclosed, wherein the dynamic tracking tool includes a predefined probe for acquiring data related to the behavior of an operating system and an application of the operating system. The target server. The method includes the following steps from a remote operation server: accessing the dynamic tracking tool in the target server through a communication network, downloading at least one script before the dynamic tracking tool is executed, and automatically accessing the target server at a given time in order to recover the performance data generated by the dynamic tracking tool executing the script.

[0005] In the prior art, the use of tracking tools to remotely monitor servers cannot be achieved through local deployment or the cost of local deployment is high. When it is necessary to monitor servers in an enterprise intranet environment, it is necessary to open up network interaction between the internal network and the external Internet, which poses great risks in terms of interaction security and data security. Summary of the invention

[0006] In order to solve the above problems existing in the prior art, the present invention proposes a magnetic wireless temperature measurement device and method with dual power supply backup.

[0007] The technical solution of the present invention is as follows:

[0008] On the one hand, the present invention provides a system for monitoring the performance of a domestic server, comprising:

[0009] Constructing the overall technical framework of server performance management, including server information management module, server performance monitoring task management module, server performance report management module and database; the server information management module includes server information storage module and server information change module; the server performance monitoring task management module is specifically a collection task creation module; the server performance report management module includes a CPU performance report module, a memory performance report module and a disk performance report module;

[0010] The server information storage module is used to store the server IP address, server SSH port, server login username and server login password;

[0011] Server information change module, used to modify or delete the existing server IP address, server SSH port, server login username and server login password;

[0012] Create a collection task module to collect NMON monitoring files;

[0013] The CPU performance reporting module is used to monitor various performance indicators of the CPU, calculate and analyze the average CPU usage rate, and compare it with the preset threshold to determine the CPU operating status;

[0014] The memory performance reporting module is used to monitor various indicators of the memory part, calculate and analyze the average memory usage, and compare it with the preset threshold to determine the operating status of the memory;

[0015] The disk performance report module is used to monitor various indicators of the disk part, calculate and analyze the average read rate of the disk, and further add weights to use the weighted average read rate of the disk as the basis for judging the disk performance;

[0016] Database, used to store monitoring data of each module in the system.

[0017] As a preferred implementation, the overall technical framework of the server performance management is constructed using Java, Spring framework, MyBatis framework and Vue-Element-Admin front-end framework.

[0018] As a preferred implementation, the method for storing the server IP address and the server login password in the server information storage module is specifically as follows:

[0019] To verify the legitimacy of the input of the server IP address, use the form rules property of Vue-Element-Admin, configure the regular expression for verifying the IP, and bind the IP address input box. The regular expression is as follows:

[0020] (([1-9]?\d|1\d{2}|2[0-4]\d|25[0-5]).){3}([1-9]?\d|1\d{2}|2[0-4]\d|25[0-5])

[0021] For the server login password, customize BaseEncryptHandler to inherit BaseTypeHandler to implement ciphertext storage.

[0022] As a preferred implementation, the method for modifying or deleting an existing server IP address, server SSH port, server login username, and server login password is specifically as follows:

[0023] Based on the MyBatis framework, use the Mapper interface defined by it to write UPDATE and DELETE SQL statements to modify the server information.

[0024] As a preferred implementation, the method for collecting NMON monitoring files is specifically as follows:

[0025] Rely on the Java Jsch development kit to realize the SSH connection between the monitoring system and the server under test, execute the target instruction to create a folder for storing the NMON client and the NMON monitoring records, execute the target instruction to obtain the central processing unit architecture of the server under test, upload NMON to the folder according to the type of architecture obtained, execute the target instruction to start the NMON monitoring task of the monitoring system according to the interval time and execution times of the monitoring task input by the user, and generate the NMON monitoring file.

[0026] As a preferred implementation, the NMON monitoring file records a complete performance indicator in behavioral units, separates the content of an indicator with commas, and begins with "ZZZZ" as a prefix to distinguish a complete record.

[0027] As a preferred implementation, the method of monitoring various performance indicators of the central processing unit and calculating and analyzing the average usage rate is specifically as follows:

[0028] The various performance indicators of the central processor include the time proportion of each central processor in user mode %User, the time proportion of each central processor in kernel mode %Sys, the time proportion of all CPUs in idle and waiting for I / O completion %Wait, and the time proportion of all CPUs in idle %Idle;

[0029] The overall utilization rate of all CPUs is the sum of the time of all CPUs in user mode and system mode (%CPU). The specific calculation formula is as follows:

[0030] %CPU=%User+%Sys

[0031] The average CPU usage is further calculated as the sum of the overall CPU usage collected over multiple times and the quotient of the number of collections. The specific calculation formula is as follows:

[0032]

[0033] In the formula, n represents the number of acquisitions.

[0034] As a preferred implementation, the method of monitoring various indicators of the memory part and calculating and analyzing the average usage rate of the memory is specifically as follows:

[0035] The various performance indicators of the memory part include monitoring the total memory Memtotal, monitoring the free memory Memfree, monitoring the memory size cached occupied by the cache memory, and the system buffer size buffers;

[0036] Calculate the overall usage of all memory %u, the specific calculation formula is as follows:

[0037]

[0038] The average memory usage is further calculated as the sum of the overall memory usage of multiple collections and the quotient of the number of collections. The specific calculation formula is as follows:

[0039]

[0040] In the formula, n is the number of acquisitions.

[0041] As a preferred implementation, the method of monitoring various indicators of the disk part, calculating and analyzing the average read rate of the disk, and further adding weights to calculate the weighted average read rate of the disk is specifically as follows:

[0042] The various indicators of the disk part include the read rate r of all disks of the server during the monitoring time, the write rate w of all disks of the server during the monitoring time, and the sum of the IO rates x of all disks and partitions of the server during the monitoring time;

[0043] Calculate the average disk read rate Average write rate and average IO rate The calculation formula is as follows:

[0044]

[0045]

[0046]

[0047] In the formula, n is the number of acquisitions, r is n 、w n and x n Represents the read rate, write rate and average IO rate of each disk respectively;

[0048] And further add weights to each parameter to calculate the weighted average disk read rate Weighted average write rate and weighted average IO rate The specific calculation formula is as follows:

[0049]

[0050]

[0051]

[0052] In the formula, n is the number of acquisitions.

[0053] On the other hand, the present invention provides a method for monitoring the performance of a domestic server, the specific steps of which include:

[0054] Constructing the overall technical framework of server performance management, including server information management module, server performance monitoring task management module, server performance report management module and database; the server information management module includes server information storage module and server information change module; the server performance monitoring task management module is specifically a collection task creation module; the server performance report management module includes a CPU performance report module, a memory performance report module and a disk performance report module;

[0055] Using the server information storage module to store the server IP address, server SSH port, server login user name and server login password;

[0056] Use the server information change module to modify or delete the existing server IP address, server SSH port, server login username and server login password;

[0057] Use the Create Collection Task module to collect NMON monitoring files;

[0058] The CPU performance reporting module is used to monitor various performance indicators of the CPU, and the average CPU usage is calculated and analyzed, and compared with the preset threshold to determine the operating status of the CPU;

[0059] Use the memory performance report module to monitor various indicators of the memory part, calculate and analyze the average memory usage, and compare it with the preset threshold to determine the operating status of the memory;

[0060] Use the disk performance report module to monitor various indicators of the disk part, calculate and analyze the average read rate of the disk, and further add weights to use the weighted average read rate of the disk as the basis for judging the disk performance;

[0061] The database is used to store the monitoring data of each module in the system.

[0062] The present invention has the following beneficial effects:

[0063] 1. The present invention arranges algorithms for hardware performance indicators such as the CPU, memory, and disk of the server to calculate the operating efficiency of each indicator to determine the performance of the hardware, and further determines whether it is necessary to optimize the software facilities on the server or improve the memory configuration.

[0064] 2. The present invention deploys the system in a local server, supports X86 architecture and ARM architecture widely used in domestic servers, and compared with online monitoring tools or platforms, it has the advantages of local deployment, no network delay, and data implementation monitoring. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] Figure 1 This is the overall technical framework diagram of this monitoring system;

[0066] Figure 2 A flowchart of server information storage;

[0067] Figure 3 This is a flowchart of server information modification;

[0068] Figure 4 A flowchart for creating a collection task;

[0069] Figure 5 This is a flowchart of the overall status report of the server. DETAILED DESCRIPTION

[0070] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0071] It should be understood that the step numbers used in this document are only for convenience of description and are not intended to limit the order in which the steps are executed.

[0072] It should be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0073] The terms “include” and “comprising” indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0074] The term "and / or" means and includes any and all possible combinations of one or more of the associated listed items.

[0075] Embodiment 1:

[0076] See also Figure 1 ,A system for monitoring the performance of domestic servers, comprising;

[0077] Constructing the overall technical framework of server performance management, including server information management module, server performance monitoring task management module, server performance report management module and database; the server information management module includes server information storage module and server information change module; the server performance monitoring task management module is specifically a collection task creation module; the server performance report management module includes a CPU performance report module, a memory performance report module and a disk performance report module;

[0078] The server information storage module is used to store the server IP address, server SSH port, server login username and server login password;

[0079] In this embodiment, a server information storage module is constructed based on the overall technical framework to achieve persistence and reuse of server IP addresses, server SSH ports, server login usernames, and server login passwords. Subsequent performance monitoring tasks require obtaining server information to connect to the database. For input legitimacy verification of the server IP address, the form rules attribute of Vue-Element-Admin is used to configure the regular expression for verifying IP "(([1-9]?\d|1\d{2}|2[0-4]\d|25[0-5]).){3}([1-9]?\d|1\d{2}|2[0-4]\d|25[0-5])", and bind the IP address input box. When filling in the server IP address, a legitimacy check will be performed according to this regular expression. Regarding the particularity of server password storage, custom BaseEncryptHandler inherits BaseTypeHandler to implement ciphertext storage. BaseTypeHandler is the top-level interface of the type processor of the MyBatis framework. Implementing this interface can realize custom data encryption and decryption functions. This approach can meet the security rules for ciphertext storage of special type fields.

[0080] The process of server information storage is as follows Figure 2 shown.

[0081] Server information change module, used to modify or delete the existing server IP address, server SSH port, server login username and server login password;

[0082] In this embodiment, a server information change module is constructed based on the overall technical framework to modify the server IP address, server SSH port, server login username, server login password or delete the server information. Based on the MyBatis framework, using the Mapper interface defined by it, SQL statements such as UPDATE and DELETE are written to modify the server information.

[0083] The flow chart of server information modification is as follows Figure 3 shown.

[0084] Create a collection task module to collect NMON monitoring files;

[0085] In this embodiment, a collection task module is created based on the overall technical framework to create and run the server performance monitoring collection task. The Java Jsch development kit is used to realize the SSH connection between the monitoring system and the server under test, and the "mkdir-p / home / nmon / {client,log}&&cd / home / nmon / client" command is executed to create the / home / nmon / client folder for storing the NMON client and the / home / nmon / log folder for storing the NMON monitoring records. The "arch" command is executed to obtain the central processing unit architecture of the server under test. According to the obtained architecture, whether it is X86 or ARM, NMON is uploaded to the / home / nmon / client folder. According to the interval time and execution times of the monitoring task input by the user, the " / home / nmon / nmon_client-F${file name}-Nm / home / nmon / log-s${interval time}sc${execution times}" command is executed to start the NMON monitoring task. The ${file name} in the command is composed of a randomly generated 32-bit UUID and the file suffix ".nmon".

[0086] The process of creating a collection task is as follows: Figure 4 shown.

[0087] The CPU performance reporting module is used to monitor various performance indicators of the CPU, calculate and analyze the average CPU usage rate, and compare it with the preset threshold to determine the CPU operating status;

[0088] In this embodiment, the Java Jsch development kit is relied upon to realize the SSH connection between the monitoring system and the server under test, the " / home / nmon / log / " command is executed to enter the / home / nmon / log / folder, the corresponding NMON monitoring record file is downloaded to the local disk, and the content in the NMON monitoring record file is read line by line using the character reading tool BufferedReader with a buffer and the file stream reading tool FileReader.

[0089] NMON monitoring record files record a complete performance indicator in units of behavior. Usually, a comma is used to separate the content of an indicator. It starts with "ZZZZ" to distinguish a complete record. For example, if the monitoring is set to 20 times, there will be 20 data starting with "ZZZZ", such as "ZZZZ,T0001,15:33:29,30-FEB-2024". "T0001" represents the first monitoring transaction, and the following part is the date and time.

[0090] The performance monitoring of the central processing unit (CPU) in the NMON monitoring record file begins with the prefix "CPU", such as "CPU_ALL,T0001,60.8,11.5,0.0,27.7,0.0,,8", "CPU_ALL" means that this record is the performance statistical average of all CPUs, "T0001" represents the first monitoring transaction, and the first number "60.8" represents the time percentage (%User) of all CPUs in user mode during this monitoring, and the second number "11.5" represents the time percentage (%User) of all CPUs in this monitoring. The percentage of time in kernel mode (%Sys), the third number "0.0" represents the percentage of time that all CPUs are idle and waiting for I / O to complete (%Wait), the fourth number "27.7" represents the percentage of time that all CPUs are idle (%Idle), and the overall utilization of all CPUs is "the sum of the time of all CPUs in user mode and system mode (%CPU)", that is, "%CPU = %User + %Sys", so the utilization of all CPUs in this monitoring is "60.8% + 11.5% = 72.3%". After analyzing the CPU utilization in all collected transactions according to the above method, it is necessary to calculate the average CPU utilization. The formula is as follows, "CPU average = the sum of CPU utilization for each collection / number of collections", that is Compare it with the set indicator "70%". When the calculated CPU usage is less than or equal to 70%, it means that the CPU performance is at a normal level. When it is greater than 70%, it means that the CPU performance is abnormal and it is necessary to optimize the software facilities on the server or improve the CPU configuration. Store all CPU-related data and the calculated CPU usage in the database. When displaying, query the data monitored this time in the database and use VUE+echarts (echarts is an open source JavaScript icon library) to draw a curve chart, where the x-axis is the monitoring time and the y-axis is the usage rate.

[0091] The memory performance reporting module is used to monitor various indicators of the memory part, calculate and analyze the average memory usage, and compare it with the preset threshold to determine the operating status of the memory;

[0092] In this embodiment, the performance monitoring of the memory part in the NMON monitoring record file begins with the prefix "MEM", such as "MEM, T0001, 14989.6, -0.0, -0.0, 4107.9, 4058.4, -0.0, -0.0, 3917.4, 50.5, 1432.5, 8547.9, -1.0, 0.5, 22.9, 2020.8", "MEM" represents the memory record value, "T0001" represents the first monitoring transaction, and the first digit "14" represents the first monitoring transaction. "989.6" represents the total memory of this monitoring (Memtotal), in MB, the fifth number "4058.4" represents the free memory of this monitoring (Memfree), the tenth number "1432.5" represents the memory size occupied by the cache memory of this monitoring (cached), and the thirteenth number "0.5" represents the buffer size of this collection system (buffers). The memory usage rate is "(total memory - free memory - cache size - buffer size) / total memory * 100", that is Therefore, the memory usage rate of this collection is "(14989.6-4058.4-1432.5-0.5) / 14989.6*100=63.4". After calculating the memory usage rate according to the above method, calculate the average memory usage rate in this monitoring task. The formula is as follows: "Average memory usage rate = the sum of memory usage rates of each collection / number of collections", that is Compare it with the set indicator "80%". When the calculated memory usage is less than or equal to 80%, it means that the memory usage is at a normal level. When it is greater than 80%, it means that the memory usage is abnormal and it is necessary to optimize the software facilities on the server or improve the memory configuration. Store all memory monitoring related data and calculated memory usage in the database. When displaying, query the data of this monitoring in the database and use VUE+echarts (echarts is an open source JavaScript icon library) to draw a curve chart, where the x-axis is the monitoring time and the y-axis is the usage rate.

[0093] The disk performance reporting module is used to monitor various indicators of the disk, calculate and analyze the average read rate of the disk, and further add weights to use the weighted average read rate of the disk as the basis for judging the disk performance.

[0094] In this embodiment, there are many performance monitoring indicators about the disk part in the NMON monitoring record file. We only need to pay attention to the prefixes starting with "DISKREAD", "DISKWRITE", and "DISKXFER", which respectively represent the read rate of all disks of the server during the monitoring time (in KB / s), the write rate of all disks of the server during the monitoring time (in KB / s), and the sum of the IO rates of all disks and partitions of the server during the monitoring time (in IO / s). For example, in "DISKREAD, T0015, 166.4, 0.0, 0.0, 166.4, 0.0, 0.0, 0.0, 0.0, 166.4", "DISKREAD" represents that this is the disk read rate record value, "T0015" represents the 15th acquisition transaction, and the subsequent series of numbers separated by "," each represents the read rate value of the disk or partition on the server, and the sum of them is recorded as "r". "DISKWRITE", recorded as "w" and "DISKXFER", recorded as "x", are also processed in the same way. The formula for calculating the average disk read rate is as follows: "Average disk read rate = sum of all disk read rates in the monitoring record / number of monitoring times", that is, Similarly, the formula for calculating the average disk write rate is: The formula for calculating the average disk IO rate is: However, since most of the disk indicators are 0 when the server is not active, taking the average value cannot truly reflect the efficiency of the disk. Therefore, a weighted average value is used to measure the disk efficiency. The formula for calculating the weighted average read rate of the disk is as follows: That is, "the sum of the squares of the disk read rates / the sum of the disk read rates". Similarly, the formula for calculating the weighted average disk write rate is as follows The formula for calculating the weighted average IO rate of the disk is as follows In this way, using the disk weighted average IO rate can better measure the server disk efficiency. When the server is under load (that is, when there are a lot of software or applications running), the CPU usage index is in a normal state. The larger the disk weighted average IO rate, the higher the disk efficiency, and the more IO times can be processed per unit time. All disk-related data and calculated disk read and write efficiency are stored in the database, and VUE+echarts (echarts is an open source JavaScript icon library) is used to draw a curve chart, where the x-axis is the monitoring time and the y-axis is the IO rate.

[0095] As a preferred implementation of this embodiment, the overall technical framework of the server performance management is constructed using Java, Spring framework, MyBatis framework and Vue-Element-Admin front-end framework.

[0096] As a preferred implementation of this embodiment, the storage method of the server IP address and the server login password in the server information storage module is specifically as follows:

[0097] To verify the legitimacy of the input of the server IP address, use the form rules property of Vue-Element-Admin, configure the regular expression for verifying the IP, and bind the IP address input box. The regular expression is as follows:

[0098] (([1-9]?\d|1\d{2}|2[0-4]\d|25[0-5]).){3}([1-9]?\d|1\d{2}|2[0-4]\d|25[0-5])

[0099] For the server login password, customize BaseEncryptHandler to inherit BaseTypeHandler to implement ciphertext storage.

[0100] As a preferred implementation of this embodiment, the method for modifying or deleting an existing server IP address, server SSH port, server login username and server login password is specifically as follows:

[0101] Based on the MyBatis framework, use the Mapper interface defined by it to write UPDATE and DELETE SQL statements to modify the server information.

[0102] As a preferred implementation of this embodiment, the method for collecting NMON monitoring files is specifically as follows:

[0103] Rely on the Java Jsch development kit to realize the SSH connection between the monitoring system and the server under test, execute the target instruction to create a folder for storing the NMON client and the NMON monitoring records, execute the target instruction to obtain the central processing unit architecture of the server under test, upload NMON to the folder according to the type of architecture obtained, execute the target instruction to start the NMON monitoring task of the monitoring system according to the interval time and execution times of the monitoring task input by the user, and generate the NMON monitoring file.

[0104] As a preferred implementation of this embodiment, the NMON monitoring file records a complete performance indicator in behavioral units, separates the content of an indicator with commas, and starts with "ZZZZ" as a prefix to distinguish a complete record.

[0105] As a preferred implementation of this embodiment, the method of monitoring various performance indicators of the central processing unit and calculating and analyzing the average usage rate is specifically as follows:

[0106] The various performance indicators of the central processor include the time proportion of each central processor in user mode %User, the time proportion of each central processor in kernel mode %Sys, the time proportion of all CPUs in idle and waiting for I / O completion %Wait, and the time proportion of all CPUs in idle %Idle;

[0107] The overall utilization rate of all CPUs is the sum of the time of all CPUs in user mode and system mode (%CPU). The specific calculation formula is as follows:

[0108] %CPU=%User+%Sys

[0109] The average CPU usage is further calculated as the sum of the overall CPU usage collected over multiple times and the quotient of the number of collections. The specific calculation formula is as follows:

[0110]

[0111] In the formula, n represents the number of acquisitions.

[0112] As a preferred implementation of this embodiment, the method of monitoring various indicators of the memory part and calculating and analyzing the average usage rate of the memory is specifically as follows:

[0113] The various performance indicators of the memory part include monitoring the total memory Memtotal, monitoring the free memory Memfree, monitoring the memory size cached occupied by the cache memory, and the system buffer size buffers;

[0114] Calculate the overall usage of all memory %u, the specific calculation formula is as follows:

[0115]

[0116] The average memory usage is further calculated as the sum of the overall memory usage of multiple collections and the quotient of the number of collections. The specific calculation formula is as follows:

[0117]

[0118] In the formula, n is the number of acquisitions.

[0119] As a preferred implementation of this embodiment, the method of monitoring various indicators of the disk part, calculating and analyzing the average read rate of the disk, and further adding weights to calculate the weighted average read rate of the disk is specifically as follows:

[0120] The various indicators of the disk part include the read rate r of all disks of the server during the monitoring time, the write rate w of all disks of the server during the monitoring time, and the sum of the IO rates x of all disks and partitions of the server during the monitoring time;

[0121] Calculate the average disk read rate Average write rate and average IO rate The calculation formula is as follows:

[0122]

[0123]

[0124]

[0125] In the formula, n is the number of acquisitions, r is n 、w n and x n Represents the read rate, write rate and average IO rate of each disk respectively;

[0126] And further add weights to each parameter to calculate the weighted average disk read rate Weighted average write rate and weighted average IO rate The specific calculation formula is as follows:

[0127]

[0128]

[0129]

[0130] In the formula, n is the number of acquisitions.

[0131] Based on the above steps, the server overall situation report process is as follows Figure 5 shown.

[0132] Embodiment 2:

[0133] A method for monitoring the performance of a domestic server, the specific steps comprising:

[0134] Constructing the overall technical framework of server performance management, including server information management module, server performance monitoring task management module and server performance report management module; the server information management module includes server information storage module and server information change module; the server performance monitoring task management module is specifically a collection task creation module; the server performance report management module includes a CPU performance report module, a memory performance report module and a disk performance report module;

[0135] Using the server information storage module to store the server IP address, server SSH port, server login user name and server login password;

[0136] Use the server information change module to modify or delete the existing server IP address, server SSH port, server login username and server login password;

[0137] Use the Create Collection Task module to collect NMON monitoring files;

[0138] The CPU performance reporting module is used to monitor various performance indicators of the CPU, and the average CPU usage is calculated and analyzed, and compared with the preset threshold to determine the operating status of the CPU;

[0139] Use the memory performance report module to monitor various indicators of the memory part, calculate and analyze the average memory usage, and compare it with the preset threshold to determine the operating status of the memory;

[0140] The disk performance report module is used to monitor various indicators of the disk part, and to calculate and analyze the average read rate of the disk. Weights are further added, and the weighted average read rate of the disk is used as the basis for judging the disk performance.

[0141] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A system for monitoring the performance of domestic servers, characterized in that: include; Constructing the overall technical framework of server performance management, including server information management module, server performance monitoring task management module, server performance report management module and database; the server information management module includes server information storage module and server information change module; the server performance monitoring task management module is specifically a collection task creation module; the server performance report management module includes a CPU performance report module, a memory performance report module and a disk performance report module; The server information storage module is used to store the server IP address, server SSH port, server login username and server login password; Server information change module, used to modify or delete the existing server IP address, server SSH port, server login username and server login password; Create a collection task module to collect NMON monitoring files; The CPU performance reporting module is used to monitor various performance indicators of the CPU, calculate and analyze the average CPU usage rate, and compare it with the preset threshold to determine the CPU operating status; The memory performance reporting module is used to monitor various indicators of the memory part, calculate and analyze the average memory usage, and compare it with the preset threshold to determine the operating status of the memory; The disk performance report module is used to monitor various indicators of the disk part, calculate and analyze the average read rate of the disk, and further add weights to use the weighted average read rate of the disk as the basis for judging the disk performance; Database, used to store monitoring data of each module in the system.

2. A system for monitoring the performance of domestic servers according to claim 1, characterized in that: The overall technical framework of the server performance management is constructed using Java, Spring framework, MyBatis framework and Vue-Element-Admin front-end framework.

3. A system for monitoring the performance of domestic servers according to claim 1, characterized in that: The storage method of the server IP address and the server login password in the server information storage module is specifically as follows: To verify the legitimacy of the input of the server IP address, use the form rules property of Vue-Element-Admin, configure the regular expression for verifying the IP, and bind the IP address input box. The regular expression is as follows: (([1-9]?\d|1\d{2}|2[0-4]\d|25[0-5]).){3}([1-9]?\d|1\d{2}|2[0-4]\d|25[0-5]) For the server login password, customize BaseEncryptHandler to inherit BaseTypeHandler to implement ciphertext storage.

4. A system for monitoring the performance of domestic servers according to claim 1, characterized in that: The method for modifying or deleting an existing server IP address, server SSH port, server login username, and server login password is specifically as follows: Based on the MyBatis framework, use the Mapper interface defined by it to write UPDATE and DELETE SQL statements to modify the server information.

5. A system for monitoring the performance of domestic servers according to claim 1, characterized in that: The method for collecting NMON monitoring files is specifically as follows: Rely on the Java Jsch development kit to realize the SSH connection between the monitoring system and the server under test, execute the target instruction to create a folder for storing the NMON client and the NMON monitoring records, execute the target instruction to obtain the central processing unit architecture of the server under test, upload NMON to the folder according to the type of architecture obtained, execute the target instruction to start the NMON monitoring task of the monitoring system according to the interval time and execution times of the monitoring task input by the user, and generate the NMON monitoring file.

6. A system for monitoring the performance of domestic servers according to claim 4, characterized in that: The NMON monitoring file records a complete performance indicator in behavioral units, separates the content of an indicator with commas, and starts with "ZZZZ" as a prefix to distinguish a complete record.

7. A system for monitoring the performance of domestic servers according to claim 1, characterized in that: The method of monitoring various performance indicators of the central processing unit and calculating and analyzing the average usage rate is specifically as follows: The various performance indicators of the central processor include the time proportion of each central processor in user mode %User, the time proportion of each central processor in kernel mode %Sys, the time proportion of all CPUs in idle and waiting for I / O completion %Wait, and the time proportion of all CPUs in idle %Idle; The overall utilization rate of all CPUs is the sum of the time of all CPUs in user mode and system mode (%CPU). The specific calculation formula is as follows: %CPU=%User+%Sys The average CPU usage is further calculated as the sum of the overall CPU usage collected over multiple times and the quotient of the number of collections. The specific calculation formula is as follows: In the formula, n represents the number of acquisitions.

8. A system for monitoring the performance of domestic servers according to claim 1, characterized in that: The method of monitoring various indicators of the memory part and calculating and analyzing the average usage rate of the memory is specifically as follows: The various performance indicators of the memory part include monitoring the total memory Memtotal, monitoring the free memory Memfree, monitoring the memory size cached occupied by the cache memory, and the system buffer size buffers; Calculate the overall usage of all memory %u, the specific calculation formula is as follows: The average memory usage is further calculated as the sum of the overall memory usage of multiple collections and the quotient of the number of collections. The specific calculation formula is as follows: In the formula, n is the number of acquisitions.

9. A system for monitoring the performance of domestic servers according to claim 1, characterized in that: The method of monitoring various indicators of the disk part, calculating and analyzing the average read rate of the disk, and further adding weights to calculate the weighted average read rate of the disk is specifically as follows: The various indicators of the disk part include the read rate r of all disks of the server during the monitoring time, the write rate w of all disks of the server during the monitoring time, and the sum of the IO rates x of all disks and partitions of the server during the monitoring time; Calculate the average disk read rate Average write rate and average IO rate The calculation formula is as follows: In the formula, n is the number of acquisitions, r is n 、w n and x n Represents the read rate, write rate and average IO rate of each disk respectively; And further add weights to each parameter to calculate the weighted average disk read rate Weighted average write rate and weighted average IO rate The specific calculation formula is as follows: In the formula, n is the number of acquisitions.

10. A method for monitoring the performance of a domestic server, characterized in that: The specific steps include: Constructing the overall technical framework of server performance management, including server information management module, server performance monitoring task management module, server performance report management module and database; the server information management module includes server information storage module and server information change module; the server performance monitoring task management module is specifically a collection task creation module; the server performance report management module includes a CPU performance report module, a memory performance report module and a disk performance report module; Using the server information storage module to store the server IP address, server SSH port, server login user name and server login password; Use the server information change module to modify or delete the existing server IP address, server SSH port, server login username and server login password; Use the Create Collection Task module to collect NMON monitoring files; The CPU performance reporting module is used to monitor various performance indicators of the CPU, and the average CPU usage is calculated and analyzed, and compared with the preset threshold to determine the operating status of the CPU; Use the memory performance report module to monitor various indicators of the memory part, calculate and analyze the average memory usage, and compare it with the preset threshold to determine the operating status of the memory; Use the disk performance report module to monitor various indicators of the disk part, calculate and analyze the average read rate of the disk, and further add weights to use the weighted average read rate of the disk as the basis for judging the disk performance; The database is used to store the monitoring data of each module in the system.

Citation Information

Patent Citations

  • Method for measuring the performance of a target server housing a dynamic tracking tool

    EP2176759B1