CN109522179A - Monitoring method, device, processor and the server of operation condition of server - Google Patents

Monitoring method, device, processor and the server of operation condition of server Download PDF

Info

Publication number
CN109522179A
CN109522179A CN201811191465.4A CN201811191465A CN109522179A CN 109522179 A CN109522179 A CN 109522179A CN 201811191465 A CN201811191465 A CN 201811191465A CN 109522179 A CN109522179 A CN 109522179A
Authority
CN
China
Prior art keywords
internal storage
data
storage data
server
level
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.)
Granted
Application number
CN201811191465.4A
Other languages
Chinese (zh)
Other versions
CN109522179B (en
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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201811191465.4A priority Critical patent/CN109522179B/en
Publication of CN109522179A publication Critical patent/CN109522179A/en
Application granted granted Critical
Publication of CN109522179B publication Critical patent/CN109522179B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3017Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is implementing multitasking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of monitoring method of operation condition of server, device, processor and servers.This method comprises: obtaining the corresponding internal storage data of each process during the operation of multi-process server;Classification processing is carried out to the internal storage data got according to code structure, obtains processing result;It is monitored according to operating status of the processing result to multi-process server.The present invention solve in the related technology provided by internally the solution operation complexity that is monitored of deposit data is higher during server operation, data deficiency integrality, the technical issues of having isolated relationship between process, being unable to reach integral monitoring.

Description

Monitoring method, device, processor and the server of operation condition of server
Technical field
The present invention relates to computer field, in particular to a kind of monitoring method of operation condition of server, device, Processor and server.
Background technique
Multi-process server framework is mainstream framework instantly.The multi-process server framework has multiple processes, height simultaneously Hair feature.Exchange can be communicated with each other between multiple processes, the extension implementation for increasing process newly is convenient, and wherein one A process exception does not interfere with the normal operation of other processes, and therefore, server architecture is sufficiently stable.
During operation, realization is very important to the effective monitoring of internal storage data to server.Grasp actual motion mistake Internal storage data in journey, influence of the variation of these data to concrete function in server, and the operation under data feedback The monitoring of debugging and server state itself after the appearance of period abnormal problem all seems particularly significant.
Log recording method is current conventional server memory data monitoring means.Log recording is to run it in server Before, record position is selected in code layer in advance and the data variable name for needing to record carries out written in code.It was run in server Cheng Zhong, when the code of selected record position is performed, the data of demand will pass through journal file or server operation control Platform output processed.
However, there are following technological deficiencies for log recording method:
(1) code of record log may be unable to get operation during server is run;
(2) internal storage data information can not be obtained in real time;
(3) data information that can be got is very limited, is confined to the low volume data arranged on demand in code.
In addition, additionally providing the method that a kind of pair of server individual process carries out background monitoring in the related technology.Pass through clothes Each process of business device obtains the data information of demand from the background.
However, server one process background monitoring mode still has following technological deficiency:
(1) due to needing the source of data according to actual needs to be positioned, it obtains data information and needs to be implemented again Miscellaneous operation, this needs operator very clear to the hierarchical relationship of data source, otherwise will be difficult to cope with.
(2) in the case where number of processes is excessive, it can not determine that demand data is that occur in which process, this needs Data source can be determined by carrying out data acquisition operations on the backstage of each process.
In addition to this, there is also common problems for above two method: having isolated the relationship between process, has been unable to reach entirety Monitor the purpose of internal storage data.
For above-mentioned problem, currently no effective solution has been proposed.
Summary of the invention
The present invention at least partly embodiment provide the monitoring method of operation condition of server a kind of, device, processor and Server, at least to solve the provided solution party that internally deposit data is monitored during server operation in the related technology Case operation complexity is higher, data deficiency integrality, has isolated relationship between process, and the technology for being unable to reach integral monitoring is asked Topic.
A wherein embodiment according to the present invention, provides a kind of monitoring method of operation condition of server, comprising:
During the operation of multi-process server, the corresponding internal storage data of each process is obtained;According to code structure to acquisition The internal storage data arrived carries out classification processing, obtains processing result;According to processing result to the operating status of multi-process server into Row monitoring.
Optionally, obtaining the corresponding internal storage data of each process includes: the multiple modules for obtaining each process and being included;It obtains Take the object information in multiple modules under each module;Determine the type for each object for including in object information.
Optionally, classification processing is carried out to the internal storage data that gets according to code structure, obtain processing result include: by The internal storage data got is divided to corresponding ownership process, obtains the internal storage data under each process;According to code structure pair Internal storage data under each process carries out layered shaping, is layered as a result, so as to obtaining the internal storage data under each process Path is corresponding with code structure;Data level is determined according to layering result, and according to the number of the internal storage data in data level Classify according to type to the internal storage data in data level, obtains processing result.
Optionally, the internal storage data in data level is divided according to the data type of the internal storage data in data level Class includes: to be determined as the internal storage data in data level to be layered the most end of result when data type is immediate data type Level;When data type is indirect data type, micronization processes are carried out to the internal storage data in data level, until obtaining To the internal storage data for belonging to immediate data type, and the internal storage data of immediate data type is determined as to be layered the most last layer of result Grade.
Optionally, being monitored according to operating status of the processing result to multi-process server includes: by multi-process Preconfigured communication thread in each process in server, by the internal storage data of one or more levels in processing result Show in the associated terminal of multi-process server;Request is modified in response to the internal storage data of terminal, in processing result Internal storage data is modified.
A wherein embodiment according to the present invention, additionally provides a kind of monitoring device of operation condition of server, comprising:
Module is obtained, for obtaining the corresponding internal storage data of each process during the operation of multi-process server;Handle mould Block obtains processing result for carrying out classification processing to the internal storage data got according to code structure;Monitoring module is used for It is monitored according to operating status of the processing result to multi-process server.
Optionally, obtaining module includes: first acquisition unit, the multiple modules for being included for obtaining each process;The Two acquiring units, for obtaining the object information in multiple modules under each module;Determination unit, for determining in object information The type for each object for including.
Optionally, processing module includes: division unit, the internal storage data for will acquire be divided to it is corresponding belong into Journey obtains the internal storage data under each process;Delaminating units, for according to code structure to the internal storage data under each process into Row layered shaping is layered as a result, so that the path for obtaining the internal storage data under each process is corresponding with code structure;Place Unit is managed, for determining data level according to layering result, and according to the data type logarithm of the internal storage data in data level Classify according to the internal storage data in level, obtains processing result.
Optionally, processing unit is used for when data type is immediate data type, by the internal storage data in data level It is determined as being layered the most end level of result;When data type is indirect data type, to the internal storage data in data level Micronization processes are carried out, until get the internal storage data for belonging to immediate data type, and by the internal storage data of immediate data type It is determined as being layered the most end level of result.
Optionally, monitoring module includes: display unit, for by preparatory in each process in multi-process server The internal storage data of one or more levels in processing result is shown and is associated with multi-process server by the communication thread of configuration Terminal on;Adjustment unit is modified request for the internal storage data in response to terminal, is carried out to the internal storage data in processing result Modification.
A wherein embodiment according to the present invention additionally provides a kind of storage medium, and storage medium includes the program of storage, In, in program operation, equipment where control storage medium executes the monitoring method of above-mentioned operation condition of server.
A wherein embodiment according to the present invention additionally provides a kind of processor, and processor is for running program, wherein journey The monitoring method of above-mentioned operation condition of server is executed when sort run.
A wherein embodiment according to the present invention, additionally provides a kind of server, comprising: one or more processors, storage Device and one or more program, wherein one or more programs are stored in memory, and be configured as by one or Multiple processors execute, and one or more programs are used to execute the monitoring method of above-mentioned operation condition of server.
It is corresponding using each process is obtained during the operation of multi-process server in the present invention at least partly embodiment The mode of internal storage data obtains processing result by carrying out classification processing to the internal storage data got according to code structure, with And be monitored according to operating status of the processing result to multi-process server, reach the memory to multi-process IA frame serverPC Data carry out the purpose of generalization, integration and sharpening monitoring, to realize comprehensively and obtain all processes in real time Internal storage data carries out structuring to internal storage data and hierarchically analyzes and arrange, so that the connection between process is even closer, And it may be implemented that internal storage data definitely and more easily modify, greatly simplifie entire policer operation stream The technical effect of journey, and then solve what provided deposit data internal during server operation in the related technology was monitored Solution operation complexity is higher, data deficiency integrality, has isolated relationship between process, is unable to reach integral monitoring Technical problem.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the monitoring method of operation condition of server according to an embodiment of the present invention;
Fig. 2 is the wherein structural block diagram of the monitoring device of the operation condition of server of an embodiment according to the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product Or other step or units that equipment is intrinsic.
Firstly, the part noun or term that occur during the embodiment of the present application is described are suitable for following solution It releases:
Internal storage data refers to the ephemeral data stored during server operation, records all under current server state Information.Data class includes but is not limited to: each generic module, the storage address of function and variable and variable and various types pair The information of elephant.The purpose of server monitoring essentially consists in: the variation of variable and the data information of various types object storage.
A wherein embodiment according to the present invention, provides a kind of embodiment of the monitoring method of operation condition of server, needs It is noted that step shown in the flowchart of the accompanying drawings can be in the computer system of such as a group of computer-executable instructions Middle execution, although also, logical order is shown in flow charts, and it in some cases, can be to be different from herein Sequence executes shown or described step.
This method embodiment can execute in server-side or similar arithmetic unit.It is in server-side to operate in Example, server-side may include that (processor can include but is not limited to microprocessor (MCU) or programmable to one or more processors The processing unit of logical device (FPGA) etc.) and memory for storing data.Optionally, above-mentioned server-side can also include Transmitting device and input-output equipment for communication function.It will appreciated by the skilled person that above structure is retouched It states and only illustrates, the structure of above-mentioned server-side is not caused to limit.It is described for example, server-side may also include than above structure More perhaps less component describes different configurations with above structure.
Memory can be used for storing computer program, for example, the software program and module of application software, such as present invention are real The corresponding computer program of monitoring method of the operation condition of server in example is applied, processor is stored in memory by operation Computer program realize the prison of above-mentioned operation condition of server thereby executing various function application and data processing Prosecutor method.Memory may include high speed random access memory, may also include nonvolatile memory, as one or more magnetism is deposited Storage device, flash memory or other non-volatile solid state memories.In some instances, memory can further comprise relative to The remotely located memory of processor, these remote memories can pass through network connection to server-side.The example of above-mentioned network Including but not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Transmitting device is used to that data to be received or sent via a network.Above-mentioned network specific example may include service The wireless network that the communication providers at end provide.In an example, transmitting device can be for each process of server it is equal Addition one is based on the thread of socket (socket) communication module.
The internal storage data of all processes can be obtained in real time by using above-mentioned server-side, and to the memory number got Taxonomic revision is carried out according to the rule according to code structure and matched data are shown and modification.
A kind of monitoring method of operation condition of server for running on above-mentioned server-side, Fig. 1 are provided in the present embodiment It is the flow chart of the monitoring method of operation condition of server according to an embodiment of the present invention, as shown in Figure 1, this method includes as follows Step:
Step S12 obtains the corresponding internal storage data of each process during the operation of multi-process server;
Step S14 carries out classification processing to the internal storage data got according to code structure, obtains processing result;
Step S16 is monitored according to operating status of the processing result to multi-process server.
Through the above steps, the corresponding internal storage data of each process can be obtained using during the operation of multi-process server Mode, obtain processing result by carrying out classification processing to the internal storage data that gets according to code structure, and according to place Reason result is monitored the operating status of multi-process server, has reached the internal storage data progress to multi-process IA frame serverPC The purpose of generalization, integration and sharpening monitoring, so that the internal storage data of all processes is realized comprehensively and obtains in real time, Structuring and hierarchically analysis and arrangement are carried out to internal storage data, so that the connection between process is even closer, and can be with It realizes and internal storage data progress definitely and is more easily modified, greatly simplifie the technology of entire policer operation process Effect, and then solve the provided solution that internally deposit data is monitored during server operation in the related technology Operation complexity is higher, data deficiency integrality, has isolated relationship between process, and the technology for being unable to reach integral monitoring is asked Topic.
Optionally, in step s 12, obtaining the corresponding internal storage data of each process may include step performed below:
Step S121 obtains multiple modules that each process is included;
Step S122 obtains the object information in multiple modules under each module;
Step S123 determines the type for each object for including in object information.
No matter multi-process server framework is realized with which kind of programming language, and the internal storage data during operation can be Memory space is got.What the logic and algorithm that data classification is realized also can be achieved on.For ease of description and understand, below The specific implementation of technical solution will be described in detail in alternative embodiment for using python language as server programming language Process.
It is real with python programming language for the acquisition modes of the internal storage data of processes all in multi-process server Existing multi-process server framework, the internal storage data of each process can be obtained under process based on module (dir).Pass through Dir mode can obtain all object informations under the module, including but not limited to: variable, function, class.Then, then by pair As type of (type) mode to internal storage data judges.If internal storage data belongs to the variable of immediate data type, such as: Basic integer type (int), character string type (str), dictionary type (dict) and list type (list), can directly make For monitoring objective.If internal storage data belongs to class instance objects type, further micronization processes are needed to be implemented, to analyze this Immediate data categorical variable under class object.
Therefore, by being analyzed and processed to all modules under current process, available all internal storage data letters Breath.And all modules can then obtain in the following manner:
import sys
All_module=sys.modules#dict data structure, and module name: module object,.
Optionally, in step S14, classification processing is carried out to the internal storage data got according to code structure, is obtained everywhere Managing result may include step performed below:
Step S141, the internal storage data that will acquire are divided to corresponding ownership process, obtain the memory under each process Data;
Step S142, according to code structure under each process internal storage data carry out layered shaping, be layered as a result, So that the path for obtaining the internal storage data under each process is corresponding with code structure;
Step S143 determines data level according to layering result, and according to the data class of the internal storage data in data level Type classifies to the internal storage data in data level, obtains processing result.
In getting multi-process server after the internal storage data of all processes, firstly, the internal storage data that will acquire It is distinguished according to from different processes;Then, based on the code structure of realization, level is carried out according to the source of internal storage data Processing, so that internal storage data to acquisite approachs is corresponding with code structure;Finally, being carried out on data content according to data type Classification.Thus the internal storage data of all processes all exists and connects each other, and the hierarchical structure of internal storage data and code structure phase It is corresponding.
For the mode classification of the internal storage data of processes all in multi-process server, mode classification is according to from entirety Sequence to part carries out, and can be divided into following multiple levels:
(1) server tier directly corresponds to specific server.
(2) server processes level corresponds to each process under multi-process server framework.
(3) module path level, all modules can by its _ file_ attribute gets corresponding path, then again Level division is carried out according to path.The superior and the subordinate's information is based on actual code structure and is layered.
(4) data level, after determining that internal storage data belongs to specific module, can to module _ dict_ attribute carry out Classification analysis.
(5) special level classify and obtain after especially handling for special module, these modules are also can be by The method of more solito is layered.Such as: totally according to generic module usually only include storing data types of variables, without comprising Function, class or other submodules.Therefore, it may not need carry out chromatographic analysis, but directly pass through the side of plaintext code displaying Formula is especially handled.That is, for totally according to generic module for, can directly utilize inspect module getsource interface function Specific plaintext code can be directly obtained.
Optionally, in step S143, according to the data type of the internal storage data in data level in data level It may include step performed below that internal storage data, which carries out classification:
Internal storage data in data level is determined as being layered by step S1431 when data type is immediate data type As a result most end level;
Step S1432 refines the internal storage data in data level when data type is indirect data type Processing until get the internal storage data for belonging to immediate data type, and the internal storage data of immediate data type is determined as point The most end level of layer result.
If internal storage data belongs to the variable of immediate data type, such as: int, str, dict and list, it is contemplated that directly The variation of data type is the most direct monitoring target of server memory data, and the value of these internal storage datas, which directly represents, to be worked as The running state information of preceding server and the bottom of data level, then by such internal storage data directly as most end level It is shown.If it is class example, it is contemplated that class example has generally comprised immediate data type, function or other types data, Then to class _ dict_ attribute further progress, structure is similar with the analysis mode of module.
Optionally, in step s 16, being monitored according to operating status of the processing result to multi-process server can wrap Include step performed below:
Step S161 is tied processing by preconfigured communication thread in each process in multi-process server The internal storage datas of one or more levels in fruit show in the associated terminal of multi-process server;
Step S162 modifies request in response to the internal storage data of terminal, modifies to the internal storage data in processing result.
For being externally controlled the mode of the internal storage data of server processes, can be added for each process of server One thread based on socket communication module, the thread mainly realize following basic function:
(1) socket server-side basic function, socket are basic modules, and basic function is transparent and ready-made;
(2) interface function of current memory data acquisition, the function are used to obtain all internal storage datas under current time, And the data information under current level can be obtained according to taxonomical hierarchy parameter.
(3) internal storage data modifies interface function, and the function is for realizing the modification to particular memory data.
The connection with the socket server-side thread in server processes is realized by socket client, it is possible thereby to reach To the purpose for obtaining and modifying internal storage data.
For the exhibition method of the internal storage data of server processes, many forms can be used.It can at one It selects in embodiment, for showing in the form of web pages, exhibition method is illustrated:
(1) data acquisition functions for passing through webpage rear end, the memory number of server processes is obtained with socket communication form According to;
(2) internal storage data that webpage front-end directly will acquire is shown according to layered structure.In view of data volume can Can be very huge, therefore, webpage rear end needs to obtain all memory numbers under current level when sending data to webpage front-end It is believed that breath.
(3) during operating by webpage to internal storage data, data object information that will be to be operated is needed, Including but not limited to: Data Position and adjusted value etc. are sent to webpage rear end, then modify interface function by above-mentioned internal storage data To achieve the purpose that modify to the internal storage data.
It can be seen that after carrying out stratification processing to internal storage data, when needs obtain or modify particular memory data When, extremely it can navigate to accurately and easily the particular memory data and complete the modification to particular memory data.In this way, can The data information in specific structure layer to be shown by form web page, and can carry out up-down structure layer jump to Obtain corresponding information.
The above analysis, it can be found that technical solution provided by the embodiment of the present invention can achieve following technology effect Fruit:
(1) internal storage data of all processes in multi-process server can be got in real time, so that internal storage data monitors It can comprehensively and integrally carry out, and by the way that the realization structure of code can very accurately and quickly realization internal storage data be fixed Position, and then complete read operation and modification operation.
(2) internal storage data can be showed by form web page, so that user directly can reach data by web page operation The purpose with modification is read, overall flow is very clear.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing The part that technology contributes can be embodied in the form of software products, which is stored in a storage In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
A kind of monitoring device of operation condition of server is additionally provided in the present embodiment, and the device is for realizing above-mentioned reality Example and preferred embodiment are applied, the descriptions that have already been made will not be repeated.As used below, term " module " may be implemented The combination of the software and/or hardware of predetermined function.Although device described in following embodiment is preferably realized with software, The realization for being the combination of hardware or software and hardware is also that may and be contemplated.
Fig. 2 is the wherein structural block diagram of the monitoring device of the operation condition of server of an embodiment, such as Fig. 2 according to the present invention Shown, which includes: to obtain module 10, for obtaining the corresponding memory of each process during the operation of multi-process server Data;Processing module 20 obtains processing result for carrying out classification processing to the internal storage data got according to code structure; Monitoring module 30, for being monitored according to operating status of the processing result to multi-process server.
Optionally, obtaining module 10 includes: first acquisition unit (not shown), is included for obtaining each process Multiple modules;Second acquisition unit (not shown), for obtaining the object information in multiple modules under each module;Really Order member (not shown), for determining the type for each object for including in object information.
Optionally, processing module 20 includes: division unit (not shown), and the internal storage data for will acquire divides To corresponding ownership process, the internal storage data under each process is obtained;Delaminating units (not shown), for according to code knot Structure carries out layered shaping to the internal storage data under each process, is layered as a result, so as to obtaining the memory number under each process According to path it is corresponding with code structure;Processing unit (not shown), for determining data level according to layering result, and Classified according to the data type of the internal storage data in data level to the internal storage data in data level, obtains processing knot Fruit.
Optionally, processing unit (not shown) is used for when data type is immediate data type, by data level In internal storage data be determined as be layered result most end level;When data type is indirect data type, to data level In internal storage data carry out micronization processes, until get the internal storage data for belonging to immediate data type, and by immediate data class The internal storage data of type is determined as being layered the most end level of result.
Optionally, monitoring module 30 includes: display unit (not shown), for by multi-process server Preconfigured communication thread in each process, by the internal storage datas of one or more levels in processing result show with it is more In the associated terminal of process server;Adjustment unit (not shown) modifies request for the internal storage data in response to terminal, It modifies to the internal storage data in processing result.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong Following manner realization is crossed, but not limited to this: above-mentioned module is respectively positioned in same processor;Alternatively, above-mentioned modules are with any Combined form is located in different processors.
The embodiments of the present invention also provide a kind of storage medium, computer program is stored in the storage medium, wherein The computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
Optionally, in the present embodiment, above-mentioned storage medium can be set to store by executing based on following steps Calculation machine program:
S1 obtains the corresponding internal storage data of each process during the operation of multi-process server;
S2 carries out classification processing to the internal storage data got according to code structure, obtains processing result;
S3 is monitored according to operating status of the processing result to multi-process server.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (Read- Only Memory, referred to as ROM), it is random access memory (Random Access Memory, referred to as RAM), mobile hard The various media that can store computer program such as disk, magnetic or disk.
The embodiments of the present invention also provide a kind of processor, which is arranged to run computer program to execute Step in any of the above-described embodiment of the method.
Optionally, in the present embodiment, above-mentioned processor can be set to execute following steps by computer program:
S1 obtains the corresponding internal storage data of each process during the operation of multi-process server;
S2 carries out classification processing to the internal storage data got according to code structure, obtains processing result;
S3 is monitored according to operating status of the processing result to multi-process server.
Optionally, the specific example in the present embodiment can be with reference to described in above-described embodiment and optional embodiment Example, details are not described herein for the present embodiment.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, Ke Yiwei A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or Part steps.And storage medium above-mentioned includes: that USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. be various to can store program code Medium.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (13)

1. a kind of monitoring method of operation condition of server characterized by comprising
During the operation of multi-process server, the corresponding internal storage data of each process is obtained;
Classification processing is carried out to the internal storage data got according to code structure, obtains processing result;
It is monitored according to operating status of the processing result to the multi-process server.
2. the method according to claim 1, wherein obtaining the corresponding internal storage data of each process and including:
Obtain multiple modules that each process is included;
Obtain the object information in the multiple module under each module;
Determine the type for each object for including in the object information.
3. the method according to claim 1, wherein according to the code structure to the memory number got According to classification processing is carried out, obtaining processing result includes:
The internal storage data got is divided to corresponding ownership process, obtains the internal storage data under each process;
Layered shaping is carried out to the internal storage data under each process according to the code structure, is layered as a result, so as to obtaining The path of internal storage data under each process is corresponding with the code structure;
Data level is determined according to the layering result, and according to the data type of the internal storage data in the data level to institute The internal storage data stated in data level is classified, and the processing result is obtained.
4. according to the method described in claim 3, it is characterized in that, according to the data class of the internal storage data in the data level Type carries out classification to the internal storage data in the data level
When the data type is immediate data type, the internal storage data in the data level is determined as the layering and is tied The most end level of fruit;
When the data type is indirect data type, micronization processes are carried out to the internal storage data in the data level, Until getting the internal storage data for belonging to the immediate data type, and the internal storage data of the immediate data type is determined as The most end level of the layering result.
5. the method according to claim 1, wherein according to the processing result to the multi-process server Operating status, which is monitored, includes:
It, will be in the processing result by the preconfigured communication thread in each process in the multi-process server The internal storage datas of one or more levels show in the associated terminal of multi-process server;
Request is modified in response to the internal storage data of the terminal, is modified to the internal storage data in the processing result.
6. a kind of monitoring device of operation condition of server characterized by comprising
Module is obtained, for obtaining the corresponding internal storage data of each process during the operation of multi-process server;
Processing module obtains processing result for carrying out classification processing to the internal storage data got according to code structure;
Monitoring module, for being monitored according to operating status of the processing result to the multi-process server.
7. device according to claim 6, which is characterized in that the acquisition module includes:
First acquisition unit, the multiple modules for being included for obtaining each process;
Second acquisition unit, for obtaining the object information in the multiple module under each module;
Determination unit, for determining the type for each object for including in the object information.
8. device according to claim 6, which is characterized in that the processing module includes:
Division unit obtains under each process for the internal storage data got to be divided to corresponding ownership process Internal storage data;
Delaminating units are layered for carrying out layered shaping to the internal storage data under each process according to the code structure As a result, so that the path for obtaining the internal storage data under each process is corresponding with the code structure;
Processing unit, for determining data level according to the layering result, and according to the internal storage data in the data level Data type classify to the internal storage data in the data level, obtain the processing result.
9. device according to claim 8, which is characterized in that the processing unit, for being straight when the data type When connecing data type, the internal storage data in the data level is determined as to the most end level of the layering result;When the number When according to type being indirect data type, micronization processes are carried out to the internal storage data in the data level, until get category It is determined as the layering result in the internal storage data of the immediate data type, and by the internal storage data of the immediate data type Most end level.
10. device according to claim 6, which is characterized in that the monitoring module includes:
Display unit, for by the preconfigured communication thread in each process in the multi-process server, by institute State one or more levels in processing result internal storage data show in the associated terminal of multi-process server;
Adjustment unit modifies request for the internal storage data in response to the terminal, to the internal storage data in the processing result It modifies.
11. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein run in described program When control the storage medium where equipment perform claim require any one of 1 to 5 described in operation condition of server prison Prosecutor method.
12. a kind of processor, which is characterized in that the processor is for running program, wherein right of execution when described program is run Benefit require any one of 1 to 5 described in operation condition of server monitoring method.
13. a kind of server characterized by comprising one or more processors, memory and one or more programs, Wherein, one or more of programs are stored in the memory, and are configured as by one or more of processing Device executes, and one or more of programs are for operation condition of server described in any one of perform claim requirement 1 to 5 Monitoring method.
CN201811191465.4A 2018-10-12 2018-10-12 Server running state monitoring method and device, processor and server Active CN109522179B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811191465.4A CN109522179B (en) 2018-10-12 2018-10-12 Server running state monitoring method and device, processor and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811191465.4A CN109522179B (en) 2018-10-12 2018-10-12 Server running state monitoring method and device, processor and server

Publications (2)

Publication Number Publication Date
CN109522179A true CN109522179A (en) 2019-03-26
CN109522179B CN109522179B (en) 2022-05-27

Family

ID=65771827

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811191465.4A Active CN109522179B (en) 2018-10-12 2018-10-12 Server running state monitoring method and device, processor and server

Country Status (1)

Country Link
CN (1) CN109522179B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111177240A (en) * 2019-12-13 2020-05-19 贝壳技术有限公司 API (application program interface) data importing method and system and Mock data generating method
CN112306966A (en) * 2020-10-23 2021-02-02 珠海格力电器股份有限公司 Data processing method and device, storage medium and electronic device
CN112463565A (en) * 2020-11-30 2021-03-09 苏州浪潮智能科技有限公司 Server life prediction method and related equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101944167A (en) * 2010-09-29 2011-01-12 中国科学院计算技术研究所 Method and system for identifying malicious program
CN106844137A (en) * 2016-12-08 2017-06-13 腾讯科技(深圳)有限公司 The monitoring method and device of server
CN106843756A (en) * 2017-01-13 2017-06-13 中国科学院信息工程研究所 Memory pages recovery method and system based on page classifications
CN106951326A (en) * 2017-03-16 2017-07-14 腾讯科技(深圳)有限公司 A kind of file unlocking method and electronic equipment
US20170286683A1 (en) * 2016-04-03 2017-10-05 Cyber Secdo Ltd. System and methods thereof for identification of suspicious system processes

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101944167A (en) * 2010-09-29 2011-01-12 中国科学院计算技术研究所 Method and system for identifying malicious program
US20170286683A1 (en) * 2016-04-03 2017-10-05 Cyber Secdo Ltd. System and methods thereof for identification of suspicious system processes
CN106844137A (en) * 2016-12-08 2017-06-13 腾讯科技(深圳)有限公司 The monitoring method and device of server
CN106843756A (en) * 2017-01-13 2017-06-13 中国科学院信息工程研究所 Memory pages recovery method and system based on page classifications
CN106951326A (en) * 2017-03-16 2017-07-14 腾讯科技(深圳)有限公司 A kind of file unlocking method and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111177240A (en) * 2019-12-13 2020-05-19 贝壳技术有限公司 API (application program interface) data importing method and system and Mock data generating method
CN112306966A (en) * 2020-10-23 2021-02-02 珠海格力电器股份有限公司 Data processing method and device, storage medium and electronic device
CN112463565A (en) * 2020-11-30 2021-03-09 苏州浪潮智能科技有限公司 Server life prediction method and related equipment

Also Published As

Publication number Publication date
CN109522179B (en) 2022-05-27

Similar Documents

Publication Publication Date Title
CN109522179A (en) Monitoring method, device, processor and the server of operation condition of server
CN104102475B (en) The method, apparatus and system of distributed parallel task processing
CN111506849B (en) Page generation method and device
CN106682213B (en) Internet of things task customizing method and system based on Hadoop platform
CN110247811A (en) A kind of alarm method and relevant apparatus of internet of things equipment
Herrero et al. RT-MOVICAB-IDS: Addressing real-time intrusion detection
CN108875525A (en) Behavior prediction method, apparatus, system and storage medium
DE102018110138A1 (en) Workflow engine framework
CN109344170A (en) Stream data processing method, system, electronic equipment and readable storage medium storing program for executing
CN110321273A (en) A kind of business statistical method and device
CN112036577A (en) Method and device for application machine learning based on data form and electronic equipment
CN109918184A (en) Picture processing system, method and relevant apparatus and equipment
CN109639809A (en) A kind of method and device of service data request link monitoring
CN107908419A (en) A kind of AssetBundle update methods and device based on difference
CN107888437A (en) Cloud monitoring method and equipment
CN110110166A (en) Acquisition methods, system, equipment and the storage medium of Parts List
CN108762735A (en) Management method and device, storage medium, the terminal of workflow engine
CN110019337A (en) Determine methods, devices and systems efficient zoned in database
CN106992940A (en) Message processing method, device, system and terminal
Fauvel et al. A lightweight, efficient and explainable-by-design convolutional neural network for internet traffic classification
CN110188801A (en) Image-recognizing method, device, electronic equipment and storage medium
CN114048024A (en) Task deployment method, device, equipment, storage medium and product
CN111507466A (en) Data processing method and device, electronic equipment and readable medium
CN109213742A (en) Log collection method and device
CN107480189A (en) A kind of various dimensions real-time analyzer and method

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
GR01 Patent grant
GR01 Patent grant