CN108255673A - Application program occupies detection method, device and the storage medium of resource - Google Patents

Application program occupies detection method, device and the storage medium of resource Download PDF

Info

Publication number
CN108255673A
CN108255673A CN201711479824.1A CN201711479824A CN108255673A CN 108255673 A CN108255673 A CN 108255673A CN 201711479824 A CN201711479824 A CN 201711479824A CN 108255673 A CN108255673 A CN 108255673A
Authority
CN
China
Prior art keywords
resource
range
value
occupation
application program
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
CN201711479824.1A
Other languages
Chinese (zh)
Other versions
CN108255673B (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.)
Neusoft Corp
Original Assignee
Neusoft Corp
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 Neusoft Corp filed Critical Neusoft Corp
Priority to CN201711479824.1A priority Critical patent/CN108255673B/en
Publication of CN108255673A publication Critical patent/CN108255673A/en
Application granted granted Critical
Publication of CN108255673B publication Critical patent/CN108255673B/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/3051Monitoring 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/503Resource availability

Landscapes

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

Abstract

This disclosure relates to which a kind of application program occupies detection method, device and the storage medium of resource, this method includes:Application program to be detected is determined from the destination application of terminal operating;In preset time period multiple occupation value of the application program to be detected to goal systems resource are obtained according to predetermined period;It determines the multiple first default division ranges of the application program to be detected, and the division ranges where each occupation value is determined from the multiple described first default division ranges;The quantity of the occupation value in the range of each described first default division is obtained, and determines the application program to be detected in the preset time period to the resource occupation state of the goal systems resource according to the quantity.

Description

Application program occupies detection method, device and the storage medium of resource
Technical field
This disclosure relates to machine learning field, and in particular, to a kind of application program occupies the detection method of resource, device And storage medium.
Background technology
Cpu resource, memory source, disk io resources, network io resources etc. are the important system resource of terminal, and are to protect The basis of application program normal operation is demonstrate,proved, therefore, when there is at least one system resource exhaustion, the application of operation may be led to There is operation troubles in program.
At present, system resource can be monitored by monitoring of system resource tool (such as top) to obtain the system The occupancy situation of resource wherein it is possible to obtain the system resource occupation value of a certain moment application program, and determines the application program System resource occupation value whether be more than or equal to predetermined threshold value, be more than in the system resource occupation value for determining the application program Or during equal to predetermined threshold value, the resource occupation state for determining the application program is abnormality, is determining the application program When system resource occupation value is less than predetermined threshold value, the resource occupation state of the application program is determined as normal condition, the exception shape The system resource occupation value of state is more than the system resource occupation value of the normal condition, still, due to the system of certain application programs Resource occupation value is larger always, in that way it is possible to which so that the system resource occupation value of certain application programs is consistently greater than or waits In the predetermined threshold value, so as to cause to resource occupation condition adjudgement inaccuracy.
Invention content
To solve the above-mentioned problems, the detection method of resource, device are occupied the present disclosure proposes a kind of application program and deposited Storage media.
According to the embodiment of the present disclosure in a first aspect, provide the detection method that a kind of application program occupies resource, including:
Application program to be detected is determined from the destination application of terminal operating;
The application program to be detected is obtained to the multiple of goal systems resource according to predetermined period in preset time period Occupation value;
It determines the multiple first default division ranges of the application program to be detected, and presets and divide from multiple described first The division range where each occupation value is determined in range;Described first default division is ranging from described to be detected using journey The corresponding division range of goal systems resource occupation described in ordered pair;
The quantity of the occupation value in the range of each described first default division is obtained, and is treated according to determining the quantity Application program is detected in the preset time period to the resource occupation state of the goal systems resource.
Optionally, the resource occupation state includes normal condition and abnormality, described to determine institute according to the quantity Application program to be detected is stated to include the resource occupation state of the goal systems resource in the preset time period:
Determine first most default division ranging from the first numberical range of the quantity;
Second value range is determined in range from the described first default divide, the minimum value of the second value range is more than The maximum value of first numberical range;
Determining that there are during the occupation value, determine that the resource occupation state is abnormal shape in the range of the second value State;
When determining that the occupation value is not present in the range of the second value, determine that the resource occupation state is normal State.
Optionally, after the determining resource occupation state is abnormality, the method further includes:
Obtain resource occupation model;
By the resource occupation model obtain the corresponding the first system resource desired value of first numberical range and The corresponding second system resource desired value of the second value range;
Evaluation ginseng is occupied according to the first system resource desired value and the second system resource desired value computing resource Number.
Optionally, the acquisition resource occupation model includes:
Determine that the destination application run in terminal and the destination application account in the preset time period Occupying system resources;The occupying system resources include the goal systems resource;
Resource occupation network is established according to the destination application and the occupying system resources;
According to the resource occupation network, the first default division range and the second default division range, pass through shellfish This network algorithm of leaf obtains the resource occupation model, and the described second default ranging from described occupying system resources of division are corresponding Divide range.
According to the second aspect of the embodiment of the present disclosure, the detection device that a kind of application program occupies resource is provided, including:
First determining module, for determining application program to be detected from the destination application of terminal operating;
First acquisition module, for obtaining the application program to be detected to mesh according to predetermined period in preset time period Multiple occupation value of mark system resource;
Second determining module, for determining that multiple the first of the application program to be detected default divide ranges, and from more A described first default divide determines each division range where the occupation value in range;Described first default division range It is the application program to be detected to the corresponding division range of the goal systems resource occupation;
Second acquisition module, for obtaining the quantity of the occupation value in the range of each described first default division;
Third determining module, for determining the application program to be detected in the preset time period according to the quantity To the resource occupation state of the goal systems resource.
Optionally, the resource occupation state includes normal condition and abnormality, and the third determining module includes:
First determination sub-module, for determining first most default division ranging from the first numberical range of the quantity;
Second determination sub-module, for determining second value range in range from the described first default divide, described second The minimum value of numberical range is more than the maximum value of first numberical range;
Third determination sub-module for determining in the range of the second value there are during the occupation value, determines described Resource occupation state is abnormality;
4th determination sub-module, for when determining that the occupation value is not present in the range of the second value, determining institute Resource occupation state is stated as normal condition.
Optionally, it further includes:
Third acquisition module, for obtaining resource occupation model;
4th acquisition module, for obtaining corresponding first system of first numberical range by the resource occupation model Resource desired value of uniting and the corresponding second system resource desired value of the second value range;
Computing module, for calculating money according to the first system resource desired value and the second system resource desired value Source occupies evaluation parameter.
Optionally, the third acquisition module, for determining that the target run in terminal should in the preset time period The occupying system resources occupied with program and the destination application;The occupying system resources include the goal systems Resource;
Resource occupation network is established according to the destination application and the occupying system resources;
According to the resource occupation network, the first default division range and the second default division range, pass through shellfish This network algorithm of leaf obtains the resource occupation model, and the described second default ranging from described occupying system resources of division are corresponding Divide range.
According to the third aspect of the embodiment of the present disclosure, a kind of computer readable storage medium is provided, is stored thereon with calculating The step of machine program, which realizes above-mentioned first aspect the method when being executed by processor.
According to the fourth aspect of the embodiment of the present disclosure, the detection device that a kind of application program occupies resource is provided, including:On State the computer readable storage medium described in the third aspect;And one or to a processor, for performing the calculating Program in machine readable storage medium storing program for executing.
Through the above technical solutions, application program to be detected is determined from the destination application of terminal operating;Default In period multiple occupation value of the application program to be detected to goal systems resource are obtained according to predetermined period;It determines described Application program corresponding multiple first to be detected, which is preset, divides range, and is determined often from the multiple described first default divide in ranges Division range where a occupation value;The described first default ranging from described application program to be detected of division is to the target System resource occupies corresponding division range;Obtain the quantity of the occupation value in the range of each described first default division, and root Determine that the application program to be detected accounts for the resource of the goal systems resource in the preset time period according to the quantity With state, in this way, by counting the multiple occupation value of application program to be detected in the preset time period to goal systems resource, and The resource occupation state of the application program to be detected is determined based on quantity of the occupation value in the first default division range, so as to Improve the accuracy rate of the resource occupation state of determining application program to be detected.
Other feature and advantage of the disclosure will be described in detail in subsequent specific embodiment part.
Description of the drawings
Attached drawing is for providing further understanding of the disclosure, and a part for constitution instruction, with following tool Body embodiment is used to explain the disclosure, but do not form the limitation to the disclosure together.In the accompanying drawings:
Fig. 1 is that the flow of detection method that a kind of application program shown in disclosure exemplary embodiment occupies resource is illustrated Figure;
Another application program shown in Fig. 2 disclosure exemplary embodiments occupies the flow signal of the detection method of resource Figure;
A kind of schematic diagram of resource occupation network shown in Fig. 3 disclosure exemplary embodiments;
The schematic diagram of another resource occupation network shown in Fig. 4 disclosure exemplary embodiments;
Fig. 5 is the detection device block diagram of the first application program occupancy resource shown in disclosure exemplary embodiment;
Fig. 6 is the detection device block diagram of second of application program occupancy resource shown in disclosure exemplary embodiment;
Fig. 7 is the detection device block diagram of the third application program occupancy resource shown in disclosure exemplary embodiment;
Fig. 8 is the detection device block diagram of the 4th kind of application program occupancy resource shown in disclosure exemplary embodiment.
Specific embodiment
The specific embodiment of the disclosure is described in detail below in conjunction with attached drawing.It should be understood that this place is retouched The specific embodiment stated is only used for describing and explaining the disclosure, is not limited to the disclosure.
The disclosure can obtain the application program to be detected according to predetermined period in preset time period and goal systems is provided Multiple occupation value in source, and from the multiple first default division ranges divided in range where determining each occupation value, thus The application program to be detected can be determined when this is preset according to the quantity of the occupation value in the range of each first default division Between in section to the resource occupation state of the goal systems resource, in this way, to be detected using journey in the preset time period by counting Multiple occupation value of ordered pair goal systems resource, and determine that this is treated based on quantity of the occupation value in the first default division range The resource occupation state of application program is detected, so as to improve the accurate of the resource occupation state of determining application program to be detected Rate.
The disclosure is described in detail with reference to specific embodiment.
Fig. 1 is that the flow of detection method that a kind of application program shown in disclosure exemplary embodiment occupies resource is illustrated Figure, as shown in Figure 1, this method includes:
S101, application program to be detected is determined from the destination application of terminal operating.
Illustratively, the application program to be detected can be java application programs, main application programs, sshd application programs, Top application programs, khugepaged application programs or metricbeat application programs etc., above-mentioned example is merely illustrative, The disclosure is not construed as limiting this.
S102, the application program to be detected is obtained to the more of goal systems resource according to predetermined period in preset time period A occupation value.
Wherein, which can be cpu resource, memory source, disk io resources or network io resources etc., Above-mentioned example is merely illustrative, and the disclosure is not construed as limiting this.
S103, the multiple first default division ranges for determining the application program to be detected, and from multiple this first default strokes Divide in range the division range determined where each occupation value.
In this step, the first default division range for dividing ranging from default setting, the i.e. application program to be detected Division range corresponding to the goal systems resource occupation.
The quantity of occupation value in the range of S104, each first default division of acquisition, and determine that this is treated according to the quantity Application program is detected in the preset time period to the resource occupation state of the goal systems resource.
Wherein, which can include normal condition and abnormality, which can be that this is to be checked The state that application program is in high load is surveyed, which can be the shape that the application program to be detected is in normal load State.
Using the above method, by counting in the preset time period application program to be detected to the multiple of goal systems resource Occupation value, and the resource occupation of the application program to be detected is determined based on the occupation value in the first default quantity divided in range State, so as to improve the accuracy rate of the resource occupation state of determining application program to be detected.
Fig. 2 is that the flow of detection method that a kind of application program shown in disclosure exemplary embodiment occupies resource is illustrated Figure, as shown in Fig. 2, this method includes:
S201, application program to be detected is determined from the application program of terminal operating.
Illustratively, the application program to be detected can be java application programs, main application programs, sshd application programs, Top application programs, khugepaged application programs or metricbeat application programs etc., above-mentioned example is merely illustrative, The disclosure is not construed as limiting this.
S202, the application program to be detected is obtained to the more of goal systems resource according to predetermined period in preset time period A occupation value.
Wherein, which can be the pre-set period, as the preset time period can be from it is current when 100 hours obtained forward are carved, which can be cpu resource, memory source, disk io resources or network io Resource etc., above-mentioned example is merely illustrative, and the disclosure is not construed as limiting this.
S203, determine the application programmer to be detected it is corresponding multiple first it is default divide range, and from it is multiple this first It is default to divide the division range determined in range where each occupation value.
In this step, the first default division range for dividing ranging from default setting, the i.e. application program to be detected Division range corresponding to the goal systems resource occupation, illustratively, the application program to be detected is to the goal systems resource Occupancy may range from [0,1], wherein, " 0 " represents that the application program to be detected is 0% to the goal systems resource occupation value, " 1 " represents that the application program to be detected is 100% to the goal systems resource occupation value, at this point it is possible to which the occupancy range is drawn Be divided into the application program to be detected multiple first it is default divide ranges, will such as occupy range [0,1] be divided into [0,0.1), [0.1,0.2), [0.2,1], so as to determine the division ranges where each occupation value from this three first default division ranges.
The quantity of occupation value in the range of S204, each first default division of acquisition.
S205, first most default division ranging from the first numberical range of the quantity is determined.
S206, second value range is determined in range from first default divide.
Wherein, the minimum value of the second value range is more than the maximum value of first numberical range, continues with step S203 In example for illustrate, if multiple first it is default divide ranging from [0,0.1), [and 0.1,0.2), [0.2,1] is determining [0.1,0.2) in occupation value quantity it is most when, [0.1,0.2) be the first numberical range, at this point it is possible to determine this second Numberical range is [0.2,1], and above-mentioned example is merely illustrative, and the disclosure is not construed as limiting this.
S207, it determines to whether there is the occupation value in the range of the second value.
It is determining to perform step S208 and step S210 to S212 there are during the occupation value in the range of the second value;
When determining that the occupation value is not present in the range of the second value, step S209 is performed.
S208, determine the application program to be detected in the preset time period to the resource occupation shape of the goal systems resource State is abnormality.
Wherein, which can be the state that the application program to be detected is in high load.
S209, determine the application program to be detected in the preset time period to the resource occupation shape of the goal systems resource State is normal condition.
In this step, which can be the state that the application program to be detected is in normal load.
S210, resource occupation model is obtained.
In this step, the resource occupation model can be built by following steps:
S11, determine that the destination application run in terminal and the destination application occupy in preset time period Occupying system resources.
In the disclosure, which is the used application program of user in the preset time period, should Occupying system resources include the goal systems resource.Illustratively, the destination application can be java application programs, main should It, should with program, sshd application programs, top application programs, khugepaged application programs and metricbeat application programs etc. The occupying system resources that destination application occupies can include cpu resource, memory source and system load etc., above-mentioned example It is merely illustrative, the disclosure is not construed as limiting this.
S12, resource occupation network is established according to the destination application and the occupying system resources.
In this step, if the occupying system resources include multiple system resources, resource occupation network can be to include The two-tier network of multiple system resource and the destination application, as described in Figure 3, if the destination application should including java With program, main application programs, sshd application programs, multiple system resource includes cpu resource, memory source, and should Java application programs occupy cpu resource and memory source, and main application programs occupy cpu resource, and sshd application programs account for It, then can be using the java application programs, main application programs, sshd application programs as this with cpu resource and memory source The first layer of resource occupation network, and using the cpu resource, memory source as the second layer of the resource occupation network, and establish The connection relation for the occupying system resources that the destination application is occupied with the destination application completes the resource so as to build Occupy network.
If the occupying system resources include total load and multiple system resources, resource occupation network can be to include this The three-layer network of multiple system resources and the destination application and total load, if as shown in figure 4, the destination application packet Java application programs, main application programs, sshd application programs are included, multiple system resource includes cpu resource, memory source, And the java application programs occupy cpu resource and memory source, and main application programs occupy cpu resource, sshd applications Program occupies cpu resource and memory source, then can be by the java application programs, main application programs, sshd application programs As the first layer of the resource occupation network, and using the cpu resource, memory source as the resource occupation network the second layer, And using total load as the third layer of resource occupation network, and establish what the destination application was occupied with the destination application The connection relation of multiple system resources and the connection relation established between multiple system resource and the total load are so as to build The resource occupation network is completed, above-mentioned example is merely illustrative, and the disclosure is not construed as limiting this.
S13, division range is preset according to the resource occupation network, the first default division range and second, passes through pattra leaves This network algorithm obtains the resource occupation model.
Wherein, if the resource occupation network is the two-tier network built in step S12, the first default division is ranging from Each destination application corresponding division range to goal systems resource occupation, the second default ranging from multiple system of division The corresponding division range of resource occupation for resource of uniting, in this way, multiple occupation value can be input to two layers of the resource occupation In network and pass through the Bayes net algorithm and be trained to obtain the resource occupation model;If the resource occupation network is step The three-layer network built in S12, then the first default ranging from each destination application of division is to goal systems resource occupation Corresponding division range, the second default division for dividing the corresponding division range of ranging from multiple system resources and total load Range is trained in this way, multiple occupation value is input in the resource occupation network and passes through the Bayes net algorithm The resource occupation model is obtained, detailed process can refer to the prior art, repeat no more.
S211, the corresponding the first system resource desired value of first numberical range is obtained by the resource occupation model, with And the corresponding second system resource desired value of the second value range.
In this step, can application program to be detected be got in the first numerical value according to the resource occupation model of structure Range carries out the first probability of resource consumption and application program to be detected carries out the second of resource consumption in second value range Probability, and it is previously provided with the corresponding first flag parameter of first numberical range and the second value range corresponding Two identification parameters, the product so as to calculate first probability and the first flag parameter obtain the first system resource and it is expected Value, and the product for calculating second probability and the second identifier parameter obtains second system resource desired value, it should be noted that If being determined in S206 there are multiple second value ranges, need to calculate multiple second value range respectively in this step Corresponding second system resource desired value.
S212, evaluation ginseng is occupied according to the first system resource desired value and the second system resource desired value computing resource Number.
In this step, the calculation formula of the resource occupation evaluation parameter can be:Wherein, E1Table Show the first system resource desired value, EiRepresent the corresponding second system resource desired value of i-th of second value range, n represents the The total quantity of two numberical ranges, y are resource occupation evaluation parameter.
After the resource occupation evaluation parameter is got, can the resource be determined according to the exception level range divided in advance The corresponding exception level of evaluation parameter is occupied, so as to be handled accordingly the application program according to exception level.
Using the above method, by counting in the preset time period application program to be detected to the multiple of goal systems resource Occupation value, and the resource occupation of the application program to be detected is determined based on the occupation value in the first default quantity divided in range State, so as to improve the accuracy rate of the resource occupation state of determining application program to be detected.
Fig. 5 occupies the detection device block diagram of resource, such as Fig. 5 for a kind of application program shown in disclosure exemplary embodiment It is shown, including:
First determining module 501, for determining application program to be detected from the destination application of terminal operating;
First acquisition module 502, for obtaining the application program pair to be detected according to predetermined period in preset time period Multiple occupation value of goal systems resource;
Second determining module 503, for determining that multiple the first of the application program to be detected default divide ranges, and from more A first default divide determines each division range where the occupation value in range;This first it is default divide ranging from this treat Application program is detected to the corresponding division range of the goal systems resource occupation;
Second acquisition module 504, for obtaining the quantity of the occupation value in the range of each first default division;
Third determining module 505, for determining that the application program to be detected is right in the preset time period according to the quantity The resource occupation state of the goal systems resource.
Fig. 6 occupies the detection device block diagram of resource, such as Fig. 6 for a kind of application program shown in disclosure exemplary embodiment Shown, which includes normal condition and abnormality, which includes:
First determination sub-module 5051, for determining first most default division ranging from the first numerical value model of the quantity It encloses;
Second determination sub-module 5052, for determining second value range in range from first default divide, this second The minimum value of numberical range is more than the maximum value of first numberical range;
Third determination sub-module 5053, for determining to determine the money there are during the occupation value in the range of the second value Source seizure condition is abnormality;
4th determination sub-module 5054, for when determining that the occupation value is not present in the range of the second value, determining to be somebody's turn to do Resource occupation state is normal condition.
Fig. 7 occupies the detection device block diagram of resource, such as Fig. 7 for a kind of application program shown in disclosure exemplary embodiment It is shown, it further includes:
Third acquisition module 506, for obtaining resource occupation model;
4th acquisition module 507 obtains corresponding first system of first numberical range for passing through the resource occupation model Resource desired value of uniting and the corresponding second system resource desired value of the second value range;
Computing module 508, for calculating money according to the first system resource desired value and the second system resource desired value Source occupies evaluation parameter.
Optionally, third acquisition module 506, for determining the intended application run in terminal in the preset time period The occupying system resources that program and the destination application occupy;The occupying system resources include the goal systems resource;
Resource occupation network is established according to the destination application and the occupying system resources;
According to the resource occupation network, the first default division range and the second default division range, pass through Bayes Network algorithm obtains the resource occupation model, the second default division ranging from corresponding division range of the occupying system resources.
Using above device, by counting in the preset time period application program to be detected to the multiple of goal systems resource Occupation value, and the resource occupation of the application program to be detected is determined based on the occupation value in the first default quantity divided in range State, so as to improve the accuracy rate of the resource occupation state of determining application program to be detected.
About the device in above-described embodiment, wherein modules perform the concrete mode of operation in related this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 8 is a kind of block diagram of the detection device 800 of application program occupancy resource shown in disclosure exemplary embodiment. As shown in figure 8, the detection device 800 that the application program occupies resource can include:Processor 801, memory 802, multimedia Component 803, input/output (I/O) interface 804 and communication component 805.
Wherein, processor 801 is used for the integrated operation for the detection device 800 that the application program is controlled to occupy resource, with complete The all or part of step in the detection method of resource is occupied into application program described above.Memory 802 is each for storing To support the operation in the detection device 800 of application program occupancy resource, these data can for example wrap the data of type Include the instruction of any application program or method that is operated in the detection device 800 for occupying resource in the application program and The relevant data of application program.The memory 802 can by any kind of volatibility or non-volatile memory device or it Combination realize, such as static RAM (Static Random Access Memory, abbreviation SRAM), electricity Erasable Programmable Read Only Memory EPROM (Electrically Erasable Programmable Read-Only Memory, letter Claim EEPROM), and Erasable Programmable Read Only Memory EPROM (Erasable Programmable Read-Only Memory, referred to as EPROM), programmable read only memory (Programmable Read-Only Memory, abbreviation PROM), read-only memory (Read-Only Memory, abbreviation ROM), magnetic memory, flash memory, disk or CD.Multimedia component 803 can wrap Include screen and audio component.Wherein screen for example can be touch screen, and audio component is for output and/or input audio signal. For example, audio component can include a microphone, microphone is used to receive external audio signal.The received audio signal can To be further stored in memory 802 or be sent by communication component 805.Audio component further includes at least one loud speaker, For exports audio signal.I/O interfaces 804 provide interface, other above-mentioned interfaces between processor 801 and other interface modules Module can be keyboard, mouse, button etc..These buttons can be virtual push button or entity button.Communication component 805 is used for The application program occupies and carries out wired or wireless communication between the detection device 800 and other equipment of resource.Wireless communication, such as Wi-Fi, bluetooth, near-field communication (Near Field Communication, abbreviation NFC), 2G, 3G or 4G or in them one Kind or several combinations, therefore the corresponding communication component 805 can include:Wi-Fi module, bluetooth module, NFC module.
In one exemplary embodiment, the detection device 800 of application program occupancy resource can be by one or more application Application-specific integrated circuit (Application Specific Integrated Circuit, abbreviation ASIC), digital signal processor (Digital Signal Processor, abbreviation DSP), digital signal processing appts (Digital Signal Processing Device, abbreviation DSPD), programmable logic device (Programmable Logic Device, abbreviation PLD), field-programmable Gate array (FieldProgrammable Gate Array, abbreviation FPGA), controller, microcontroller, microprocessor or other Electronic component is realized, for performing the detection method that application program described above occupies resource.
In a further exemplary embodiment, a kind of computer readable storage medium including program instruction, example are additionally provided Such as include the memory 802 of program instruction, above procedure instruction can be occupied the processing of the detection device 800 of resource by application program Device 801 performs to complete the detection method that application program described above occupies resource.
The preferred embodiment of the disclosure is described in detail above in association with attached drawing, still, the disclosure is not limited to above-mentioned reality The detail in mode is applied, in the range of the technology design of the disclosure, a variety of letters can be carried out to the technical solution of the disclosure Monotropic type, these simple variants belong to the protection domain of the disclosure.
It is further to note that specific technical features described in the above specific embodiments, in not lance In the case of shield, can be combined by any suitable means, in order to avoid unnecessary repetition, the disclosure to it is various can The combination of energy no longer separately illustrates.
In addition, arbitrary combination can also be carried out between a variety of different embodiments of the disclosure, as long as it is without prejudice to originally Disclosed thought should equally be considered as disclosure disclosure of that.

Claims (10)

1. a kind of application program occupies the detection method of resource, which is characterized in that including:
Application program to be detected is determined from the destination application of terminal operating;
In preset time period multiple occupancy of the application program to be detected to goal systems resource are obtained according to predetermined period Value;
It determines the multiple first default division ranges of the application program to be detected, and is preset from multiple described first and divide ranges In determine division range where each occupation value;The described first default ranging from described application program pair to be detected of division The corresponding division range of the goal systems resource occupation;
Obtain each described first it is default divide in the range of occupation value quantity, and determined according to the quantity described to be detected Application program is in the preset time period to the resource occupation state of the goal systems resource.
2. according to the method described in claim 1, it is characterized in that, the resource occupation state includes normal condition and abnormal shape State, it is described to determine the application program to be detected in the preset time period to the goal systems resource according to the quantity Resource occupation state include:
Determine first most default division ranging from the first numberical range of the quantity;
Second value range is determined in range from the described first default divide, the minimum value of the second value range is more than described The maximum value of first numberical range;
Determining that there are during the occupation value, determine that the resource occupation state is abnormality in the range of the second value;
When determining that the occupation value is not present in the range of the second value, it is normal shape to determine the resource occupation state State.
3. according to the method described in claim 2, it is characterized in that, determine that the resource occupation state is abnormality described Afterwards, the method further includes:
Obtain resource occupation model;
The corresponding the first system resource desired value of first numberical range and described is obtained by the resource occupation model The corresponding second system resource desired value of second value range;
Evaluation parameter is occupied according to the first system resource desired value and the second system resource desired value computing resource.
4. according to the method described in claim 3, it is characterized in that, the acquisition resource occupation model includes:
What the destination application and the destination application run in determining terminal in the preset time period occupied Occupying system resources;The occupying system resources include the goal systems resource;
Resource occupation network is established according to the destination application and the occupying system resources;
According to the resource occupation network, the first default division range and the second default division range, pass through Bayes Network algorithm obtains the resource occupation model, and described second presets the corresponding division of the ranging from described occupying system resources of division Range.
5. a kind of application program occupies the detection device of resource, which is characterized in that including:
First determining module, for determining application program to be detected from the destination application of terminal operating;
First acquisition module, for obtaining the application program to be detected to target system according to predetermined period in preset time period The multiple occupation value for resource of uniting;
Second determining module, for determining that multiple the first of the application program to be detected default divide ranges, and from multiple institutes It states the first default divide and each division range where the occupation value is determined in range;Described first default division ranging from institute Application program to be detected is stated to the corresponding division range of the goal systems resource occupation;
Second acquisition module, for obtaining the quantity of the occupation value in the range of each described first default division;
Third determining module, for determining the application program to be detected in the preset time period to institute according to the quantity State the resource occupation state of goal systems resource.
6. device according to claim 5, which is characterized in that the resource occupation state includes normal condition and abnormal shape State, the third determining module include:
First determination sub-module, for determining first most default division ranging from the first numberical range of the quantity;
Second determination sub-module, for determining second value range, the second value in range from the described first default divide The minimum value of range is more than the maximum value of first numberical range;
Third determination sub-module, for determining to determine the resource there are during the occupation value in the range of the second value Seizure condition is abnormality;
4th determination sub-module, for when determining that the occupation value is not present in the range of the second value, determining the money Source seizure condition is normal condition.
7. device according to claim 6, which is characterized in that further include:
Third acquisition module, for obtaining resource occupation model;
4th acquisition module provides for obtaining the corresponding the first system of first numberical range by the resource occupation model Source desired value and the corresponding second system resource desired value of the second value range;
Computing module, for being accounted for according to the first system resource desired value and the second system resource desired value computing resource Use evaluation parameter.
8. device according to claim 7, which is characterized in that the third acquisition module, in the preset time The occupying system resources that the destination application run in terminal and the destination application occupy are determined in section;It is described to account for Include the goal systems resource with system resource;
Resource occupation network is established according to the destination application and the occupying system resources;
According to the resource occupation network, the first default division range and the second default division range, pass through Bayes Network algorithm obtains the resource occupation model, and described second presets the corresponding division of the ranging from described occupying system resources of division Range.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor The step of any one of Claims 1-4 the method is realized during row.
10. a kind of application program occupies the detection device of resource, which is characterized in that including:
Computer readable storage medium described in claim 9;And
One or to a processor, for performing the program in the computer readable storage medium.
CN201711479824.1A 2017-12-29 2017-12-29 Method and device for detecting resource occupied by application program and storage medium Active CN108255673B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711479824.1A CN108255673B (en) 2017-12-29 2017-12-29 Method and device for detecting resource occupied by application program and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711479824.1A CN108255673B (en) 2017-12-29 2017-12-29 Method and device for detecting resource occupied by application program and storage medium

Publications (2)

Publication Number Publication Date
CN108255673A true CN108255673A (en) 2018-07-06
CN108255673B CN108255673B (en) 2021-10-15

Family

ID=62724518

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711479824.1A Active CN108255673B (en) 2017-12-29 2017-12-29 Method and device for detecting resource occupied by application program and storage medium

Country Status (1)

Country Link
CN (1) CN108255673B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109240827A (en) * 2018-08-20 2019-01-18 东软集团股份有限公司 Determination method, apparatus, storage medium and the equipment of the occupation condition of application
CN109408368A (en) * 2018-09-03 2019-03-01 深圳壹账通智能科技有限公司 A kind of output method, storage medium and server for testing auxiliary information
CN109614282A (en) * 2018-09-28 2019-04-12 东软集团股份有限公司 The method and apparatus for determining the system resource use information of application
CN109753405A (en) * 2018-12-05 2019-05-14 东软集团股份有限公司 Detection method, device, storage medium and the electronic equipment of application resource consumption
CN110457179A (en) * 2019-07-29 2019-11-15 Oppo广东移动通信有限公司 System detecting method, internal memory monitoring method, device, medium and electronic equipment
CN111708633A (en) * 2020-05-28 2020-09-25 北京赛博云睿智能科技有限公司 Dynamic resource adjustment method and system
CN113064832A (en) * 2021-04-22 2021-07-02 中国工商银行股份有限公司 Application program energy consumption detection method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103139007A (en) * 2011-12-05 2013-06-05 阿里巴巴集团控股有限公司 Method and system for detecting application server performance
CN103902437A (en) * 2014-03-11 2014-07-02 深圳市同洲电子股份有限公司 Detecting method and server
CN105528052A (en) * 2015-12-09 2016-04-27 上海斐讯数据通信技术有限公司 Electronic equipment power consumption reduction method and device and electronic equipment with display screen
US20160117236A1 (en) * 2014-10-23 2016-04-28 Canon Kabushiki Kaisha Information processing apparatus, method for controlling the same, and non-transitory computer-readable medium
CN106201819A (en) * 2016-06-28 2016-12-07 乐视控股(北京)有限公司 The system resource occupancy monitoring method and apparatus of application container engine
CN106293976A (en) * 2016-08-15 2017-01-04 东软集团股份有限公司 Application performance Risk Forecast Method, device and system
CN106685752A (en) * 2016-06-28 2017-05-17 腾讯科技(深圳)有限公司 Information processing method and terminal
US20170329690A1 (en) * 2016-05-12 2017-11-16 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Indicating an application status based on a device state

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103139007A (en) * 2011-12-05 2013-06-05 阿里巴巴集团控股有限公司 Method and system for detecting application server performance
CN103902437A (en) * 2014-03-11 2014-07-02 深圳市同洲电子股份有限公司 Detecting method and server
US20160117236A1 (en) * 2014-10-23 2016-04-28 Canon Kabushiki Kaisha Information processing apparatus, method for controlling the same, and non-transitory computer-readable medium
CN105528052A (en) * 2015-12-09 2016-04-27 上海斐讯数据通信技术有限公司 Electronic equipment power consumption reduction method and device and electronic equipment with display screen
US20170329690A1 (en) * 2016-05-12 2017-11-16 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Indicating an application status based on a device state
CN106201819A (en) * 2016-06-28 2016-12-07 乐视控股(北京)有限公司 The system resource occupancy monitoring method and apparatus of application container engine
CN106685752A (en) * 2016-06-28 2017-05-17 腾讯科技(深圳)有限公司 Information processing method and terminal
CN106293976A (en) * 2016-08-15 2017-01-04 东软集团股份有限公司 Application performance Risk Forecast Method, device and system

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109240827A (en) * 2018-08-20 2019-01-18 东软集团股份有限公司 Determination method, apparatus, storage medium and the equipment of the occupation condition of application
CN109240827B (en) * 2018-08-20 2021-01-15 东软集团股份有限公司 Method and device for determining resource occupation condition of application, storage medium and equipment
CN109408368A (en) * 2018-09-03 2019-03-01 深圳壹账通智能科技有限公司 A kind of output method, storage medium and server for testing auxiliary information
CN109408368B (en) * 2018-09-03 2023-06-09 深圳壹账通智能科技有限公司 Test auxiliary information output method, storage medium and server
CN109614282A (en) * 2018-09-28 2019-04-12 东软集团股份有限公司 The method and apparatus for determining the system resource use information of application
CN109614282B (en) * 2018-09-28 2022-06-03 东软集团股份有限公司 Method and device for determining system resource use information of application
CN109753405A (en) * 2018-12-05 2019-05-14 东软集团股份有限公司 Detection method, device, storage medium and the electronic equipment of application resource consumption
CN109753405B (en) * 2018-12-05 2022-05-31 东软集团股份有限公司 Application resource consumption detection method and device, storage medium and electronic equipment
CN110457179A (en) * 2019-07-29 2019-11-15 Oppo广东移动通信有限公司 System detecting method, internal memory monitoring method, device, medium and electronic equipment
CN111708633A (en) * 2020-05-28 2020-09-25 北京赛博云睿智能科技有限公司 Dynamic resource adjustment method and system
CN113064832A (en) * 2021-04-22 2021-07-02 中国工商银行股份有限公司 Application program energy consumption detection method and device

Also Published As

Publication number Publication date
CN108255673B (en) 2021-10-15

Similar Documents

Publication Publication Date Title
CN108255673A (en) Application program occupies detection method, device and the storage medium of resource
CN107515890A (en) A kind of method and terminal for identifying resident point
CN110995482B (en) Alarm analysis method and device, computer equipment and computer readable storage medium
CN102710838B (en) Volume regulation method and device as well as electronic equipment
CN109740630A (en) Method for processing abnormal data and device
CN107832200A (en) Alert processing method, device, computer equipment and storage medium
CN103914365B (en) Method and device for acquiring power consumption of mobile terminal application
CN107256707A (en) A kind of audio recognition method, system and terminal device
CN104580721A (en) Alarm clock implementation method for terminal
CN109635564A (en) A kind of method, apparatus, medium and equipment detecting Brute Force behavior
JP6756379B2 (en) Log analysis methods, systems and programs
CN109684311A (en) Abnormal deviation data examination method and device
CN106534514A (en) Incoming call processing method and terminal
CN112036579A (en) Self-learning online updating method, system and device for multi-classification model
CN106371983A (en) Method and device for alarming based on data development
CN108509225A (en) A kind of information processing method and electronic equipment
CN103543901B (en) The method and apparatus generating menu
CN109492590A (en) Distance detection method, distance detection device and terminal equipment
CN107704317B (en) Intelligent device and application management method thereof and device with storage function
CN106200976A (en) A kind of motion-activated method and terminal
CN107944731A (en) The method for building up and device of typical project cost template
CN107860394A (en) Navigation route planning method, navigation route planning device and electric terminal
CN108804574A (en) Alarm prompt method, apparatus, computer readable storage medium and electronic equipment
CN114048136A (en) Test type determination method, device, server, medium and product
CN109800085A (en) Detection method, device, storage medium and the electronic equipment of resource distribution

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