CN107291587A - Computer applied algorithm monitoring method and device - Google Patents
Computer applied algorithm monitoring method and device Download PDFInfo
- Publication number
- CN107291587A CN107291587A CN201610221961.4A CN201610221961A CN107291587A CN 107291587 A CN107291587 A CN 107291587A CN 201610221961 A CN201610221961 A CN 201610221961A CN 107291587 A CN107291587 A CN 107291587A
- Authority
- CN
- China
- Prior art keywords
- information
- monitor code
- monitored
- mentioned
- monitor
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3051—Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
Abstract
This application discloses computer applied algorithm monitoring method and device.One embodiment of methods described includes:Obtain information to be monitored;Create the application programming interface of the information to be monitored;Based on the application programming interface, monitor code is implanted into the information to be monitored, monitor code implant procedure is generated;The monitor code implant procedure is run, monitoring data is generated.The embodiment realizes the demand of flexible configuration monitoring rules.
Description
Technical field
The application is related to field of computer technology, and in particular to computer applied algorithm technical field,
More particularly to computer applied algorithm monitoring method and device.
Background technology
With developing rapidly for computer networking technology and social informatization, enterprises it is soft or hard
Part equipment and outside network constitute a complexity and huge information system.In order to ensure answering
With the safety of system, it would be desirable to which the day-to-day operation of application system is monitored.
However, existing computer applied algorithm monitor mode usually requires to draw in application system
Enter SDK (Software Development Kit), and on the ground for needing to monitor
The purpose that Fang Shoudong implant monitors code is monitored the service data realized to application system,
The degree of coupling of the monitor code of this monitor mode and information to be monitored is high, it is impossible to which realization is flexibly matched somebody with somebody
Put the demand of monitoring rules.
The content of the invention
The purpose of the application is to propose a kind of improved computer applied algorithm monitoring method and dress
Put, to solve the technical problem that background section above is mentioned.
In a first aspect, this application provides a kind of computer applied algorithm monitoring method, the side
Method includes:Obtain information to be monitored;Create the application programming interface of the information to be monitored;
Based on the application programming interface, monitor code is implanted into the information to be monitored, it is raw
Into monitor code implant procedure;The monitor code implant procedure is run, monitoring data is generated.
In certain embodiments, described before information to be monitored is obtained, methods described also includes:
Start the information thread of Java Virtual Machine, gather the operation information of the Java Virtual Machine.
In certain embodiments, it is described that monitor code is implanted into the information to be monitored, generation
Monitor code implant procedure, including:Monitor code is implanted into using Java bytecode manipulation framework
In the information to be monitored, monitor code implant procedure is generated.
In certain embodiments, methods described also includes:For the monitor code, addition control
Make the controlling switch of the monitor code.
In certain embodiments, it is described that monitor code is implanted into the information to be monitored, generation
Monitor code implant procedure includes:The first monitor code block and second are added in information to be monitored
Monitor code block;And in the first monitor code block the record access time started, in institute
State the record access end time in the second monitor code block.
In certain embodiments, the operation monitor code implant procedure, generation monitoring number
According to, including:The access time started is recorded to the access day between the access end time
Will, collects and analyzes the access log, generates monitoring data.
Second aspect, this application provides a kind of computer applied algorithm supervising device, the dress
Put including:Acquiring unit, is configured to obtain information to be monitored;Creating unit, is configured to
Create the application programming interface of the information to be monitored;Unit is implanted into, is configured to be based on
The application programming interface, monitor code is implanted into the information to be monitored, generation prison
Control code implant procedure;Generation unit, is configured to run the monitor code implant procedure,
Generate monitoring data.
In certain embodiments, described device also includes:Collecting unit, is configured to start Java
The information thread of virtual machine, gathers the operation information of the Java Virtual Machine.
In certain embodiments, the implantation unit is further configured to:Utilize Java bytes
Monitor code is implanted into the information to be monitored by code manipulation framework, generation monitor code implantation journey
Sequence.
In certain embodiments, described device also includes:Adding device, is configured to be directed to institute
State monitor code, the controlling switch of the addition control monitor code.
In certain embodiments, the implantation unit includes:Add module, is configured to treating
The first monitor code block and the second monitor code block are added in monitoring information;Logging modle, configuration
For the record access time started in the first monitor code block, generation is monitored described second
The record access end time in code block.
In certain embodiments, the generation unit is further configured to:Record the access
Time started, to the access log between the access end time, collects and analyzes the access
Daily record, generates monitoring data.
Computer applied algorithm monitoring method and device that the application is provided, by getting
Information creating application programming interface to be monitored, will then based on application programming interface
Monitor code is implanted in information to be monitored, is finally run the program after monitor code implantation, is obtained
To monitoring data, so as to effectively make use of the Java for creating application programming interface to act on behalf of skill
Art, realizes the demand of flexible configuration monitoring rules.
Brief description of the drawings
Retouched by reading with reference to the detailed of being made to non-limiting example of being made of the following drawings
State, other features, objects and advantages will become more apparent upon:
Fig. 1 is that the application can apply to exemplary system architecture figure therein;
Fig. 2 is the stream of one embodiment of the computer applied algorithm monitoring method according to the application
Cheng Tu;
Fig. 3 is another embodiment of the computer applied algorithm monitoring method according to the application
Flow chart;
Fig. 4 is the knot of one embodiment of the computer applied algorithm supervising device according to the application
Structure schematic diagram;
Fig. 5 is adapted for the structure of the computer system of the server for realizing the embodiment of the present application
Schematic diagram.
Embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is appreciated that
, specific embodiment described herein is used only for explaining related invention, rather than to the hair
Bright restriction.It also should be noted that, illustrate only for the ease of description, in accompanying drawing with
About the related part of invention.
It should be noted that in the case where not conflicting, embodiment and embodiment in the application
In feature can be mutually combined.Describe this in detail below with reference to the accompanying drawings and in conjunction with the embodiments
Application.
Fig. 1, which is shown, can apply the computer applied algorithm monitoring method or computer of the application
The exemplary system architecture 100 of the embodiment of Application Monitoring device.
As shown in figure 1, system architecture 100 can include electronic equipment 101 and 102, network
103 and monitoring server 104.Network 103 is used in electronic equipment 101,102 and monitoring clothes
The medium of communication link is provided between business device 104.Network 103 can include various connection types,
Such as wired, wireless communication link or fiber optic cables etc..
Monitoring server 104 can be to provide the server of various services, such as to being set in electronics
The network address URL searched on standby 102 is monitored and to the structuralized query on electronic equipment 101
The background monitoring server that language SQL is tracked.Background monitoring server can run monitoring
Code implant procedure, and generate monitoring data.
It should be noted that the computer applied algorithm monitoring method that the embodiment of the present application is provided
Typically performed by monitoring server 104, correspondingly, computer applied algorithm supervising device is general
It is arranged in monitoring server 104.
It should be understood that the number of the electronic equipment, network and monitoring server in Fig. 1 is only
Schematically.According to needs are realized, can have any number of electronic equipment, network and prison
Control server.
With continued reference to Fig. 2, show according to the computer applied algorithm monitoring method of the application
The flow 200 of one embodiment.Described computer applied algorithm monitoring method, including it is following
Step:
Step 201, information to be monitored is obtained.
In the present embodiment, the electronic equipment of computer applied algorithm monitoring method operation thereon
(such as the monitoring server 104 shown in Fig. 1) can pass through wired connection mode or wireless
Connected mode obtains information to be monitored, wherein, above-mentioned information to be monitored can be URL (Uniform
Resource Locator, URL), can also be SQL (Structured Query
Language, SQL), can also be the method and performance of class (Class).
In the present embodiment, above-mentioned electronic equipment can start Java agent skill groups, Java first
The Starting mode of agent skill group can include:In Java Virtual Machine (JVM, Java Virtual
Start when Machine) starting and start in Java Virtual Machine running.Wherein, Java
Virtual machine is the abstract machine for running all java applets, and it is shielded and specific operating system
The related information of platform so that java applet need to only generate the byte run on a java virtual machine
Code, it is possible to run without modification in kinds of platform.
In some optional implementations of the present embodiment, before information to be monitored is obtained,
Above-mentioned electronic equipment can start the information of Java Virtual Machine while Java agent skill groups are started
Thread is collected, and gathers the operation information of above-mentioned Java Virtual Machine.Can be with Java Virtual Machine
Run multiple threads simultaneously, each thread can include multiple attributes, such as mark, title and
Priority etc., above-mentioned electronic equipment can by these Attribute Recognition threads, observation thread state,
Control thread priority etc..Above-mentioned operation information can include but is not limited to:Above-mentioned Java is virtual
The internal storage information of machine, garbage reclamation state, input/output (I/O, Input/Output)
The state of port, central processing unit (CPU, Central Processing Unit) information, network
Status information and bandwidth information.
Step 202, the application programming interface of information to be monitored is created.
In the present embodiment, above-mentioned electronic equipment can create above-mentioned treat using Java agent skill groups
The application programming interface of monitoring information.Wherein, above-mentioned application programming interface (API,
Application Programming Interface) application program can be provided it is based on developer
Certain software or hardware are able to access the ability of one group of routine, and need not access source code, or understand
The details of internal work mechanism.
In the present embodiment, it is above-mentioned to answer when above-mentioned information to be monitored is the method and performance of class
Can be class file converter (Class File Transformer) interface with Program Interfaces.
Above-mentioned electronic equipment can call above-mentioned class file when loading the class that newly increase or reloading class
Switching device interface.
Step 203, based on application programming interface, monitor code is implanted into information to be monitored
In, generate monitor code implant procedure.
In the present embodiment, based on the application programming created above by Java agent skill groups
Monitor code can be implanted to by interface, above-mentioned electronic equipment using Java bytecode modification technology
In above-mentioned information to be monitored, so as to generate monitor code implant procedure.
In the present embodiment, when above-mentioned Java agent skill groups are in Java Virtual Machine running
During startup, above-mentioned electronic equipment can be virtual for before the startup of Java agent skill groups, Java
Information to be monitored on machine adds above-mentioned application programming interface, and monitor code is implanted to
In above-mentioned information to be monitored, monitor code implant procedure is generated.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can be utilized
Monitor code is implanted to above-mentioned information to be monitored by Java bytecode manipulation framework (ASM technologies)
In.Wherein, Java bytecode manipulation framework can be used to dynamic generation class or strengthen existing class
Function, the binary file of class can be carried out to encode or change again, and can basis
Business needs the addition code in the information to be monitored for needing to change of selectivity or changes above-mentioned treat
Monitoring information changes the purpose of class behavior so as to reach.As an example, above-mentioned electronic equipment can be with
Using above-mentioned Java bytecode manipulation framework read in class file class name, method, attribute with
And the information such as Java bytecode, the class behavior of above-mentioned class file can be changed afterwards, can be with
Analyze the category information of above-mentioned class file.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can be directed to upper
State monitor code addition controlling switch.As an example, information to be monitored, which can be mess card, supplements letter with money
Breath, if the dining room only Tuesday and Friday provide the mess card service of supplementing with money, above-mentioned electronic equipment exists
When being monitored to above-mentioned information to be monitored, above-mentioned controlling switch can be opened in Tuesday and Friday,
So as to being monitored to the mess card service of supplementing with money, and on Monday, Wednesday, Thursday and weekend close
State controlling switch.
In the present embodiment, for class method and performance monitoring, above-mentioned electronic equipment can be with
The ClassVisitor interface and MethodVisitor interfaces for manipulating framework using Java bytecode are dynamic
Monitor code is implanted into above-mentioned information to be monitored by state, wherein, ClassVisitor interfaces can be with
Monitor code is implanted to when reading the bytecode of class in above-mentioned class bytecode to be monitored;
Monitor code can be implanted to above-mentioned treat by MethodVisitor interfaces when reading the method for class
In the method for the class of monitoring.
Step 204, monitor code implant procedure is run, monitoring data is generated.
In the present embodiment, the monitor code generated in above-mentioned electronic equipment operating procedure 203 is planted
Enter program, and generate monitoring data.Wherein, above-mentioned monitoring data can include but is not limited to:
Time started, end time, run time and number of run, wherein, the time started can be
The access time started recorded in first monitor code block, the end time can be the second monitoring generation
The access end time recorded in code block, run time can be from the above-mentioned access time started to
Program runtime between the above-mentioned access end time, number of run can be above-mentioned to be monitored
The number of times of information operation, information operation to be monitored can also be once the operation of the second monitor code block
Once.
The method that above-described embodiment of the application is provided by monitor code by being implanted to letter to be monitored
In breath, it is monitored so as to treat monitoring information, and obtains monitoring data, is realized and flexibly match somebody with somebody
Put the demand of monitoring rules.
With further reference to Fig. 3, it illustrates another reality of computer applied algorithm monitoring method
Apply the flow 300 of example.The flow 300 of the computer applied algorithm monitoring method, including following step
Suddenly:
Step 301, information to be monitored is obtained.
In the present embodiment, the electronic equipment of computer applied algorithm monitoring method operation thereon
Information to be monitored can be obtained by wired connection mode or radio connection, wherein, on
Stating information to be monitored can be URL, can also be SQL, can also be the method and performance of class.
Step 302, the application programming interface of information to be monitored is created.
In the present embodiment, above-mentioned electronic equipment can create above-mentioned treat by Java agent skill groups
The application programming interface of monitoring information, when above-mentioned information to be monitored is the method and performance of class
When, above-mentioned application programming interface can be class file switching device interface.
Step 303, based on application programming interface, the first prison is added in information to be monitored
Control code block and the second monitor code block.
In the present embodiment, based on the application programming created above by Java agent skill groups
Interface, above-mentioned electronic equipment can add the first monitor code block (for example in information to be monitored
Try code blocks) and the second monitor code block (such as finally code blocks).
Step 304, the record access time started in the first monitor code block, in the second monitoring
The record access end time in code block.
In the present embodiment, above-mentioned electronic equipment can record monitoring in the first monitor code block
Between at the beginning of the above-mentioned information (operation of monitor code implant procedure) to be monitored of code access, and
The end time that monitor code accesses above-mentioned information to be monitored is recorded in the second monitor code block.
Step 305, the record access time started, to the access log accessed between the end time, receives
Collect and analyze access log, generate monitoring data.
In the present embodiment, based on institute in the first monitor code block added in information to be monitored
Between the monitor code of record is accessed at the beginning of above-mentioned information to be monitored, and in information to be monitored
Monitor code recorded in second monitor code block of middle addition accesses above-mentioned information to be monitored
End time, above-mentioned electronic equipment can be recorded from the above-mentioned access time started to above-mentioned access knot
Access log between the beam time, it is possible to collect above-mentioned access log using log concentrator,
Above-mentioned access log can be analyzed afterwards, can finally generate monitoring data.Wherein,
Monitoring data can include but is not limited to:Time started, end time, run time and operation
Number of times.
From figure 3, it can be seen that compared with the corresponding embodiments of Fig. 2, the meter in the present embodiment
The flow 300 of calculation machine method for monitoring application program is highlighted is implanted into information to be monitored by monitor code
The step of and operation monitor code implant procedure the step of, it is achieved thereby that configuration monitoring rule
Flexibility.
With further reference to Fig. 4, as the realization to method shown in above-mentioned each figure, the application is provided
A kind of one embodiment of computer applied algorithm supervising device, the device embodiment and Fig. 2
Shown embodiment of the method is corresponding, and the device specifically can apply in various electronic equipments.
As shown in figure 4, the computer applied algorithm supervising device 400 described in the present embodiment includes:
Acquiring unit 401, creating unit 402, implantation unit 403 and generation unit 404.Wherein,
Acquiring unit 401 is configured to obtain information to be monitored;Creating unit 402 is configured to create
The application programming interface of above-mentioned information to be monitored;Implantation unit 403 is configured to based on upper
Application programming interface is stated, monitor code is implanted into above-mentioned information to be monitored, generation monitoring
Code implant procedure;And generation unit 404 is configured to run above-mentioned monitor code implant procedure,
Generate monitoring data.
In the present embodiment, the acquiring unit 401 of computer applied algorithm supervising device 400 can
To obtain information to be monitored by wired connection mode or radio connection, wherein, it is above-mentioned
Information to be monitored can be URL, can also be SQL, can also be the method and performance of class.
In the present embodiment, the information to be monitored obtained based on acquiring unit 401, above-mentioned establishment
Unit 402 can create the application programming of above-mentioned information to be monitored by Java agent skill groups
Interface.When above-mentioned information to be monitored is the method and performance of class, above-mentioned application programming connects
Mouth can be class file switching device interface.
In the present embodiment, created based on above-mentioned creating unit 402 by Java agent skill groups
Application programming interface, the implantation unit 403 of computer applied algorithm supervising device 400 can
So that monitor code is implanted in above-mentioned information to be monitored, so as to generate monitor code implant procedure.
In the present embodiment, above-mentioned generation unit 404 runs what above-mentioned implantation unit 403 was generated
Monitor code implant procedure, and generate monitoring data.Wherein, above-mentioned monitoring data can include
But it is not limited to:Time started, end time, run time and number of run.
In some optional implementations of the present embodiment, said apparatus also includes:Collection is single
First (not shown), above-mentioned collecting unit can be opened while Java agent skill groups are started
The information thread of dynamic Java Virtual Machine, and gather the operation information of above-mentioned Java Virtual Machine,
Wherein, above-mentioned operation information can include but is not limited to:The storage inside of above-mentioned Java Virtual Machine
Device information, garbage reclamation state, the state of input/output end port, the information of central processing unit,
Network state information and bandwidth information.
In some optional implementations of the present embodiment, above-mentioned implantation unit 403 can profit
Monitor code is implanted into the letter to be monitored with Java bytecode manipulation framework (ASM technologies)
In breath, monitor code implant procedure is generated.Wherein, Java bytecode manipulation framework can by with
Carry out the function of dynamic generation class or the existing class of enhancing, the binary file of class can be carried out again
Coding is changed, and the letter to be monitored changed in needs of selectivity can be needed according to business
Code or the above-mentioned information to be monitored of modification is added in breath to reach the purpose of change class behavior.
In some optional implementations of the present embodiment, said apparatus also includes:Addition is single
First (not shown), above-mentioned adding device can add controlling switch for above-mentioned monitor code.
In some optional implementations of the present embodiment, above-mentioned implantation unit 403 includes:
Add module (not shown) and logging modle (not shown).Based on above by Java
The application programming interface that agent skill group is created, above-mentioned add module can utilize Java bytes
Code manipulation framework adds the first monitor code block and the second monitor code block in information to be monitored;
Above-mentioned logging modle can record monitor code in the first monitor code block and access above-mentioned to be monitored
Between at the beginning of information, and in the second monitor code block record monitor code and access and above-mentioned wait to supervise
Control the end time of information.
In some optional implementations of the present embodiment, above-mentioned generation unit 404 can be remembered
Record is from the above-mentioned access time started to the access log the above-mentioned access end time, it is possible to
Above-mentioned access log is collected using log concentrator, above-mentioned access log can be divided afterwards
Analysis, can finally generate monitoring data.Wherein, monitoring data can include but is not limited to:Open
Time beginning, end time, run time and number of run.
Below with reference to Fig. 5, it illustrates suitable for for realizing the monitoring service of the embodiment of the present application
The structural representation of the computer system 500 of device.
As shown in figure 5, computer system 500 includes CPU (CPU) 501, its
Can according to the program being stored in read-only storage (ROM) 502 or from storage part 506
The program that is loaded into random access storage device (RAM) 503 and perform various appropriate actions
And processing.In RAM 503, the system that is also stored with 500 operates required various program sums
According to.CPU 501, ROM 502 and RAM 503 are connected with each other by bus 504.Input
/ output (I/O) interface 505 is also connected to bus 504.
I/O interfaces 505 are connected to lower component:Storage part 506 including hard disk etc.;And
The communications portion 507 of NIC including LAN card, modem etc..Communication
Part 507 performs communication process via the network of such as internet.Driver 508 is also according to need
It is connected to I/O interfaces 505.Detachable media 509, such as disk, CD, magneto-optic disk,
Semiconductor memory etc., is arranged on driver 508, in order to read from it as needed
The computer program gone out is mounted into storage part 506 as needed.
Especially, in accordance with an embodiment of the present disclosure, the process described above with reference to flow chart can be with
It is implemented as computer software programs.For example, embodiment of the disclosure includes a kind of computer journey
Sequence product, it includes being tangibly embodied in the computer program on machine readable media, the meter
Calculation machine program bag, which contains, is used for the program code of the method shown in execution flow chart.Implement such
In example, the computer program can be downloaded and installed by communications portion 507 from network,
And/or be mounted from detachable media 509.In the computer program by CPU
(CPU) during 501 execution, the above-mentioned functions limited in the present processes are performed.
Flow chart and block diagram in accompanying drawing, it is illustrated that according to the system of the various embodiments of the application,
Architectural framework in the cards, function and the operation of method and computer program product.This point
On, each square frame in flow chart or block diagram can represent a module, program segment or code
A part, the part of the module, program segment or code is used for comprising one or more
The executable instruction of logic function as defined in realizing.It should also be noted that being used as replacement at some
In realization, the function of being marked in square frame can also be with different from the order marked in accompanying drawing hair
It is raw.For example, two square frames succeedingly represented can essentially be performed substantially in parallel, they
Sometimes it can also perform in the opposite order, this is depending on involved function.It is also noted that
It is, each square frame in block diagram and/or flow chart and the square frame in block diagram and/or flow chart
Combination, can be realized with the special hardware based system of defined function or operation is performed,
Or can be realized with the combination of specialized hardware and computer instruction.
Being described in unit involved in the embodiment of the present application can be real by way of software
It is existing, it can also be realized by way of hardware.Described unit can also be arranged on processing
In device, for example, can be described as:A kind of processor includes acquiring unit, creating unit, plant
Enter unit and generation unit.Wherein, the title of these units under certain conditions constitute pair
The restriction of the unit in itself.For example, acquiring unit is also described as, " information to be monitored is obtained
Take unit ".
As on the other hand, present invention also provides a kind of nonvolatile computer storage media,
The nonvolatile computer storage media can be in above-described embodiment included in said apparatus
Nonvolatile computer storage media;Can also be individualism, without non-in supplying terminal
Volatile computer storage medium.Above-mentioned nonvolatile computer storage media be stored with one or
The multiple programs of person, when said one or multiple programs are performed by an equipment so that above-mentioned
Equipment:Obtain information to be monitored;Create the application programming interface of the information to be monitored;
Based on the application programming interface, monitor code is implanted into the information to be monitored, it is raw
Into monitor code implant procedure;The monitor code implant procedure is run, monitoring data is generated.
Above description is only the preferred embodiment of the application and saying to institute's application technology principle
It is bright.It will be appreciated by those skilled in the art that invention scope involved in the application, is not limited
In the technical scheme of the particular combination of above-mentioned technical characteristic, do not departed from while should cover yet
In the case of the inventive concept, it is combined by above-mentioned technical characteristic or its equivalent feature
Formed by other technical schemes.Such as features described above and (but not limited to) disclosed herein
Technical characteristic with similar functions carries out technical scheme formed by replacement mutually.
Claims (12)
1. a kind of computer applied algorithm monitoring method, it is characterised in that methods described includes:
Obtain information to be monitored;
Create the application programming interface of the information to be monitored;
Based on the application programming interface, monitor code is implanted into the information to be monitored,
Generate monitor code implant procedure;
The monitor code implant procedure is run, monitoring data is generated.
2. according to the method described in claim 1, it is characterised in that described to obtain to be monitored
Before information, methods described also includes:
Start the information thread of Java Virtual Machine, gather the operation letter of the Java Virtual Machine
Breath.
3. according to the method described in claim 1, it is characterised in that described to plant monitor code
Enter in the information to be monitored, generate monitor code implant procedure, including:
Monitor code is implanted into the information to be monitored using Java bytecode manipulation framework, it is raw
Into monitor code implant procedure.
4. the method according to one of claim 1-3, it is characterised in that methods described is also
Including:
For the monitor code, the controlling switch of the addition control monitor code.
5. according to the method described in claim 1, it is characterised in that described to plant monitor code
Enter in the information to be monitored, generation monitor code implant procedure includes:
The first monitor code block and the second monitor code block are added in information to be monitored;And
The record access time started in the first monitor code block, generation is monitored described second
The record access end time in code block.
6. method according to claim 5, it is characterised in that the operation monitoring
Code implant procedure, generates monitoring data, including:
The access time started is recorded to the access log between the access end time, is received
Collect and analyze the access log, generate monitoring data.
7. a kind of computer applied algorithm supervising device, it is characterised in that described device includes:
Acquiring unit, is configured to obtain information to be monitored;
Creating unit, is configured to create the application programming interface of the information to be monitored;
Unit is implanted into, is configured to be based on the application programming interface, monitor code is planted
Enter in the information to be monitored, generate monitor code implant procedure;
Generation unit, is configured to run the monitor code implant procedure, generates monitoring data.
8. device according to claim 7, it is characterised in that described device also includes:
Collecting unit, is configured to start the information thread of Java Virtual Machine, and collection is described
The operation information of Java Virtual Machine.
9. device according to claim 7, it is characterised in that the implantation unit enters one
Step is configured to:
Monitor code is implanted into the information to be monitored using Java bytecode manipulation framework, it is raw
Into monitor code implant procedure.
10. the device according to one of claim 7-9, it is characterised in that described device
Also include:
Adding device, is configured to be directed to the monitor code, the addition control monitor code
Controlling switch.
11. device according to claim 7, it is characterised in that the implantation unit bag
Include:
Add module, is configured to add the first monitor code block and second in information to be monitored
Monitor code block;
Logging modle, is configured to the record access time started in the first monitor code block,
The record access end time in the second monitor code block.
12. device according to claim 11, it is characterised in that the generation unit is entered
One step is configured to:
The access time started is recorded to the access log between the access end time, is received
Collect and analyze the access log, generate monitoring data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610221961.4A CN107291587A (en) | 2016-04-11 | 2016-04-11 | Computer applied algorithm monitoring method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610221961.4A CN107291587A (en) | 2016-04-11 | 2016-04-11 | Computer applied algorithm monitoring method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107291587A true CN107291587A (en) | 2017-10-24 |
Family
ID=60095829
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610221961.4A Pending CN107291587A (en) | 2016-04-11 | 2016-04-11 | Computer applied algorithm monitoring method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107291587A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108228461A (en) * | 2018-01-08 | 2018-06-29 | 平安科技(深圳)有限公司 | A kind of daily record generation method, device, computer equipment and storage medium |
CN108459940A (en) * | 2018-01-16 | 2018-08-28 | 北京奇艺世纪科技有限公司 | Application performance manages configuration information amending method, device and the electronic equipment of system |
CN108920253A (en) * | 2018-06-20 | 2018-11-30 | 成都虫洞奇迹科技有限公司 | A kind of the virtual machine monitoring system and monitoring method of no agency |
CN110874300A (en) * | 2018-08-29 | 2020-03-10 | 北京京东尚科信息技术有限公司 | Method and device for monitoring equipment |
CN111563015A (en) * | 2020-04-15 | 2020-08-21 | 成都欧珀通信科技有限公司 | Data monitoring method and device, computer readable medium and terminal equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102122263A (en) * | 2011-03-23 | 2011-07-13 | 成都勤智数码科技有限公司 | Monitoring method and device of JAVA application system in running |
CN102831043A (en) * | 2011-06-17 | 2012-12-19 | 阿里巴巴集团控股有限公司 | Monitoring method and device for application program |
CN104462943A (en) * | 2014-11-21 | 2015-03-25 | 用友软件股份有限公司 | Non-intrusive performance monitoring device and method for service system |
-
2016
- 2016-04-11 CN CN201610221961.4A patent/CN107291587A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102122263A (en) * | 2011-03-23 | 2011-07-13 | 成都勤智数码科技有限公司 | Monitoring method and device of JAVA application system in running |
CN102831043A (en) * | 2011-06-17 | 2012-12-19 | 阿里巴巴集团控股有限公司 | Monitoring method and device for application program |
CN104462943A (en) * | 2014-11-21 | 2015-03-25 | 用友软件股份有限公司 | Non-intrusive performance monitoring device and method for service system |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108228461A (en) * | 2018-01-08 | 2018-06-29 | 平安科技(深圳)有限公司 | A kind of daily record generation method, device, computer equipment and storage medium |
CN108459940A (en) * | 2018-01-16 | 2018-08-28 | 北京奇艺世纪科技有限公司 | Application performance manages configuration information amending method, device and the electronic equipment of system |
CN108459940B (en) * | 2018-01-16 | 2021-06-18 | 北京奇艺世纪科技有限公司 | Configuration information modification method and device of application performance management system and electronic equipment |
CN108920253A (en) * | 2018-06-20 | 2018-11-30 | 成都虫洞奇迹科技有限公司 | A kind of the virtual machine monitoring system and monitoring method of no agency |
CN110874300A (en) * | 2018-08-29 | 2020-03-10 | 北京京东尚科信息技术有限公司 | Method and device for monitoring equipment |
CN111563015A (en) * | 2020-04-15 | 2020-08-21 | 成都欧珀通信科技有限公司 | Data monitoring method and device, computer readable medium and terminal equipment |
CN111563015B (en) * | 2020-04-15 | 2023-04-21 | 成都欧珀通信科技有限公司 | Data monitoring method and device, computer readable medium and terminal equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11740876B2 (en) | Method and system for arbitrary-granularity execution clone detection | |
CN107291587A (en) | Computer applied algorithm monitoring method and device | |
Farahbod et al. | Specification and validation of the business process execution language for web services | |
US7721262B2 (en) | System, methods and apparatus for markup language debugging | |
CN109344170B (en) | Stream data processing method, system, electronic device and readable storage medium | |
DE112019001121B4 (en) | METHOD IMPLEMENTED ON A COMPUTER TO IDENTIFY MALWARE AND THE SYSTEM THEREOF | |
CN108694238A (en) | Business data processing method, device based on block chain and storage medium | |
US20220078072A1 (en) | Closed-loop automation of a managed network | |
CN104462943B (en) | Non-intrusion type performance monitoring apparatus and method in operation system | |
CN108170538A (en) | A kind of information processing method, device and electronic equipment | |
DE112018004660T5 (en) | USE COMMENTS TO PROVIDE OPTIMIZATION | |
CN108959496A (en) | Integration across database access method and abstract data access method based on dynamic proxy | |
CN107045475A (en) | Method of testing and device | |
CN110598135A (en) | Network request processing method and device, computer readable medium and electronic equipment | |
CN109144834A (en) | Acquisition method and device, the Android system and terminal device of user behavior data | |
CN111367768A (en) | Method and device for monitoring function response time of program | |
DE69911104T2 (en) | Static binding of dynamically sent calls in the presence of dynamic linkage and charging | |
US11556839B1 (en) | Auditing system for machine learning decision system | |
US20060168566A1 (en) | Pattern matching documentation | |
Buy et al. | A framework for testing object-oriented components | |
Schernhammer et al. | VMTL–a modular termination laboratory | |
Simiński et al. | Goal-driven inference for web knowledge based system | |
CN107766497A (en) | The method and terminal of Data Collection based on container | |
Chandramouli et al. | Model-driven analytics in SDN networks | |
Caucal | Monadic theory of term rewritings |
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 |
Application publication date: 20171024 |
|
RJ01 | Rejection of invention patent application after publication |