CN109783319A - A kind of method of server and process performance index grab sampling and generation report - Google Patents

A kind of method of server and process performance index grab sampling and generation report Download PDF

Info

Publication number
CN109783319A
CN109783319A CN201910044792.5A CN201910044792A CN109783319A CN 109783319 A CN109783319 A CN 109783319A CN 201910044792 A CN201910044792 A CN 201910044792A CN 109783319 A CN109783319 A CN 109783319A
Authority
CN
China
Prior art keywords
data
server
sampled
sampling
threshold value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910044792.5A
Other languages
Chinese (zh)
Inventor
郭申
蔡其锋
张健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Xishan Mobile Game Technology Co Ltd
Zhuhai Kingsoft Online Game Technology Co Ltd
Original Assignee
Zhuhai Xishan Mobile Game Technology Co Ltd
Zhuhai Kingsoft Online Game Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Xishan Mobile Game Technology Co Ltd, Zhuhai Kingsoft Online Game Technology Co Ltd filed Critical Zhuhai Xishan Mobile Game Technology Co Ltd
Priority to CN201910044792.5A priority Critical patent/CN109783319A/en
Publication of CN109783319A publication Critical patent/CN109783319A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention proposes a kind of server and process performance index grab samplings and the method for generating report, comprising the following steps: S100) define type, the type of server processes, sampling time and sample frequency that the server hardware that need to be sampled loads;S200) within the instruction definition sampling time, with the sample frequency of instruction definition, the data that data or process to the server load performance of instruction definition occupy server hardware resource sample, and the corresponding relationship of sampled data and sampling time point is stored in first storage device;S300 the data volume and preset upper threshold value and lower threshold value for) comparing time dimension, when the data volume of time dimension is greater than upper threshold value, according to volume time dimension;When the data volume of time dimension is less than lower threshold value, lower brill time dimension;S400) with specified format, show that the data of sampled server load performance or process occupy the data of server hardware resource and the corresponding relationship of each sampling time point.

Description

A kind of method of server and process performance index grab sampling and generation report
Technical field
The present invention relates to field of computer technology, in particular to a kind of server and process performance index grab sampling and life At the method for report.
Background technique
Back-end services machine, performance indicator have very much, it is crucial that the indexs such as CPU, memory, network I/O.Follow-up rear end Performance issue will inevitably obtain the variation tendency of these parameters.Many monitoring are long-term existence and the change for monitoring this data Change, but the tool of grab sampling is seldom.Under many scenes, it would be desirable to performance data variation in 10 minutes, Jin Jinxu 10 minutes data of current machine are wanted, we can star service during this, and monitor the phase of machine He the service processes Close performance data.
Another scene is to remotely operate or assist journey to operate, which does not dispose associated monitoring service, how convenient The performance data of the effective acquisition machine, it is necessary to the direct output of simple tool, and do not have to that huge monitoring service is installed.
Here we need the related data it can be seen that the machine overall data and specified process of a period of time sampling, together When need to be intuitive to see the variation of data, that is, to have report, can find out variation tendency at a glance.And conveniently to third party With reference to avoiding the invisible of Back end data.
Summary of the invention
The present invention shows grab sampling machine and specified process for of the existing technology with being unable to simple, intuitive CPU, memory, network condition change with time trend the problem of, propose a kind of server and adopted with process performance index fixed point Sample and the method for generating report.
Firstly, the method that the application proposes a kind of server and process performance index grab sampling and generation report, including Following steps:
S100 type, the type of server processes, sampling time and the sampling of the server hardware load that need to be sampled) are defined Frequency;
S200 the server load) within the instruction definition sampling time, with the sample frequency of instruction definition, to instruction definition The data that the data or process of performance occupy server hardware resource are sampled, and sampled data is corresponding with sampling time point Relationship is stored in first storage device;
S300 the data volume and preset upper threshold value and lower threshold value for) comparing time dimension, when the data volume of time dimension is big When upper threshold value, according to volume time dimension;When the data volume of time dimension is less than lower threshold value, lower brill time dimension;
S400) with specified format, it is hard to show that the data of sampled server load performance or process occupy server The corresponding relationship of the data of part resource and each sampling time point.
Further, the above method proposed according to the present invention, step S200 further include following sub-step:
S201 the size of sampled data) is obtained;
S202 the sampled data size that) will acquire is compared with the first size of data, if sampled data size is greater than the Sampled data is then saved in the second storage device by one size of data, and deletes the corresponding data in first storage device, no Then, step S300 and S400 are continued to execute.
Specifically, the above method proposed according to the present invention, the first size of data is by system default or by being manually arranged.
Further, the above method proposed according to the present invention, step S400 further include following postposition step:
Delete the sampled data in first storage device or the second storage device.
Specifically, the above method proposed according to the present invention, the first storage device are Installed System Memory, and described second deposits Saving is set to system disk.
Further, the type of the above method proposed according to the present invention, server processes is identified with process ID.
Further, the above method proposed according to the present invention, in described instruction, the type of server load performance data is Essential option, the type of server processes are options.
Further, the above method proposed according to the present invention, specified format are html format.
Secondly, the present invention proposes the device of a kind of server and process performance index grab sampling and generation report, including With lower module:
Definition module, when for defining the type, the type of server processes, sampling of the server hardware that need to be sampled load Between and sample frequency;
Sampling module is used within the instruction definition sampling time, with the sample frequency of instruction definition, to the clothes of instruction definition Be engaged in device load performance data or process occupy server hardware resource data sampled, and by sampled data and sampling when The corresponding relationship of point is stored in first storage device;
Comparison module, for comparing the data volume and preset upper threshold value and lower threshold value of time dimension, when time dimension When data volume is greater than upper threshold value, according to volume time dimension;When the data volume of time dimension is less than lower threshold value, lower brill time dimension Degree;
Display module, for showing that the data of sampled server load performance or process are occupied with specified format The corresponding relationship of the data of server hardware resource and each sampling time point.
Finally, the present invention proposes a kind of computer readable storage medium, it is stored thereon with computer instruction, described instruction is used In the above-mentioned method of execution.
Detailed description of the invention
Fig. 1 show the data result of system performance acquired under existing Linux server performance monitoring order;
Fig. 2 show the data knot that process acquired in existing Windows task manager occupies system hardware resources Fruit;
Fig. 3 show a kind of server that the application is proposed and process performance index grab sampling and generates the side of report The flow diagram of method first embodiment;
Fig. 4 show a kind of server that the application is proposed and process performance index grab sampling and generates the side of report The flow diagram of method second embodiment;
Fig. 5 show a kind of server that the application is proposed and process performance index grab sampling and generates the side of report The authorizing procedure figure of method;
Fig. 6 show a kind of server that the application is proposed and process performance index grab sampling and generates the side of report The authorization data flow graph of method;
Fig. 7 show a kind of server that the application is proposed and process performance index grab sampling and generates the side of report The CPU sampled data chart of method;
Fig. 8 show a kind of server that the application is proposed and process performance index grab sampling and generates the side of report The CPU sampled data chart of method;
Fig. 9 show a kind of server that the application is proposed and process performance index grab sampling and generates the side of report The memory sampled data chart of method;
Figure 10 show a kind of server that the application is proposed and process performance index grab sampling and generates report The memory sampled data chart of method;
Figure 11 show a kind of server that the application is proposed and process performance index grab sampling and generates report The server sending and receiving data sampled data chart of method;
Figure 12 show a kind of server that the application is proposed and process performance index grab sampling and generates report The process sampled data chart of method;
Figure 13 show a kind of server that the application is proposed and process performance index grab sampling and generating means Frame diagram;
Figure 14 A show a kind of server that the application is proposed and process performance index grab sampling and generates report Point diagram before the upper volume of method 3rd embodiment;
Figure 14 B show a kind of server that the application is proposed and process performance index grab sampling and generates report Point diagram after the upper volume of method 3rd embodiment.
Specific embodiment
It is carried out below with reference to technical effect of the embodiment and attached drawing to design of the invention, specific structure and generation clear Chu, complete description, to be completely understood by the purpose of the present invention, scheme and effect.It should be noted that the case where not conflicting Under, the features in the embodiments and the embodiments of the present application can be combined with each other.The identical attached drawing mark used everywhere in attached drawing Note indicates the same or similar part.
It should be noted that unless otherwise specified, when a certain feature referred to as " fixation ", " connection " are in another feature, It can directly fix, be connected to another feature, and can also fix, be connected to another feature indirectly.In addition, this The descriptions such as upper and lower, left and right used in application are only the mutual alignment pass relative to each component part of the application in attached drawing For system.In the application and the "an" of singular used in the attached claims, " described " and "the" also purport It is including most forms, unless the context clearly indicates other meaning.
In addition, unless otherwise defined, the technology of all technical and scientific terms used herein and the art The normally understood meaning of personnel is identical.Term used in the description is intended merely to description specific embodiment herein, without It is to limit the application.Term as used herein "and/or" includes the arbitrary of one or more relevant listed items Combination.
It will be appreciated that though various elements may be described in this application using term first, second, third, etc., but These elements should not necessarily be limited by these terms.These terms are only used to for same type of element being distinguished from each other out.For example, not taking off In the case where the application range, first element can also be referred to as second element, and similarly, second element can also be referred to as First element.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When ".
The data knot of acquired system performance under existing Linux server performance monitoring order shown in referring to Fig.1 Fruit;The figure be run linux system under top order after obtain as a result, in figure can be seen that top order can supervise in real time The operating status of control system, and can be ranked up according to CPU, memory and execution time, while top order can also pass through Interactive command carries out setting and shows, immediately active process can be checked by top order.Table 1 illustrates some of ginsengs Several meanings.However, can not show that the performances such as CPU, memory change with time trend situation after top order operation.
The meaning of table 1.top command parameter
Parameter Meaning
05:57:44 System time
up 2min System operation time
user System currently logged on user's number
load average:0.47,0.37,0.15 The system load in 15 minutes in five minutes of past one minute
Tasks Process/task
total Total process number
running It is currently running process number
sleeping Dormant state process number
The number of the occupancy system hardware resources of the process referring to acquired in existing Windows task manager shown in Fig. 2 According to as a result, showing the process of the at a time acquired system of the included task manager of 10 system of Windows in figure The case where the case where occupying system hardware resources, wherein PID is process ID, shows only a certain moment in figure, still cannot The case where displaying changes over time.
Therefore, in the case where not installation and deployment monitoring service, Various types of data very can be obtained as desired by a key and is become The method of gesture.
A kind of server and process performance index grab sampling and generation proposed referring to the application shown in Fig. 3 is reported Method first embodiment flow diagram, comprising the following steps:
S100 type, the type of server processes, sampling time and the sampling of the server hardware load that need to be sampled) are defined Frequency;
S200 the server load) within the instruction definition sampling time, with the sample frequency of instruction definition, to instruction definition The data that the data or process of performance occupy server hardware resource are sampled, and sampled data is corresponding with sampling time point Relationship is stored in first storage device;
S300 the data volume and preset upper threshold value and lower threshold value for) comparing time dimension, when the data volume of time dimension is big When upper threshold value, according to volume time dimension;When the data volume of time dimension is less than lower threshold value, lower brill time dimension;
S400) with specified format, it is hard to show that the data of sampled server load performance or process occupy server The corresponding relationship of the data of part resource and each sampling time point.
Specifically, upper threshold value and lower threshold value are arranged by system default or are manually set.
Specifically, 4A show a kind of server and process performance index grab sampling that the application is proposed referring to Fig.1 With the point diagram before the upper volume for the method 3rd embodiment for generating report;Before upper volume, the data volume of time shaft is too big, cannot be clear Clear displaying time tag, a kind of server proposed as shown in Figure 14B by the application using the effect after this method and process Point diagram after performance indicator grab sampling and the upper volume of the method 3rd embodiment of generation report, uses this method to carry out time shaft Data on roll up after, can clearly show that the data of time shaft, the method for lower brill are similar.
Preferably, the report of generation can be sent to specified email address.
Specifically, the method proposed using the application does not need to install any software, only simultaneously by an instruction Define the type for the server load performance data that need to be sampled, the type of server processes, sampling time and sample frequency, operation After can be obtained server hardware load with process performance index grab sampling.
Specifically, the hardware of server may include CPU, memory, hard disk, network interface card etc..
Specifically, the instruction format is ./monitor_sample_report-t 100-i 1-p 29561.
Specifically, relevant to be described as follows in above-mentioned instruction format:
Executable tool after the packing of monitor_sample_report:python script;
- t: the time of sampling, in seconds ,-t followed by be setting sampling time, be 100 seconds here, i.e., Persistently sample 100 seconds;
- i: the frequency of sampling ,-i followed by be setting sample frequency, be 1 here, i.e., it is primary every sampling in 1 second;
- p: the machine process of monitoring, nonessential parameter, the correlated performance data that monitoring process id is 29561 simultaneously here.
Specifically, sampled data is operated by the psutil packet of python, which provides all kinds of performances of machine loading The acquisition methods of data, while the method for process associated monitoring being provided.
Further, psutil is a cross-platform library, can easily realize that the process of acquisition system operation and system utilize Rate (including CPU, memory, disk, network etc.) information.It is mainly used in system monitoring, analysis and limitation system resource and into The management of journey.It realizes the function that same command-line tool provides, as ps, top, lsof, netstat, ifconfig, who, Df, kill, free, nice, ionice, iostat, iotop, uptime, pidof, tty, taskset, pmap etc..Branch at present Hold the operating systems such as 32 and 64 Linux, Windows, OS X, FreeBSD and Sun Solaris.
Specifically, timing sampling is controlled by the schedule packet of python, and Sampling Interface is called in timing.
Further, schedule can be completed per minute, per hour, daily, all several weekly, and the timing of specific date is appointed Business.
Further, a kind of server and process performance index grab sampling proposed referring to the application shown in Fig. 4 with Generate the flow diagram of the method second embodiment of report;Step S200 further includes following sub-step:
S201 the size of sampled data) is obtained;
S202 the sampled data size that) will acquire is compared with the first size of data, if sampled data size is greater than the Sampled data is then saved in the second storage device by one size of data, and deletes the corresponding data in first storage device, no Then, step S300 and step S400 is continued to execute.
Specifically, the first size of data is by system default or by being manually arranged.
Further, step S400 further includes following postposition step:
Delete the sampled data in first storage device or the second storage device.
Specifically, the above method proposed according to the present invention, the first storage device are Installed System Memory, and described second deposits Saving is set to system disk.
Specifically, after instructing operation, sampled data caches timed writing the machine, if data are excessively huge, lands this Machine data temporary file, after generating report, temporary file can be cleared up in time, in order to avoid occupy excessive disk space.
Further, the type of server processes is identified with process ID, i.e., common pid in operating system.
Further, in described instruction, the type of server load performance data is essential option, and the type of server processes is Option.
Preferably, it for the security consideration of server, before method described herein, needs to carry out operator Identity identifies, so that the operator having permission could obtain operating right.
When needing to increase authentication link, server needs to include identification module and authentication module, the identity Identification module is including at least one in following device: password getter, Fingerprint Identification Unit, sound characteristic identifier, between pupil Away from detector, facial feature detection device, identification ticket identifier, handset identity number indicator, NFC signal identifier, WIFI signal identifier, RFID signal identifier.
The authentication module is used for the identity identification information obtained from identification module and is stored in advance in described Identity authority information in memory module compares.
Further, a kind of the application referring to Figure 5 is proposed server and process performance index grab sampling with The authorizing procedure figure of the method for report is generated, shows four steps of authorizing procedure in figure, comprising:
S301) the personnel identity information preservation of operation will be had permission in memory in advance;
S302 the request of server hardware or process access) is received;
S303 the identity identification information in request) is extracted;
S400) in the identity identification information and memory in comparison request authorized person's identity information for storing whether one It causes, if unanimously, allowing to operate, if inconsistent, prompts mistake.
Specifically, a complete authentication control process is as follows:
When there is operator to use order, by including fingerprint, sound characteristic, interocular distance, facial characteristics, identity Identification card number, handset identity number, NFC signal, WIFI signal, operator's identification letter including RFID signal etc. It ceases, by wireless communication device, to the hair of the identity information identifier including being previously stored Authorized operation personnel identity information When sending operation requests, after identity information identifier receives the request from operator, the identity identification information in request is extracted, And whether the authorized person's information for comparing the identity identification information in requesting and storing in memory in advance is consistent, if unanimously, It is then verified, allows to operate, if inconsistent, terminate process.
A kind of server and process performance index grab sampling and generation proposed referring to the application shown in fig. 6 is reported Method authorization data flow graph, wherein in an authorizing procedure, the step of data flow, is as follows:
The first step, applicant by include fingerprint, sound characteristic, interocular distance, facial characteristics, identification card number, Handset identity number, NFC signal, WIFI signal, claimant's identity identification information including RFID signal etc., by including 2G, Communication device including 3G, 4G, 5G, WIFI, NFC, to the information identification including being previously stored Authorized operation people's identity information The transmission of device is requested;
Second step after control module receives the request, claimant's identity identification information is extracted and is sent to mirror Module is weighed, authentication module receives the whole authorizations sent from memory module after sending identity identification information request to memory module After operator's identity identification information, authentication module is by the identity identification information of the identity information of claimant and whole Authorized operation people It comparing one by one, identical record, comparison pass through if it exists, and authentication module is verified instruction to control module transmission, if There is no identical records, then compare and do not pass through, and authentication module is spaced apart transmission verifying not by instruction to control, terminate process.
Further, the above method proposed according to the present invention, specified format are html format.
Specifically, after order executes, report file: monitor.html report text can be generated executing order catalogue Part shows the several critical datas of machine loading using a report.
Specifically, a kind of server and process performance index grab sampling proposed referring to the application shown in Fig. 7 with A kind of server and process that the CPU sampled data chart and the application shown in Fig. 8 for generating the method for report are proposed Energy index grab sampling and the CPU sampled data chart for generating the method reported.
Fig. 7 and Fig. 8 shows a kind of server that the application is proposed and process performance index grab sampling and generates and reports The CPU sampled data chart of the method for announcement, Fig. 7 are the utilization rate time-tendency graph of server CPU totality, are shown in figure 6 A lower 6 curves used about CPU of moment point, concrete meaning are as follows:
User: indicate that CPU has spent altogether the time of how many ratio to operate in user's state space consumer process in other words (running user space processes).Typical User space space program has: Shells, database, web server Etc.;
System: the meaning of system is similar to user, indicates that CPU has spent the time of how many ratio to run in kernel spacing.Point It is all kernel operation with memory, I/O operation, creation subprocess etc..This is also indicated that, when I/O operation is frequent, System parameter meeting It is very high.
Nice: it is understood that the dispatching priority of the CPU of user space processes, range is [- 20,19].In LINUX system In system, the range from -20 to+19 (the value range of homologous ray is not different) of nice value, positive value indicates low priority, negative value Indicate high priority, value is zero priority for indicating that the process will not be adjusted.Program with highest priority, nice value It is minimum, so value -20 makes a task become extremely important in linux system;In contrast, if the nice of task It is+19, then it represents that be a not too important task, allow every other task than oneself enjoying the valuable CPU time more Big portion.Process is endowed different priority values in creation, and as said before, the value of nice is to indicate that process is excellent First grade value can be corrected data value, therefore, as soon as each process is endowed a nice value, such system when its plan executes It can be according to the resource of system and all kinds of resource consumption situations of specific process, the priority value of pro-active intervention process.Logical In normal situation, subprocess can inherit the nice value of parent process, for example during system starting, init process can be endowed 0, Other all processes inherit this nice value.
Wait: in a computer, the operation for reading and writing disk is slow more than the speed that CPU is run, and cpu load handles data, And data are generally needed to read in memory on disk and could be handled.After CPU initiates read-write operation, need to wait disk drive Data are read in memory by device, are had nothing to do within this period of time of waiting so as to cause CPU.CPU is in this wait state Time measured by waiting parameter.
It is idle: to indicate that CPU is in idle condition time scale.In general, free time+user+nice is approximately equal to 100%.
Fig. 8 show the variation of each CPU single core, it can be seen that the variation tendency of each core, it can be with from figure Finding out the machine, there are four the service conditions of core cpu and each core cpu in total.
Fig. 9 show a kind of server that the application is proposed and process performance index grab sampling and generates the side of report The memory sampled data chart of method;In figure it can be seen that system it is total in save as 1024MB, at the moment 4, used memory 768MB, free memory 126MB, wherein caching accounts for 703MB, non-caching to account for 65MB in used memory.
Figure 10 show a kind of server that the application is proposed and process performance index grab sampling and generates report The memory sampled data chart of method, Figure 10 are the storage service condition figures about Swap subregion.
Figure 11 show a kind of server that the application is proposed and process performance index grab sampling and generates report The server sending and receiving data sampled data chart of method includes two curves in figure, is service respectively for monitoring network condition Device is given out a contract for a project situation and server packet receiving situation.
Figure 12 show a kind of server that the application is proposed and process performance index grab sampling and generates report The process sampled data chart of method, in the case where specified monitoring a certain process, process Expenditure Levels can be embodied in the chart In.It can be seen that the case where process uses CPU and memory ram within the sampling time, which occupies 97% in moment A in figure Cpu resource and occupy 3.57% memory source, received if it is desired, the process can be increased using hard disk resources and network The case where sending out data.
Further, a kind of the application shown in 3 is proposed referring to Fig.1 server and process performance index grab sampling with The frame diagram of generating means is shown with lower module in figure:
Definition module, define need to sample server hardware load type, the type of server processes, the sampling time and Sample frequency;
Sampling module is used within the instruction definition sampling time, with the sample frequency of instruction definition, to the clothes of instruction definition Be engaged in device load performance data or process occupy server hardware resource data sampled, and by sampled data and sampling when The corresponding relationship of point is stored in first storage device;
Comparison module, for comparing the data volume and preset upper threshold value and lower threshold value of time dimension, when time dimension When data volume is greater than upper threshold value, according to volume time dimension;When the data volume of time dimension is less than lower threshold value, lower brill time dimension Degree;
Display module, for showing that the data of sampled server load performance or process are occupied with specified format The corresponding relationship of the data of server hardware resource and each sampling time point.
Specifically, upper threshold value and lower threshold value are arranged by system default or are manually set.
Preferably, the report of generation can be sent to specified email address.
Specifically, the device proposed using the application does not need to install any software, only simultaneously by an instruction Define the type for the server load performance data that need to be sampled, the type of server processes, sampling time and sample frequency, operation After can be obtained server hardware load with process performance index grab sampling.
Specifically, the hardware of server may include CPU, memory, hard disk, network interface card etc..
Specifically, the instruction format is ./monitor_sample_report-t 100-i 1-p 29561.
It is specifically, relevant to be described as follows in above-mentioned instruction format,
Executable tool after the packing of monitor_sample_report:python script;
- t: the time of sampling, in seconds ,-t followed by be setting sampling time, be 100 seconds here, i.e., Persistently sample 100 seconds;
- i: the frequency of sampling ,-i followed by be setting sample frequency, be 1 here, i.e., it is primary every sampling in 1 second;
- p: the machine process of monitoring, nonessential parameter, the correlated performance data that monitoring process id is 29561 simultaneously here.
Specifically, sampled data is operated by the psutil packet of python, which provides all kinds of performances of machine loading The acquisition methods of data, while the method for process associated monitoring being provided.
Further, psutil is a cross-platform library, can easily realize that the process of acquisition system operation and system utilize Rate (including CPU, memory, disk, network etc.) information.It is mainly used in system monitoring, analysis and limitation system resource and into The management of journey.It realizes the function that same command-line tool provides, as ps, top, lsof, netstat, ifconfig, who, Df, kill, free, nice, ionice, iostat, iotop, uptime, pidof, tty, taskset, pmap etc..Branch at present Hold the operating systems such as 32 and 64 Linux, Windows, OS X, FreeBSD and Sun Solaris.
Specifically, timing sampling is controlled by the schedule packet of python, and Sampling Interface is called in timing.
Further, schedule can be completed per minute, per hour, daily, all several weekly, and the timing of specific date is appointed Business.
Further, sampling module further includes following submodule:
Module is obtained, for obtaining the size of sampled data;
Contrast module, the sampled data size for will acquire is compared with the first size of data, if sampled data is big It is small to be greater than the first size of data, then sampled data is saved in the second storage device, and delete corresponding in first storage device Otherwise data continue to start display module.
Specifically, the first size of data is by system default or by being manually arranged.
Further, sending module further includes following postposition module:
Removing module, for deleting the sampled data in first storage device or the second storage device.
Specifically, the first storage device is Installed System Memory, and second storage device is system disk.
Specifically, after instructing operation, sampled data caches timed writing the machine, if data are excessively huge, lands this Machine data temporary file, after generating report, temporary file can be cleared up in time, in order to avoid occupy excessive disk space.
Further, the type of the above method proposed according to the present invention, server processes is identified with process ID, that is, is grasped Make common pid in system.
Further, the above method proposed according to the present invention, in described instruction, the type of server load performance data is Essential option, the type of server processes are options.
Preferably, it for the security consideration of server, before method described herein, needs to carry out operator Identity identifies, so that the operator having permission could obtain operating right.
When needing to increase authentication link, server needs to include identification module and authentication module, the identity Identification module includes at least one in following device: between password getter, Fingerprint Identification Unit, sound characteristic identifier, pupil Away from detector, facial feature detection device, identification ticket identifier, handset identity number indicator, NFC signal identifier, WIFI signal identifier, RFID signal identifier.
The authentication module is used for the identity identification information obtained from identification module and is stored in advance in described Identity authority information in memory module compares.
Related step and data flow are authenticated referring to Fig. 5 and Fig. 6.
Finally, being stored thereon with computer instruction the present invention also provides a kind of computer readable storage medium.The instruction It is realized when being executed by processor such as the step of any one of aforementioned method.
It should be appreciated that the embodiment of the present invention can be by computer hardware, the combination of hardware and software or by depositing The computer instruction in non-transitory computer-readable memory is stored up to be effected or carried out.Standard volume can be used in the method Journey technology-includes that the non-transitory computer-readable storage media configured with computer program is realized in computer program, In configured in this way storage medium make computer operated in a manner of specific and is predefined-according to describing in a particular embodiment Method and attached drawing.Each program can be realized with the programming language of level process or object-oriented with logical with computer system Letter.However, if desired, the program can be realized with compilation or machine language.Under any circumstance, the language can be compiling or The language of explanation.In addition, the program can be run on the specific integrated circuit of programming for this purpose.
Further, this method can be realized in being operably coupled to suitable any kind of computing platform, including But it is not limited to PC, mini-computer, main frame, work station, network or distributed computing environment, individual or integrated It computer platform or is communicated with charged particle tool or other imaging devices etc..Each aspect of the present invention can be with storage No matter machine readable code on non-transitory storage medium or equipment is moveable or is integrated to calculate and put down to realize Platform, such as hard disk, optically read and/or write-in storage medium, RAM, ROM, so that it can be read by programmable calculator, when depositing Storage media or equipment can be used for configuration and operation computer to execute process described herein when being read by computer.In addition, Machine readable code, or part thereof can be transmitted by wired or wireless network.When such media include in conjunction with microprocessor or When other data processors realize the instruction or program of steps described above, invention as described herein includes that these and other are different The non-transitory computer-readable storage media of type.When methods and techniques according to the present invention programming, the present invention is also Including computer itself.
This document describes embodiment of the disclosure, become known for executing optimal mode of the invention including inventor.It is readding After having read foregoing description, the variation of these embodiments will be apparent those skilled in the art.Inventor wishes skill Art personnel optionally use such modification, and inventor be intended to by be different from it is as specifically described herein in a manner of practice this public affairs The embodiment opened.Therefore, through applicable legal permission, the scope of the present disclosure includes describing in this appended claims The all modifications and equivalent of theme.In addition, the scope of the present disclosure covers any of the above-mentioned element in its all possible modification Combination, unless herein in addition instruction or otherwise significantly with contradicted by context.
Although description of the invention is quite detailed and especially several embodiments are described, it is not Any of these details or embodiment or any specific embodiments are intended to be limited to, but should be considered as is by reference to appended A possibility that claim provides broad sense in view of the prior art for these claims explanation, to effectively cover the present invention Preset range.In addition, with the foreseeable embodiment of inventor, present invention is described above, its purpose is to be provided with Description, and those still unforeseen at present change to unsubstantiality of the invention can still represent equivalent modifications of the invention.
Therefore, should be with descriptive sense rather than restrictive sense understands the specification and drawings.However, by apparent It is:, can be to the application in the case where not departing from the broader spirit and scope of the application as described in claims Make various modifications and change.
Other modifications are in spirit herein.Therefore, although disclosed technology may be allowed various modifications and substitution structure It makes, but has shown that in the accompanying drawings and its some embodiments shown in being described in detail above.It will be appreciated, however, that not It is intended to for the application to be confined to disclosed one or more concrete forms;On the contrary, its intention covers such as the appended claims Defined in fall in all modifications, alternative constructions and equivalent in spirit and scope.

Claims (10)

1. a kind of server and process performance index grab sampling and the method for generating report, which is characterized in that including following step It is rapid:
S100 type, the type of server processes, sampling time and the sampling frequency of the server hardware load that need to be sampled) are defined Rate;
S200) within the instruction definition sampling time, with the sample frequency of instruction definition, to the server load performance of instruction definition Data or process occupy server hardware resource data sampled, and by sampled data and sampling time point corresponding relationship It is stored in first storage device;
S300 the data volume and preset upper threshold value and lower threshold value for) comparing time dimension, when the data volume of time dimension is greater than upper When threshold value, according to volume time dimension;When the data volume of time dimension is less than lower threshold value, lower brill time dimension;
S400) with specified format, show that the data of sampled server load performance or process occupy server hardware money The corresponding relationship of the data in source and each sampling time point.
2. the method according to claim 1, wherein step S200 further includes following sub-step:
S201 the size of sampled data) is obtained;
S202 the sampled data size that) will acquire is compared with the first size of data, if sampled data size is greater than the first number According to size, then sampled data is saved in the second storage device, and deletes the corresponding data in first storage device, otherwise, after It is continuous to execute step S300 and S400.
3. according to the method described in claim 2, it is characterized in that, the first size of data is by system default or by being manually arranged.
4. the method according to claim 1, wherein step S400 further includes following postposition step:
Delete the sampled data in first storage device or the second storage device.
5. according to the method described in claim 4, it is characterized in that, the first storage device be Installed System Memory, described second Storage device is system disk.
6. the method according to claim 1, wherein the type of server processes is identified with process ID.
7. the method according to claim 1, wherein in described instruction, the type of server load performance data It is essential option, the type of server processes is option.
8. the method according to claim 1, wherein specified format is html format.
9. a kind of server and process performance index grab sampling and the device for generating report, which is characterized in that including with lower die Block:
Definition module, for define need to sample server hardware load type, the type of server processes, the sampling time and Sample frequency;
Sampling module is used within the instruction definition sampling time, with the sample frequency of instruction definition, to the server of instruction definition The data that the data or process of load performance occupy server hardware resource are sampled, and by sampled data and sample time point Corresponding relationship is stored in first storage device;
Comparison module, for comparing the data volume and preset upper threshold value and lower threshold value of time dimension, when the data of time dimension When amount is greater than upper threshold value, according to volume time dimension;When the data volume of time dimension is less than lower threshold value, lower brill time dimension;
Display module, for showing that the data of sampled server load performance or process occupy service with specified format The corresponding relationship of the data of device hardware resource and each sampling time point.
10. a kind of computer readable storage medium, is stored thereon with computer instruction, described instruction is wanted for executing aforesaid right Seek the described in any item methods of 1-8.
CN201910044792.5A 2019-01-17 2019-01-17 A kind of method of server and process performance index grab sampling and generation report Pending CN109783319A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910044792.5A CN109783319A (en) 2019-01-17 2019-01-17 A kind of method of server and process performance index grab sampling and generation report

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910044792.5A CN109783319A (en) 2019-01-17 2019-01-17 A kind of method of server and process performance index grab sampling and generation report

Publications (1)

Publication Number Publication Date
CN109783319A true CN109783319A (en) 2019-05-21

Family

ID=66501512

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910044792.5A Pending CN109783319A (en) 2019-01-17 2019-01-17 A kind of method of server and process performance index grab sampling and generation report

Country Status (1)

Country Link
CN (1) CN109783319A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111143177A (en) * 2019-12-04 2020-05-12 中国建设银行股份有限公司 Method, system, device and storage medium for collecting RMF III data of IBM host
CN113419807A (en) * 2021-07-02 2021-09-21 中国工商银行股份有限公司 Multi-brand disk drive performance fusion display method and system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050033871A1 (en) * 2003-06-18 2005-02-10 Beg Ajmal Mirza Muhammad Methods and systems for monitoring a hardware component in a computer system
CN102253883A (en) * 2011-07-29 2011-11-23 国网信息通信有限公司 Method and system for evaluating performance of server
CN102523140A (en) * 2012-01-12 2012-06-27 江苏电力信息技术有限公司 Real-time monitoring device for operation and maintenance of electric power customer service system
CN104991854A (en) * 2015-06-12 2015-10-21 北京奇虎科技有限公司 Method and system for monitoring and statistics of server sources
CN106100902A (en) * 2016-08-04 2016-11-09 腾讯科技(深圳)有限公司 High in the clouds index monitoring method and apparatus
CN106685839A (en) * 2016-11-17 2017-05-17 上海斐讯数据通信技术有限公司 Method and system for monitoring router long connection service
CN107911410A (en) * 2017-10-17 2018-04-13 珠海金山网络游戏科技有限公司 Distributed Services process resource consumes statistical method and device
CN108989146A (en) * 2018-07-11 2018-12-11 郑州云海信息技术有限公司 A kind of monitoring method and monitoring system of computer hardware equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050033871A1 (en) * 2003-06-18 2005-02-10 Beg Ajmal Mirza Muhammad Methods and systems for monitoring a hardware component in a computer system
CN102253883A (en) * 2011-07-29 2011-11-23 国网信息通信有限公司 Method and system for evaluating performance of server
CN102523140A (en) * 2012-01-12 2012-06-27 江苏电力信息技术有限公司 Real-time monitoring device for operation and maintenance of electric power customer service system
CN104991854A (en) * 2015-06-12 2015-10-21 北京奇虎科技有限公司 Method and system for monitoring and statistics of server sources
CN106100902A (en) * 2016-08-04 2016-11-09 腾讯科技(深圳)有限公司 High in the clouds index monitoring method and apparatus
CN106685839A (en) * 2016-11-17 2017-05-17 上海斐讯数据通信技术有限公司 Method and system for monitoring router long connection service
CN107911410A (en) * 2017-10-17 2018-04-13 珠海金山网络游戏科技有限公司 Distributed Services process resource consumes statistical method and device
CN108989146A (en) * 2018-07-11 2018-12-11 郑州云海信息技术有限公司 A kind of monitoring method and monitoring system of computer hardware equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111143177A (en) * 2019-12-04 2020-05-12 中国建设银行股份有限公司 Method, system, device and storage medium for collecting RMF III data of IBM host
CN111143177B (en) * 2019-12-04 2023-08-11 中国建设银行股份有限公司 Method, system, device and storage medium for collecting RMF III data of IBM host
CN113419807A (en) * 2021-07-02 2021-09-21 中国工商银行股份有限公司 Multi-brand disk drive performance fusion display method and system

Similar Documents

Publication Publication Date Title
US11546362B2 (en) Systems and methods for data-driven infrastructure controls
EP3030966B1 (en) Virtual computing instance migration
CN109684047A (en) Event-handling method, device, equipment and computer storage medium
EP3401823B1 (en) Security verification method and device for smart card application
EP4124944B1 (en) Intelligent cloud management based on profile
CN108449320B (en) Intelligent automatic safe office system and method
US11336599B2 (en) Architecture for performing action in a third-party service by an email client
US9131374B1 (en) Knowledge-based authentication for restricting access to mobile devices
US10924479B2 (en) System and methods to establish user profile using multiple channels
CN1474986A (en) System and method for providing supervision of plurality of financial services terminals
JPH11175402A (en) Card type storage medium and access control method for the same and computer readable recording medium for recording access control program for card type storage medium
US10582005B2 (en) Architecture for performing actions in a third-party service by an email client
CN113079164B (en) Remote control method and device for bastion machine resources, storage medium and terminal equipment
CN103581187A (en) Method and system for controlling access rights
CN106506471A (en) Application control method and device
US10735463B2 (en) Validating commands for hacking and spoofing prevention in an Internet of Things (IoT) computing environment
US11721116B2 (en) Managing camera actions
CN109783319A (en) A kind of method of server and process performance index grab sampling and generation report
GB2601165A (en) Transaction verification
CN107341378A (en) For the method for the access right for setting application
EP3333743B1 (en) System and method of preventing unfair evaluation of applications by users
US20220414193A1 (en) Systems and methods for secure adaptive illustrations
US20220277084A1 (en) Risk assessment of account access
CN110489253A (en) Data processing method, device, equipment and computer readable storage medium
US11783247B2 (en) Machine learning platform for real time occupancy forecasting and resource planning

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190521