CN106201819A - The system resource occupancy monitoring method and apparatus of application container engine - Google Patents
The system resource occupancy monitoring method and apparatus of application container engine Download PDFInfo
- Publication number
- CN106201819A CN106201819A CN201610489192.6A CN201610489192A CN106201819A CN 106201819 A CN106201819 A CN 106201819A CN 201610489192 A CN201610489192 A CN 201610489192A CN 106201819 A CN106201819 A CN 106201819A
- Authority
- CN
- China
- Prior art keywords
- cpu
- system resource
- application container
- container engine
- time
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3409—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
- G06F11/3433—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment for load management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the present invention provides the system resource occupancy monitoring method and apparatus of a kind of application container engine, relating to system resource and take monitoring field, described system resource occupancy monitoring method includes: the CPU holding time of application container engine described in multi collect and/or internal memory usage amount;CPU holding time according to described application container engine obtains the CPU usage of described application container engine;And use the CPU usage of described application container engine and/or internal memory usage amount to characterize the system resource occupancy of described application container engine.So it is capable of the real-time monitoring of the resource occupation amount to application container engine, and then the dilatation of the production environment of product, capacity reducing problem can be carried out rationally control.
Description
Technical field
The present invention relates to system resource and take monitoring field, in particular it relates to the system resource of a kind of application container engine
Occupancy monitoring method and apparatus.
Background technology
Application container engine makes developer can be bundled to wherein, then be published to by their application and dependence bag
On machine.Such as, Docker is an application container engine increased income, and their application and dependence bag can be beaten by developer
Wrapping in Docker, be then distributed on any popular Linux equipment, it can also realize virtualization.Docker makes
Obtain developer to be easy and fast to build the containerization application program that can run at any time, enormously simplify the pipe of the task of application program
Reason and deployment.
Such as, the various rear end rest-api service provided for mobile phone, TV, the terminal such as vehicle-mounted, its production environment
To use Docker virtual machine to dispose, but the concrete system consumption of rest-api service cannot be carried out Real-time Feedback at present.
For example, if web-app is directly deployed on a linux server, then its system resources consumption
The collection of (such as CPU, MEM) is easily, this is because Linux system supports Real-time Collection.But present inventor
Find during realizing the present invention, owing to Docker virtual machine is that the secondary carried out based on linux server is virtual, its
Body does not support the collection of system resource resource occupation amount, thus cannot pay close attention to Docker virtual machine and on whole server be
System consumes.
It is to say, application container engine (such as Docker) although can effectively utilize server resource (multinuclear,
CPU, MEM), but the system resource occupancy of server cannot be obtained by it, and then cannot be to the expansion of the production environment of product
Hold, capacity reducing problem is carried out rationally control.
Summary of the invention
The purpose of the embodiment of the present invention is to provide system resource occupancy monitoring method and the dress of a kind of application container engine
Putting, the system resource occupancy monitoring method and apparatus of this application container engine can be with the system resource occupancy of application container
Monitor in real time, and then the dilatation of the production environment of product, capacity reducing problem can be carried out rationally control.
To achieve these goals, the embodiment of the present invention provides the system resource occupancy monitoring of a kind of application container engine
Method, described system resource occupancy monitoring method include: the CPU holding time of application container engine described in multi collect and/
Or internal memory usage amount;CPU holding time according to described application container engine obtains the CPU of described application container engine and takies
Rate;And use the CPU usage of described application container engine and/or internal memory usage amount to characterize described application container engine
System resource occupancy.
Alternatively, described CPU holding time includes: kernel state holding time and User space holding time.
Alternatively, the CPU usage CPU of described application container engine is calculated according to below equationoc: CPUoc=(cpu_
Sys+cpu_user-cpu_pre)/(time_now-time_pre), wherein, cpu_sys is described kernel state holding time,
Cpu_user is described User space holding time, and cpu_pre is that the last described kernel state holding time gathered is with last
Sum of described User space holding time gathered, time_now by from gather for the first time start to this collection experienced time
Between, time_pre starts to the last time to gather the time experienced by gathering from described first time.
Alternatively, described multi collect is periodic.
Alternatively, described system resource occupancy monitoring method also includes: at the CPU usage of described application container engine
Exceed CPU usage threshold value and/or in the case of described internal memory usage amount exceedes internal memory usage amount threshold value, determine that described application is held
The system resource occupancy of device engine transfinites.
Alternatively, described system resource occupancy monitoring method also includes: by described CPU usage and/or described internal memory
Usage amount carries out front end displaying and renders.
Alternatively, described application container engine is Docker.
Correspondingly, the embodiment of the present invention also provides for the system resource occupancy supervising device of a kind of application container engine, institute
State system resource occupancy supervising device to include: data acquisition module, account for for the CPU of application container engine described in multi collect
By time and/or internal memory usage amount;And data processing module, it is used for: according to the CPU holding time of described application container engine
Obtain the CPU usage of application container engine;And use CPU usage and/or the internal memory usage amount of described application container engine
Characterize the system resource occupancy of described application container engine.
Alternatively, described CPU holding time includes: kernel state holding time and User space holding time.
Alternatively, described data processing module calculates the CPU usage of described application container engine according to below equation
CPUoc: CPUoc=(cpu_sys+cpu_user-cpu_pre)/(time_now-time_pre), wherein, cpu_sys is described
Kernel state holding time, cpu_user is described User space holding time, and cpu_pre is that the last described kernel state gathered accounts for
With time and the last described User space holding time gathered and, time_now is for starting to this to adopt from collection for the first time
The time that collection is experienced, time_pre starts to the last time to gather the time experienced by gathering from described first time.
Alternatively, described multi collect is periodic.
Alternatively, described data processing module is additionally operable to: the CPU usage at described application container engine accounts for more than CPU
In the case of exceeding internal memory usage amount threshold value by rate threshold value and/or described internal memory usage amount, determine described application container engine
System resource occupancy transfinites.
Alternatively, described system resource occupancy supervising device also includes front end rendering module: for being taken by described CPU
Rate and/or described internal memory usage amount carry out front end displaying and render.
Alternatively, described application container engine is Docker.
By technique scheme, obtain described answering according to the CPU holding time of application container engine described in multi collect
With the CPU usage of container engine, and use the internal memory usage amount of CPU usage and/or multi collect to characterize described application
The system resource occupancy of container engine.So it is capable of the real-time monitoring of the resource occupation amount to application container engine, enters
And the dilatation of the production environment of product, capacity reducing problem can be carried out rationally control.
Further feature and the advantage of the embodiment of the present invention will be described in detail in detailed description of the invention part subsequently.
Accompanying drawing explanation
Accompanying drawing is used to provide a further understanding of the present invention, and constitutes the part of description, with following tool
Body embodiment is used for explaining the present invention together, but is not intended that limitation of the present invention.In the accompanying drawings:
Fig. 1 is the stream of a kind of system resource occupancy monitoring method providing application container engine according to embodiments of the present invention
Cheng Tu;
Fig. 2 is the curve chart of the CPU usage of the application container engine according to one embodiment of the present invention offer;
Fig. 3 is the curve chart of the internal memory usage amount of the application container engine according to one embodiment of the present invention offer;
Fig. 4 is the flow process of the system resource occupancy monitoring method of the Docker according to one embodiment of the present invention offer
Figure;
Fig. 5 is the structure of the system resource occupancy supervising device of the application container engine provided according to embodiments of the present invention
Schematic diagram;
Fig. 6 is the structure of the system resource occupancy supervising device of the Docker according to one embodiment of the present invention offer
Schematic diagram;And
Fig. 7 is the system resource occupancy monitoring dress for realizing application container engine provided according to embodiments of the present invention
The structural representation of the computer system put.
Description of reference numerals
51 data acquisition module 52 data processing modules
53 data base 54 front end rendering modules
60 Docker 700 computer systems
701 central processing module 702 read only memory
703 random access storage device 704 buses
705 input/output interface 706 importations
707 output parts 708 store part
709 communications portion 710 drivers
711 detachable medias
Detailed description of the invention
Below in conjunction with accompanying drawing, the detailed description of the invention of the present invention is described in detail.It should be appreciated that this place is retouched
The detailed description of the invention stated is merely to illustrate and explains the present invention, is not limited to the present invention.
Embodiment one
Fig. 1 is the stream of a kind of system resource occupancy monitoring method providing application container engine according to embodiments of the present invention
Cheng Tu.
As it is shown in figure 1, the system resource occupancy monitoring method of the application container engine of embodiment of the present invention offer is permissible
Including: in step 11 place, the CPU holding time of application container engine described in multi collect and/or internal memory usage amount.
Such as, time-interval control is all that time-slotting uses to CPU, and such as A process takies 10ms, then
B process takies 30ms, then idle 60ms, say, that within the time of 100ms, the CPU holding time of A process is 10ms, B
The CPU holding time of process is 30ms.Same, the CPU holding time for application container engine can also be for one
Fix time the CPU holding time of interior application container engine.For the internal memory usage amount of application container engine, can answer by gathering
Obtain by the internal memory usage amount of the application program disposed in container engine.
In step 12 place, obtain the CPU of described application container engine according to the CPU holding time of described application container engine
Occupancy.
In step 13 place, the CPU usage of described application container engine and/or internal memory usage amount is used to characterize described answering
With the system resource occupancy of container engine.
Wherein, CPU usage and the internal memory usage amount thereof of application container engine all can reflect that application container engine is to being
System resource consumption because can by any one in the two or the two combine and characterize described application container engine
System resource occupancy.
The said system resource occupation amount monitoring method provided by the present invention is capable of the money to application container engine
The real-time monitoring of source occupancy, and then the dilatation of the production environment of product, capacity reducing problem can be carried out rationally control.
Embodiment two
Described CPU holding time may include that kernel state holding time and User space holding time, therefore, in this enforcement
Can be with the kernel state holding time of application container engine described in multi collect and User space holding time and/or internal memory in example two
Usage amount.
It is possible to further calculate the CPU usage CPU of described application container engine according to below equationoc: CPUoc=
(cpu_sys+cpu_user-cpu_pre)/(time_now-time_pre), wherein, cpu_sys is that described kernel state is when taking
Between, cpu_user is described User space holding time, and cpu_pre is the last described kernel state holding time and upper gathered
The sum of the described User space holding time of secondary collection, time_now by from for the first time gather start to this to gather experienced time
Between, time_pre starts to the last time to gather the time experienced by gathering from described first time.
Gathered in the time t gathered to this it is to say, calculate from last time, the CPU holding time of application container engine,
Then gathered to the time t that this gathers divided by from last time with CPU holding time, thus simply and quickly drew application container
The CPU usage of engine.
Wherein, described multi collect can be periodic, and such as collection period is but is not limited to 10min, certain ability
Field technique personnel can also use and gather aperiodically.
It addition, described system resource occupancy monitoring method can also include: take at the CPU of described application container engine
Rate exceedes CPU usage threshold value and/or in the case of described internal memory usage amount exceedes internal memory usage amount threshold value, determines described application
The system resource occupancy of container engine transfinites.Judging thus by CPU usage threshold value and/or internal memory usage amount threshold value should
Whether transfinite with the system resource occupancy of container engine, with can the dilatation of production environment, capacity reducing problem to product in time
Carry out rationally control, it is to avoid cause system to run slowly, reduce the experience sense of user.
And, in order to present the system resource occupancy of application container engine intuitively, described system resource takies
Amount monitoring method can also include: described CPU usage and/or described internal memory usage amount carry out front end displaying and renders.Such as,
Can with but be not limited to the form of curve or block diagram and render.
Furthermore it is also possible to CPU holding time and/or the internal memory usage amount of the application container engine collected are stored to number
According in storehouse, such as Mysql, CPU holding time and/or internal memory usage amount for collecting every time process, can be front
End is shown and renders application container engine CPU usage on time dimension and/or internal memory usage amount, such as, can support
Displaying in 1-3 days time.
Such as, Fig. 2 and Fig. 3 respectively illustrates multiple application container engine CPU usage on time dimension and internal memory
The curve chart of usage amount, wherein application program newtv is deployed on the plurality of application container engine, i.e. Fig. 2 and Fig. 3 is actually
Show CPU usage and the curve chart of internal memory usage amount of application program newtv.Straight line in two of which figure represents respectively
The CPU usage threshold value arranged and internal memory usage amount threshold value.It is of course understood that can also draw for different application container
Hold up and different CPU usage threshold values and different internal memory usage amount threshold values are set.
The present invention is described in detail by embodiment three, it is to be noted however that the present invention is not below with reference to Fig. 4
It is limited to this.
Embodiment three
As shown in Figure 4, in step 41 place, periodically gather CPU holding time and the internal memory usage amount of Docker;
In step 42 place, CPU holding time and the internal memory usage amount of the Docker gathered are stored to data base;
In step 43 place, from data base, read the CPU holding time of the Docker that adjacent two cycles gather, adopt for twice
The CPU holding time of Docker in absolute value i.e. this cycle time of the difference of the CPU holding time of the Docker of collection, using should
In cycle time, the CPU holding time of Docker is divided by cycle time, draws the CPU usage in this cycle, so can count
Calculate the CPU usage in each cycle;
In step 44 place, according to user's request, CPU usage and the internal memory usage amount of Docker are carried out front end and show wash with watercolours
Dye.Such as, when user wants the system resource occupancy checking application program newtv, application program newtv can be chosen,
Now may require that user selects to be deployed with all Docker of newtv or selects wherein one or more Docker, according to
The selection at family, can carry out the CPU usage of selected Docker and internal memory usage amount front end displaying and render.It addition, client
The CPU usage of the Docker of which section period and the internal memory usage amount checked can be wanted as required in client input, as
Input 8: 30 on the 30th March 11 o'clock on the 29th 20 minutes to 2016 March in 2016, can show with curve form in client
The CPU usage of Docker and internal memory usage amount (as shown in Figures 2 and 3), naturally it is also possible to the form of display is set, such as bent
Line, block diagram etc., it is possible to show that some or the CPU usage of multiple Docker specified and internal memory use according to demand
Amount.
Although, CPU usage and the internal memory of the above-mentioned one or more Docker be only given for an application use
The front end of amount is shown and is rendered, it is also possible to the CPU usage of Docker and internal memory usage amount for multiple application programs enter
The displaying of row front end renders.User can select the multiple application programs needing to check, the application program selected according to user, can be by
The Docker that selected application program is corresponding shows user, user's reselection all or part Docker, selects based on user
Docker show corresponding CPU usage and internal memory usage amount.
Correspondingly, the embodiment of the present invention also provides for the system resource occupancy supervising device of a kind of application container engine.Fig. 5
It it is the structural representation of the system resource occupancy supervising device of the four application container engines provided according to embodiments of the present invention.
Embodiment four
As it is shown in figure 5, the system resource occupancy supervising device of the application container engine of the embodiment of the present invention four offer can
To include: data acquisition module 51, CPU holding time and/or internal memory for application container engine described in multi collect use
Amount;And data processing module 52, it is used for: obtain application container engine according to the CPU holding time of described application container engine
CPU usage;And use the CPU usage of described application container engine and/or internal memory usage amount to hold to characterize described application
The system resource occupancy of device engine.So it is capable of the real-time monitoring of the resource occupation amount to application container engine, and then
The dilatation of the production environment of product, capacity reducing problem can be carried out rationally control.
Embodiment five
Described CPU holding time may include that kernel state holding time and User space holding time, therefore, data acquisition
Module 51 can be with the kernel state holding time of application container engine described in multi collect and User space holding time and/or internal memory
Usage amount.
In this embodiment, described data processing module 52 calculates the CPU of described application container engine according to below equation
Occupancy CPUoc: CPUoc=(cpu_sys+cpu_user-cpu_pre)/(time_now-time_pre), wherein, cpu_sys
For described kernel state holding time, cpu_user is described User space holding time, and cpu_pre is the described interior of last collection
Core state holding time and the last described User space holding time gathered and, time_now for from collection for the first time start to
This gathers the time experienced, and time_pre starts to the last time to gather the time experienced by gathering from described first time.
Wherein, described multi collect can be periodic, and such as collection period is but is not limited to 10min, certain ability
Field technique personnel can also use and gather aperiodically.
Described data processing module 52 is additionally operable to: the CPU usage at described application container engine exceedes CPU usage threshold
In the case of value and/or described internal memory usage amount exceed internal memory usage amount threshold value, determine the system money of described application container engine
Source occupancy transfinites.The system of application container engine is judged thus by CPU usage threshold value and/or internal memory usage amount threshold value
Whether resource occupation amount transfinites, carrying out rationally control to the dilatation of production environment, the capacity reducing problem of product in time, it is to avoid
Cause system to run slowly, reduce the experience sense of user.
And, in order to present the system resource occupancy of application container engine intuitively, described system resource takies
Amount supervising device also includes front end rendering module (such as display): for described CPU usage and/or described internal memory being used
Amount carries out front end displaying and renders.For example, it is possible to but be not limited to the form of curve or block diagram and render.
Furthermore it is also possible to CPU holding time and/or the internal memory usage amount of the application container engine collected are stored to number
According in storehouse, such as Mysql, CPU holding time and/or internal memory usage amount for collecting every time process, can be front
End is shown and renders application container engine CPU usage on time dimension and/or internal memory usage amount, such as, can support
Displaying in 1-3 days time.
Embodiment six
Fig. 6 is the structure of the system resource occupancy supervising device of the Docker according to one embodiment of the present invention offer
Schematic diagram.
As shown in Figure 6, in this embodiment, the system resource occupancy supervising device of Docker includes: data acquisition module
Block 51, data base 53, data processing module 52 and front end rendering module 54.Wherein at S61, data acquisition module 51 is right
Docker 60 carries out CPU holding time and internal memory usage amount is acquired;At S62, by gather CPU holding time with
And internal memory usage amount stores to data base 53;At S63, data processing module 52 reading database is to obtain a collection period
The CPU holding time of the Docker 60 gathered and internal memory usage amount, and it is processed, to obtain CPU usage,
And corresponding CPU usage and the time plot of internal memory usage amount can be drawn according to user's request;At S64, logical
Cross front end rendering module 54 and show CPU usage and internal memory usage amount to user image, draw characterizing described application container
The system resource occupancy held up.
Embodiment seven
Fig. 7 is the system resource occupancy monitoring dress for realizing application container engine provided according to embodiments of the present invention
The structural representation of the computer system put.
As it is shown in fig. 7, computer system 700 can include central processing module (CPU) 701, it can be according to being stored in
Program in read only memory (ROM) 702 or be loaded into the journey random access storage device (RAM) 703 from storage part 708
Sequence and perform various suitable action and process.In RAM 703, it is also possible to it is required that storage has computer system 700 to operate
Various programs and data.CPU 701, ROM 702 and RAM 703 can be connected with each other by bus 704, and input/defeated
Go out (I/O) interface 705 and can also be connected to bus 704.
It is connected to I/O interface 705: include the importation 706 of keyboard, mouse etc. with lower component;Penetrate including such as negative electrode
The output part 707 of spool (CRT), liquid crystal display (LCD) etc. and speaker etc.;Storage part 708 including hard disk etc.;
And include the communications portion 709 of the NIC of such as LAN card, modem etc..Communications portion 709 via such as because of
The network of special net performs communication process.Driver 710 is connected to I/O interface 705 also according to needs.Detachable media 711, such as
Disk, CD, magneto-optic disk, semiconductor memory etc., be arranged in driver 710, in order to read from it as required
Computer program as required be mounted into storage part 708.
Especially, according to embodiment of the disclosure, the process described above with reference to flow chart may be implemented as computer
Software program.Such as, embodiment of the disclosure and include a kind of computer program, it includes being tangibly embodied in machine readable
Computer program on medium, described computer program comprises the program code for performing the method shown in Fig. 1 and Fig. 4.?
In such embodiment, this computer program can be downloaded and installed by communications portion 709 from network, and/or from can
Dismounting medium 711 is mounted.
It will be appreciated by those skilled in the art that all or part of step realizing in above-described embodiment method can be by
Program instructs relevant hardware and completes, and this program is stored in a storage medium, including some instructions with so that one
Individual equipment (can be single-chip microcomputer, chip etc.) or processor (processor) perform method described in each embodiment of the application
All or part of step.And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey
The medium of sequence code.
The optional embodiment of the present invention is described in detail above in association with accompanying drawing, but, the present invention is not limited to above-mentioned reality
Execute the detail in mode, in the technology concept of the present invention, technical scheme can be carried out multiple letter
Monotropic type, these simple variant belong to protection scope of the present invention.
It is further to note that each the concrete technical characteristic described in above-mentioned detailed description of the invention, at not lance
In the case of shield, can be combined by any suitable means, in order to avoid unnecessary repetition, the present invention to various can
The compound mode of energy illustrates the most separately.
Additionally, combination in any can also be carried out between the various different embodiment of the present invention, as long as it is without prejudice to this
The thought of invention, it should be considered as content disclosed in this invention equally.
Claims (14)
1. the system resource occupancy monitoring method of an application container engine, it is characterised in that described system resource occupancy
Monitoring method includes:
The CPU holding time of application container engine described in multi collect and/or internal memory usage amount;
CPU holding time according to described application container engine obtains the CPU usage of described application container engine;And
The CPU usage and/or the internal memory usage amount that use described application container engine to characterize described application container engine are
System resource occupation amount.
System resource occupancy the most according to claim 1 monitoring method, it is characterised in that described CPU holding time bag
Include: kernel state holding time and User space holding time.
System resource occupancy the most according to claim 2 monitoring method, it is characterised in that calculate institute according to below equation
State the CPU usage CPU of application container engineoc:
CPUoc=(cpu_sys+cpu_user-cpu_pre)/(time_now-time_pre),
Wherein, cpu_sys is described kernel state holding time, and cpu_user is described User space holding time, and cpu_pre is upper
The described kernel state holding time once gathered and the last described User space holding time gathered and, time_now be from
Gathering for the first time and start to this to gather the time experienced, time_pre starts to the last time to adopt for gathering from described first time
The time that collection is experienced.
System resource occupancy the most according to claim 1 monitoring method, it is characterised in that described multi collect is the cycle
Property.
System resource occupancy the most according to claim 1 monitoring method, it is characterised in that described system resource occupancy
Monitoring method also includes: the CPU usage at described application container engine exceedes CPU usage threshold value and/or described internal memory makes
In the case of consumption exceedes internal memory usage amount threshold value, determine that the system resource occupancy of described application container engine transfinites.
System resource occupancy the most according to claim 1 monitoring method, it is characterised in that described system resource occupancy
Monitoring method also includes: described CPU usage and/or described internal memory usage amount carry out front end displaying and renders.
7. monitor method according to the system resource occupancy according to any one of claim 1-6, it is characterised in that described application
Container engine is Docker.
8. the system resource occupancy supervising device of an application container engine, it is characterised in that described system resource occupancy
Supervising device includes:
Data acquisition module, for CPU holding time and/or the internal memory usage amount of application container engine described in multi collect;With
And
Data processing module, is used for:
CPU holding time according to described application container engine obtains the CPU usage of application container engine;And
The CPU usage and/or the internal memory usage amount that use described application container engine to characterize described application container engine are
System resource occupation amount.
System resource occupancy supervising device the most according to claim 8, it is characterised in that described CPU holding time bag
Include: kernel state holding time and User space holding time.
System resource occupancy supervising device the most according to claim 9, it is characterised in that described data processing module
The CPU usage CPU of described application container engine is calculated according to below equationoc:
CPUoc=(cpu_sys+cpu_user-cpu_pre)/(time_now-time_pre),
Wherein, cpu_sys is described kernel state holding time, and cpu_user is described User space holding time, and cpu_pre is upper
The described kernel state holding time once gathered and the last described User space holding time gathered and, time_now be from
Gathering for the first time and start to this to gather the time experienced, time_pre starts to the last time to adopt for gathering from described first time
The time that collection is experienced.
11. system resource occupancy supervising devices according to claim 8, it is characterised in that described multi collect is week
Phase property.
12. system resource occupancy supervising devices according to claim 8, it is characterised in that described data processing module
It is additionally operable to: the CPU usage at described application container engine exceedes CPU usage threshold value and/or described internal memory usage amount exceedes
In the case of internal memory usage amount threshold value, determine that the system resource occupancy of described application container engine transfinites.
13. system resource occupancy supervising devices according to claim 8, it is characterised in that described system resource takies
Amount supervising device also includes front end rendering module: for described CPU usage and/or described internal memory usage amount are carried out front end exhibition
Show and render.
14. system resource occupancy supervising devices according to any one of-13 according to Claim 8, it is characterised in that described should
It is Docker with container engine.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610489192.6A CN106201819A (en) | 2016-06-28 | 2016-06-28 | The system resource occupancy monitoring method and apparatus of application container engine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610489192.6A CN106201819A (en) | 2016-06-28 | 2016-06-28 | The system resource occupancy monitoring method and apparatus of application container engine |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106201819A true CN106201819A (en) | 2016-12-07 |
Family
ID=57462332
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610489192.6A Pending CN106201819A (en) | 2016-06-28 | 2016-06-28 | The system resource occupancy monitoring method and apparatus of application container engine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106201819A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107370816A (en) * | 2017-07-26 | 2017-11-21 | 郑州云海信息技术有限公司 | A kind of dispositions method and device of Web applications |
CN108243239A (en) * | 2016-12-27 | 2018-07-03 | 阿里巴巴集团控股有限公司 | A kind of method, apparatus, electronic equipment and system that web application service is provided |
CN108255673A (en) * | 2017-12-29 | 2018-07-06 | 东软集团股份有限公司 | Application program occupies detection method, device and the storage medium of resource |
CN110928739A (en) * | 2018-09-19 | 2020-03-27 | 阿里巴巴集团控股有限公司 | Process monitoring method and device and computing equipment |
CN111092915A (en) * | 2018-10-23 | 2020-05-01 | 亿度慧达教育科技(北京)有限公司 | Server system |
CN111459765A (en) * | 2020-04-16 | 2020-07-28 | Oppo广东移动通信有限公司 | Statistical method, statistical apparatus, electronic device, and storage medium |
CN114138499A (en) * | 2022-01-29 | 2022-03-04 | 苏州浪潮智能科技有限公司 | GPU resource utilization rate monitoring method and device, computer equipment and medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102654841A (en) * | 2011-03-02 | 2012-09-05 | 中国电信股份有限公司 | Method and device for allocating computing resource of virtual machine based on fine granularity |
CN102981863A (en) * | 2011-09-07 | 2013-03-20 | 奇智软件(北京)有限公司 | Management method and device of starting up projects |
US20150254088A1 (en) * | 2014-03-08 | 2015-09-10 | Datawise Systems, Inc. | Methods and systems for converged networking and storage |
CN104951360A (en) * | 2015-06-30 | 2015-09-30 | 北京奇虎科技有限公司 | Configuration management mode and device based on Docker |
CN105429813A (en) * | 2014-09-17 | 2016-03-23 | 北京奇虎科技有限公司 | Monitoring method and client for docker |
-
2016
- 2016-06-28 CN CN201610489192.6A patent/CN106201819A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102654841A (en) * | 2011-03-02 | 2012-09-05 | 中国电信股份有限公司 | Method and device for allocating computing resource of virtual machine based on fine granularity |
CN102981863A (en) * | 2011-09-07 | 2013-03-20 | 奇智软件(北京)有限公司 | Management method and device of starting up projects |
US20150254088A1 (en) * | 2014-03-08 | 2015-09-10 | Datawise Systems, Inc. | Methods and systems for converged networking and storage |
CN105429813A (en) * | 2014-09-17 | 2016-03-23 | 北京奇虎科技有限公司 | Monitoring method and client for docker |
CN104951360A (en) * | 2015-06-30 | 2015-09-30 | 北京奇虎科技有限公司 | Configuration management mode and device based on Docker |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108243239A (en) * | 2016-12-27 | 2018-07-03 | 阿里巴巴集团控股有限公司 | A kind of method, apparatus, electronic equipment and system that web application service is provided |
WO2018121334A1 (en) * | 2016-12-27 | 2018-07-05 | 阿里巴巴集团控股有限公司 | Web application service providing method, apparatus, electronic device and system |
CN107370816A (en) * | 2017-07-26 | 2017-11-21 | 郑州云海信息技术有限公司 | A kind of dispositions method and device of Web applications |
CN108255673A (en) * | 2017-12-29 | 2018-07-06 | 东软集团股份有限公司 | Application program occupies detection method, device and the storage medium of resource |
CN108255673B (en) * | 2017-12-29 | 2021-10-15 | 东软集团股份有限公司 | Method and device for detecting resource occupied by application program and storage medium |
CN110928739B (en) * | 2018-09-19 | 2024-03-26 | 阿里巴巴集团控股有限公司 | Process monitoring method and device and computing equipment |
CN110928739A (en) * | 2018-09-19 | 2020-03-27 | 阿里巴巴集团控股有限公司 | Process monitoring method and device and computing equipment |
CN111092915A (en) * | 2018-10-23 | 2020-05-01 | 亿度慧达教育科技(北京)有限公司 | Server system |
CN111459765A (en) * | 2020-04-16 | 2020-07-28 | Oppo广东移动通信有限公司 | Statistical method, statistical apparatus, electronic device, and storage medium |
CN111459765B (en) * | 2020-04-16 | 2023-02-24 | Oppo广东移动通信有限公司 | Statistical method, statistical apparatus, electronic device, and storage medium |
CN114138499B (en) * | 2022-01-29 | 2022-05-06 | 苏州浪潮智能科技有限公司 | GPU resource utilization rate monitoring method and device, computer equipment and medium |
WO2023142824A1 (en) * | 2022-01-29 | 2023-08-03 | 苏州浪潮智能科技有限公司 | Gpu resource utilization monitoring method and apparatus, computer device, and medium |
CN114138499A (en) * | 2022-01-29 | 2022-03-04 | 苏州浪潮智能科技有限公司 | GPU resource utilization rate monitoring method and device, computer equipment and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106201819A (en) | The system resource occupancy monitoring method and apparatus of application container engine | |
CN106506670B (en) | A kind of cloud platform virtual resource high speed dispatching method and system | |
CN111158879B (en) | Scheduling method, device, machine-readable medium and system for system resources | |
CN106547578A (en) | The loading method and device of terminal applies APP | |
CN107436840A (en) | Application program analysis of running performance method, apparatus and system | |
CN108306874B (en) | Service interface access current limiting method and device | |
CN107783833A (en) | A kind of management method and device of terminal background application | |
CN103444236B (en) | Method and device for managing a portal application | |
RU2011117170A (en) | SYSTEM AND METHOD FOR RESIZING A WINDOW | |
CN106775394B (en) | Content revealing method, device and electronic equipment, storage medium | |
CN104796351B (en) | The method for down loading and device of a kind of network data | |
CN109062699A (en) | A kind of resource monitoring method, device, server and storage medium | |
CN107402804B (en) | background process control method and device, storage medium and electronic equipment | |
CN108228300B (en) | Method and device for controlling real-time refreshing of content | |
CN106164836A (en) | Organizing user interface element | |
CN110061930A (en) | A kind of limitation of data traffic, cut-off current determination method and apparatus | |
CN111932656B (en) | Running chart information indexing method, device and equipment | |
CN108769157B (en) | Message popup display method and device, computing equipment and computer storage medium | |
US7460122B1 (en) | Method for graphical display of CPU utilization | |
CN104102560B (en) | The method and device of system performance testing | |
US20240265194A1 (en) | Page interaction method, device, apparatus and storage medium | |
CN106201551A (en) | A kind of application program exits method and device | |
CN106201714A (en) | A kind of ODEX optimization method and system | |
CN109344127A (en) | A kind of application icon management method, device and terminal device | |
CN103559228A (en) | Loading method and device for label pages in browsers |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20161207 |
|
WD01 | Invention patent application deemed withdrawn after publication |