Resource Allocation Method, Device and Server
By obtaining data from application devices and applications, determining abnormal characteristic values and configuring resource parameter information, the problem of inability to flexibly configure application resources in the prior art is solved, and the optimization of application performance and improvement of user experience is achieved.
Patent Information
- Application Number
- CN202111516041.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-06
- Publication Date
- 2025-06-17
- Estimated Expiration
- 2041-12-06
AI Technical Summary
The existing technology cannot flexibly configure the resource configuration information of the application, resulting in the inability to effectively solve the problems of lag, crash and other problems that occur during the use of the application.
By obtaining the configuration data of the application device and the operation data of the application, determine the exception characteristic value when the application is running. If the characteristic value is greater than the preset threshold, the target resource configuration information is determined based on the data, and the resource parameter information of the application is configured through the information.
It realizes flexible adjustments to the application resource configuration, and can optimize resource configuration in real time when an application runs abnormally, improving application performance and user experience.
Smart Images

Figure CN114356554B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of software resource configuration, and particularly to a resource configuration method, apparatus, and server. Background Art
[0002] With the development of application (App) technology, application performance optimization technology has emerged. Application performance optimization technology is generally used to solve problems such as lag and crashes that occur during the use of applications.
[0003] In traditional technologies, methods such as reducing the picture quality of the APP and optimizing frame animations are usually adopted to minimize the number of frames of the frame animations in the APP without affecting the user viewing experience to solve problems such as lag and crashes. However, traditional technologies cannot flexibly configure the resource configuration information of the application. Summary of the Invention
[0004] Based on this, it is necessary to provide a resource configuration method, apparatus, and server for the above technical problems.
[0005] In a first aspect, this application provides a resource configuration method. The method includes:
[0006] Obtain first data, where the first data includes configuration data of the application device and running data of the application;
[0007] Determine a characteristic value of an abnormal running situation when the application is running according to the first data;
[0008] If the characteristic value of the abnormal running situation when the application is running is greater than a first preset threshold, determine target resource configuration information based on the first data;
[0009] Configure the resource parameter information of the application through the target resource configuration information.
[0010] In one embodiment, the target resource configuration information includes first configuration information. Determining the target resource configuration information based on the first data includes:
[0011] If the number of crashes of the application is greater than a second preset threshold, determine the first configuration information based on the first data.
[0012] In one embodiment, determining the first configuration information based on the first data includes:
[0013] Analyze the first data to obtain a first analysis result, where the first analysis result includes the type of the application device and the performance parameter configuration range corresponding to the application device;
[0014] Determine first configuration information according to the first analysis result, so as to configure resource parameter information of the application according to the first configuration information;
[0015] Wherein, the first configuration information includes at least one of the following information: a first frame number reduction ratio of the number of frames of the frame animation, a second frame number reduction ratio of the number of frames of the system animation, a first quality reduction ratio of the quality of the loaded pictures, a first special effect stop ratio during the use of the application, a first timer closing ratio, a first paging reduction ratio of the paging size of the data requested by the application, and a first resource cache reduction ratio.
[0016] In one embodiment, the target resource configuration information further includes second configuration information, and the method further includes:
[0017] If the application crashes again after configuring the resource parameter information of the application according to the first configuration information, determine the second configuration information according to the first configuration information, so as to configure the resource parameter information of the application according to the second configuration information;
[0018] Wherein, the second configuration information includes at least one of the following information: a third frame number reduction ratio of the number of frames of the frame animation, a fourth frame number reduction ratio of the number of frames of the system animation, a second quality reduction ratio of the quality of the loaded pictures, a second paging reduction ratio of the paging size of the data requested by the application, a second resource cache reduction ratio, turning off the special effects during the use of the application, turning off the timer, stopping the picture rendering, reducing the first timeout time for the application to load pictures, and increasing the first number of attempts to retry when the application fails to load pictures.
[0019] In one embodiment, the target resource configuration information includes third configuration information, and the method includes:
[0020] If the total number of pages with a frame transmission speed lower than a third preset threshold is greater than a preset number, determine third configuration information based on the first data.
[0021] In one embodiment, the determining the third configuration information based on the first data includes:
[0022] Analyze the first data to determine a second analysis result, where the second analysis result includes the type of the user device and the performance parameter configuration range corresponding to the application device;
[0023] Determine third configuration information according to the second analysis result, so as to configure the resource parameter information of the application according to the third configuration information;
[0024] Among them, the third configuration information includes at least one of the following information: the fifth frame number reduction ratio of the number of frames of the frame animation, the sixth frame number reduction ratio of the number of frames of the system animation, the third quality reduction ratio of the quality of the loaded pictures, the second dynamic effect stop ratio during the use of the application program, the second timer shutdown ratio, the third paging reduction ratio of the paging size of the data requested by the application program, and the reduced third resource cache ratio.
[0025] In one embodiment, the target resource configuration information further includes fourth configuration information, and the method further includes:
[0026] If, after configuring the resource parameter information of the application program according to the third configuration information, the preset number of pages with a frame transmission speed lower than the third preset threshold appears again, determine the fourth configuration information according to the third configuration information;
[0027] Among them, the fourth configuration information includes at least one of the following information: the seventh frame number reduction ratio of the number of frames of the frame animation, the eighth frame number reduction ratio of the number of frames of the system animation, the fourth quality reduction ratio of the quality of the loaded pictures, the fourth paging reduction ratio of the paging size of the data requested by the application program, the reduced fourth resource cache ratio, turning off the dynamic effects during the use of the application program, turning off the timer, stopping the picture rendering, increasing the second timeout time for the application program to load pictures, and increasing the second number of attempts when the application program fails to load pictures.
[0028] In one embodiment, the target resource configuration information further includes fifth configuration information, and the method includes:
[0029] If the number of consecutive startups of the application program whose startup process duration is greater than the preset startup duration is greater than the third preset threshold, or the number of lags of the application program within the first preset time is greater than the fourth preset threshold, determine the fifth configuration information based on the first data.
[0030] In one embodiment, the determining the fifth configuration information based on the first data includes:
[0031] Analyze the first data to obtain a third analysis result, where the third analysis result includes the type of the application device and the performance parameter configuration range corresponding to the application device;
[0032] According to the third analysis result, determine the fifth configuration information to configure the resource parameter information of the application program according to the fifth configuration information;
[0033] Among them, the fifth configuration information includes at least one of the following information: disabling the animation during the use of the application, the third timer shutdown ratio, reducing the still image rendering, and the fifth paging reduction ratio of the paging size of the data requested by the application.
[0034] In one embodiment, the target resource configuration information further includes sixth configuration information, and the method includes:
[0035] When the number of times of failed picture loading of the application is greater than a fifth preset threshold within a second preset time, determining the sixth configuration information based on the first data.
[0036] In one embodiment, the determining the sixth configuration information based on the first data includes:
[0037] Analyzing the first data to obtain a fourth analysis result, where the fourth analysis result includes the type of the application device and the performance parameter configuration range corresponding to the application device;
[0038] Determining the sixth configuration information according to the fourth analysis result to configure the resource parameter information of the application according to the sixth configuration information;
[0039] Among them, the sixth configuration information includes at least one of the following information: the ninth frame number reduction ratio of the number of frames of the frame animation, the tenth frame number reduction ratio of the number of frames of the system animation, the fifth quality reduction ratio of the quality of the loaded picture, the sixth paging reduction ratio of the paging size of the data requested by the application, increasing the third timeout time for the application to load pictures, and increasing the third number of attempts when the application fails to load pictures.
[0040] In a second aspect, the present application provides a resource configuration device. The device includes:
[0041] A data acquisition module, configured to acquire first data, where the first data includes configuration data of an application device and running data of an application;
[0042] A determination module, configured to determine a characteristic value of an abnormal running situation when the application is running according to the first data;
[0043] A configuration information acquisition module, configured to determine target resource configuration information based on the first data when the characteristic value of the abnormal running situation when the application is running is greater than a first preset threshold;
[0044] An information configuration module, configured to configure the resource parameter information of the application through the target resource configuration information.
[0045] In a third aspect, the present application provides a server. The server includes a memory and a processor. The memory stores a computer application program. When the processor executes the computer application program, the following steps are implemented:
[0046] Obtain first data, where the first data includes configuration data of an application device and running data of an application program;
[0047] Determine a characteristic value of an abnormal running situation when the application program is running according to the first data;
[0048] If the characteristic value of the abnormal running situation when the application program is running is greater than a first preset threshold, determine target resource configuration information based on the first data;
[0049] Configure resource parameter information of the application program through the target resource configuration information.
[0050] For the above resource configuration method, device and server, the server can obtain first data, determine a characteristic value of an abnormal running situation when the application program is running according to the first data. If the characteristic value of the abnormal running situation when the application program is running is greater than a first preset threshold, determine target resource configuration information based on the first data, and configure resource parameter information of the application program through the target resource configuration information. This method can obtain the configuration data of the application device and the running data of the application program in real time, then process the first data to determine the target resource configuration information corresponding to different application devices, and further flexibly configure the resource parameter information of the application program according to the target resource configuration information. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 It is an internal structure diagram of a server in an embodiment;
[0052] Figure 2 It is a schematic flowchart of a resource configuration method in an embodiment;
[0053] Figure 3 It is a schematic flowchart of a method for determining first configuration information in an embodiment;
[0054] Figure 4 It is a schematic flowchart of a method for determining third configuration information in another embodiment;
[0055] Figure 5 It is a schematic flowchart of a method for determining fifth configuration information in another embodiment;
[0056] Figure 6 It is a schematic flowchart of a method for determining sixth configuration information in another embodiment;
[0057] Figure 7 The structural block diagram of a resource allocation device in an embodiment. Specific implementation manners
[0058] In order to make the objectives, technical solutions and advantages of the present application clearer and more understandable, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0059] The resource allocation method provided by the present application can be applicable to Figure 1 the server shown in the figure. Among them, various application programs with different functions can be installed on the server. As Figure 1 shown in the figure, the server includes a processor, a memory, a network interface, a display screen, and an input device connected through a system bus. Among them, the processor of the server is used to provide computing and control capabilities. The memory of the server includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer application programs. The internal memory provides an environment for the operation of the operating system and computer application programs in the non-volatile storage medium. The database of the server is used to store the configuration data of application devices, the abnormal operation data of the currently running application programs, and the normal operation data within a historical time period. The network interface of the server is used to communicate with an external endpoint through a network connection. When the computer application program is executed by the processor, it implements a resource allocation method.
[0060] Those skilled in the art can understand that Figure 1 the structure shown in the figure is only a block diagram of some structures related to the solution of the present application, and does not constitute a limitation on the server to which the solution of the present application is applied. The specific server may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.
[0061] In one embodiment, as Figure 2 shown in the figure, a resource allocation method is provided. Taking the method applied to the server in Figure 1 as an example for description, it includes the following steps:
[0062] S100. Obtain first data, where the first data includes the configuration data of application devices and the operation data of application programs.
[0063] Specifically, the application device can be an electronic device with the function of installing application programs, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, or a personal digital assistant. After the application device starts the installed application program, it can collect the abnormal operation data of the current running of the application program in real time. The configuration data of the above application device can be the configuration information pre-stored in the application device, and these configuration data can be obtained when the application device leaves the factory. However, when the version of the application device changes, the configuration data of the current version of the application device can be obtained to overwrite the original configuration data. The above configuration data can be the self-configuration information pre-stored in the application devices of different operating systems, such as the model of the application device, the memory occupancy value, the network card, the CPU, the attributes of the display screen, and so on. The above operating systems can be different versions of the windows system, the linux system, and so on. The operation data of the application program can be the time required for the application program to start, the memory occupancy during the use of the application program, the number of frames per second transmitted when triggering different pages in the application program, the time required to load pictures during the use of the application program, and so on.
[0064] It can be understood that the operation data of the application program can be the abnormal operation data and the normal operation data generated during the operation of the application program obtained by the application device in real time, and the operation data can be continuously updated at a fixed time interval, so as to avoid the situation of excessive space consumption caused by infinite data collection. The above fixed time interval can be any time, such as 2 hours, 4 hours, 6 hours, 24 hours, and so on. The abnormal operation data can be the operation data collected by the application device when the application program is in an abnormal operation situation. The above abnormal operation situation can be the situation of the application device crashing due to excessive memory, the situation where the number of frames per second transmitted by a preset number of pages in the application program is less than the preset frame number threshold, the situation of the application device crashing and freezing, and so on.
[0065] In this embodiment, the application device can obtain the first data and then send the first data to the server for subsequent processing by the server. The application device can store the first data in a fixed format and then send the first data in the fixed format to the server. Among them, the fixed format can be the format of rows and columns, the document format, but in this embodiment, the fixed format can be the key-value pair format. Also, the application device can obtain the time stamp corresponding to each first data and send the time stamp corresponding to each first data to the server. The time stamp can be the time when the first data is collected.
[0066] S200. Determine the characteristic value of the abnormal operation situation when the application program is running according to the first data.
[0067] Specifically, the server can perform analysis processing, arithmetic processing, comparison processing, etc. on the first data to obtain the characteristic values of abnormal operation conditions during the operation of the application program. The characteristic values of abnormal operation conditions during the operation of the above application program can be understood as the total number of occurrences of various abnormal operation conditions during the operation of the application program, the number of occurrences corresponding to various abnormal operation conditions during the operation of the application program, the occurrence frequency corresponding to various abnormal operation conditions during the occurrence of multiple abnormal operation conditions, etc., and can also be other characteristic values, which are not limited herein.
[0068] S300. If the characteristic value of the abnormal operation condition during the operation of the application program is greater than the first preset threshold, determine the target resource configuration information based on the first data.
[0069] Specifically, the first preset threshold can be a threshold set by the user, and the first preset threshold corresponds to the characteristic value of the abnormal operation condition during the operation of the application program. Among them, when it is determined that the characteristic value of the abnormal operation condition during the operation of the application program is greater than the first preset threshold, the server can further perform analysis processing, arithmetic processing, comparison processing, etc. on the first data to obtain the target resource configuration information.
[0070] It should be noted that the above target resource configuration information can be at least one of the following information: the reduction ratio of the number of frames of the frame animation, the reduction ratio of the number of frames of the system animation, the reduction ratio of the quality of the loaded picture, the stop ratio of the dynamic effect during the use of the application program, the timer closing ratio, the picture rendering start / stop instruction, the reduction of the timeout time for the application program to load pictures, the reduction ratio of the paging size of the data requested by the application program, the reduction ratio of the number of concurrent tasks during the operation of the application program, and the reduction ratio of the resource cache.
[0071] S400. Configure the resource parameter information of the application program through the target resource configuration information.
[0072] Specifically, the server can adjust the resource parameter information of the application program in real time according to the determined target resource configuration information.
[0073] In the above resource allocation method, the server can obtain first data, and based on the first data, determine the characteristic value of the abnormal operation situation when the application program is running. If the characteristic value of the abnormal operation situation when the application program is running is greater than the first preset threshold, determine the target resource allocation information based on the first data, and configure the resource parameter information of the application program through the target resource allocation information; this method can obtain the configuration data of the application device and the running data of the application program in real time, then process the first data, determine the target resource allocation information corresponding to different application devices, and further flexibly configure the resource parameter information of the application program according to the target resource allocation information, so as to ensure the smoothness of the user using the application program, improve the resource allocation effect, and improve the user experience.
[0074] As one of the embodiments, the target resource allocation information includes first configuration information. The step of determining the target resource allocation information based on the first data in S300 may include: if the number of crashes of the application program is greater than the second preset threshold, determine the first configuration information based on the first data.
[0075] Specifically, the server can record the system memory value occupied by the current server when the application program is running in real time, and determine whether the current memory value is greater than the preset memory threshold. If it is determined that the current memory value is greater than the preset memory threshold, the system of the application device will crash, and at this time, the application program will crash. The preset memory threshold can be set customarily, which can be understood as the minimum critical memory value when the application program crashes. At the same time, the server can record the number of crashes of the application program, and can determine whether the number of crashes of the application program is greater than the second preset threshold. If it is determined that the number of crashes of the application program is greater than the second preset threshold, it indicates that the running memory value of the current application device is too large. At this time, the first data can be analyzed, processed, compared, etc. to obtain the first configuration information, so as to adjust the resource parameters according to the first configuration information.
[0076] It should be noted that if the number of crashes of the application program is greater than the second preset threshold, it indicates that the resource usage situation of the application program has caused inconvenience to the user when using the application program. At this time, it is necessary to determine the optimal configuration information to adjust the resource parameters.
[0077] Among them, as Figure 3 shown, the step of determining the first configuration information based on the first data may specifically include:
[0078] S310. Analyze the first data to obtain a first analysis result, where the first analysis result includes the type of the application device and the performance parameter configuration range corresponding to the application device.
[0079] It should be noted that the server can classify application devices according to the configuration data of the application devices and the preset configuration thresholds, determine the types of application devices, such as high-end machines, low-end machines, and other types. The above preset configuration thresholds can be custom-set according to the actual situation, and different configuration parameters have corresponding preset configuration thresholds. Multiple different configuration parameters are compared with the corresponding preset configuration thresholds respectively, and the specific type of the application device can be determined when the preset conditions are met simultaneously.
[0080] Furthermore, the server can determine the performance parameter configuration range of the corresponding type of application device according to the running data of the application program and the preset memory occupancy curve. The above preset memory occupancy curve can be the memory occupancy curve corresponding to a period of time when the performance of the application program reaches the best without causing a large amount of network data transmission to affect the use of the application program. The corresponding memory occupancy curve can be obtained in real time through the memory occupancy value within a period of time in the running data of the application program, and the period of time is the same as the period of time corresponding to the preset memory occupancy curve. The server can compare the memory occupancy curve obtained in real time with the preset memory occupancy curve, and determine the performance parameter configuration range of the corresponding type of application device according to the comparison result and the actual requirements.
[0081] S320. Determine the first configuration information according to the first analysis result, so as to configure the resource parameter information of the application program according to the first configuration information;
[0082] Among them, the first configuration information includes at least one of the following information: the first frame number reduction ratio of the number of frames of the frame animation, the second frame number reduction ratio of the number of frames of the system animation, the first quality reduction ratio of the quality of the loaded pictures, the first dynamic effect stop ratio during the use of the application program, the first timer closing ratio, the first paging reduction ratio of the paging size of the data requested by the application program, and the first resource cache reduction ratio.
[0083] Specifically, the server can determine the specific value of the performance parameter configuration according to the performance parameter configuration range of the corresponding type of application device, and use this specific value as the first configuration information. Further, adjust the resource parameters according to the first configuration information to enable the application to reduce the number of frames of frame animations and system animations, reduce the quality of loaded pictures, stop some of the page animations during the use of the application, turn off some timers, reduce the paging size of the data requested by the application, and / or reduce resource caching operations, thereby reducing the read and write operations during the use of the application and reducing the tasks (such as resource updates) when the application runs in the background, further reducing the running memory of the application device. Among them, according to actual needs, at least one of the following can be determined: the first frame reduction ratio of the number of frames of the frame animation, the second frame reduction ratio of the number of frames of the system animation, the first quality reduction ratio of the quality of the loaded pictures, the first animation stop ratio during the use of the application, the first timer off ratio, the first paging reduction ratio of the paging size of the data requested by the application, and the first resource cache reduction ratio. The number of frames of the above system animation can be understood as the number of frames of the animation displayed by the application device, the quality of the loaded pictures can be understood as the clarity of the loaded pictures, the timer can be the timer for the application device to display one frame of picture, and the paging size of the data requested by the application can be understood as the data volume of all the pictures loaded during the process of determining the target through keyword search requests.
[0084] The above resource configuration method can first determine the type of the application device, and further determine the configuration information according to the type of the application device, so as to be able to flexibly configure the resource parameters according to the type of the application device, which can not only be applicable to the resource configuration of low-end machines, but also applicable to the resource configuration of high-end machines. At the same time, it takes into account the user's need for smooth and stable use of the application, and makes the resource configuration effect better, further improving the user experience.
[0085] As one of the embodiments, the target resource configuration information further includes second configuration information, and the resource configuration method may further include: if the application crashes again after configuring the resource parameter information of the application according to the first configuration information, determine the second configuration information according to the first configuration information, so as to configure the resource parameter information of the application according to the second configuration information;
[0086] Among them, the second configuration information includes at least one of the following information: the third frame reduction ratio of the number of frames of the frame animation, the fourth frame reduction ratio of the number of frames of the system animation, the second quality reduction ratio of the quality of the loaded pictures, the second paging reduction ratio of the paging size of the data requested by the application, the second resource cache reduction ratio, turning off the animations during the use of the application, turning off the timer, stopping picture rendering, reducing the first timeout time for the application to load pictures, and increasing the first number of attempts when the application fails to load pictures again.
[0087] Specifically, if the application crashes again after the resource parameter information of the application is configured through the determined first configuration information, it indicates that the first configuration information is not yet the optimal configuration information. At this time, the server can further determine the second configuration information based on the determined first configuration information. Further, adjust the resource parameters according to the second configuration information, so that the application reduces the number of frames of frame animations and system animations, reduces the quality of loaded pictures, stops various dynamic effects on the page during the use of the application, turns off the timer, reduces the paging size of the data requested by the application, no longer performs rendering processing such as adding rounded corners and shadows to the pictures in the application, reduces the timeout time for the application to load pictures, reduces the number of times the application attempts to load pictures again after the picture loading fails, and / or reduces resource caching operations, thereby reducing the read and write operations during the use of the application, reducing the concurrency of tasks during the operation of the application, and reducing the tasks (such as resource updates, etc.) of the application when running in the background, thereby reducing the pressure on the application device during the operation of the application. Optionally, the reduction ratio in the second configuration information can be greater than the reduction ratio in the first configuration information. Some of the configuration information in the first configuration information can be the same as some of the configuration information in the second configuration information, and all of the configuration information in the first configuration information can be different from all of the configuration information in the second configuration information.
[0088] In this embodiment, the third frame reduction ratio in the second configuration information can be greater than the first frame reduction ratio, and the fourth frame reduction ratio can be greater than the second frame reduction ratio.
[0089] Exemplarily, the first frame reduction ratio in the first configuration information can be a percentage within 20%-30%, and the second frame reduction ratio can be a percentage within 20%-30%. In this case, the third frame reduction ratio in the second configuration information can be a percentage within 30%-40%, and the fourth frame reduction ratio can be a percentage within 30%-40%.
[0090] The above resource configuration method can readjust the determined first configuration information to obtain the optimal second configuration information, so that the resource parameters of the application device are configured in an optimal state and the performance reaches the optimum, further improving the user experience.
[0091] As one of the embodiments, the target resource configuration information includes the third configuration information, and the above resource configuration method can include: when the total number of pages with a frame transmission speed lower than the third preset threshold is greater than the preset number, determining the third configuration information based on the first data.
[0092] Specifically, when entering different pages through an application, there is a corresponding frame transmission speed. Therefore, the server can count the number of pages with a frame transmission speed lower than the third preset threshold during the process of entering multiple different pages through the application, that is, the total number. Then, it determines whether the total number of pages with a frame transmission speed lower than the third preset threshold is greater than the preset number. If it is determined that the total number of pages with a frame transmission speed lower than the third preset threshold is greater than the preset number, the first data can be further analyzed, processed arithmetically, compared, etc. to obtain the third configuration information. Both the above-mentioned preset number and the third preset threshold can be set to any value. However, in this embodiment, the preset number can be equal to 5, and the third preset threshold can be equal to 50.
[0093] Among them, as Figure 4 shown, the steps of determining the third configuration information based on the first data may specifically include:
[0094] S330. Analyze the first data to determine the second analysis result, where the second analysis result includes the type of the user device and the performance parameter configuration range corresponding to the application device.
[0095] It should be noted that the server can classify the application devices according to their performance levels based on the configuration data of the application devices and the preset configuration thresholds to determine the types of the application devices, such as high-end machines, low-end machines, etc. The above-mentioned preset configuration thresholds can be custom-set according to the actual situation, and different configuration parameters have corresponding preset configuration thresholds. Multiple different configuration parameters are respectively compared with the corresponding preset configuration thresholds, and the specific type of the application device can be determined when the preset conditions are met simultaneously.
[0096] Furthermore, the server can determine the performance parameter configuration range corresponding to the corresponding type of application device according to the type of the application device. In this embodiment, the implementation process of the above step S330 may be the same as that of the above step S310. Further, the server can determine the performance parameter configuration range corresponding to the corresponding type of application device according to the duration required to load pictures during the use of the application in the running data of the application and the preset duration required to load pictures during the use of the application. The above-mentioned preset duration can be the standard duration required to load pictures when the performance of the application reaches the best without causing a large amount of network data transmission to affect the use of the application. The server can compare the duration required to load pictures during the use of the application with the preset duration and determine the performance parameter configuration range corresponding to the corresponding type of application device according to the comparison result and the actual requirements.
[0097] S340. Determine the third configuration information according to the second analysis result to configure the resource parameter information of the application according to the third configuration information;
[0098] Among them, the third configuration information includes at least one of the following information: the fifth frame reduction ratio of the number of frames of the frame animation, the sixth frame reduction ratio of the number of frames of the system animation, the third quality reduction ratio of the quality of the loaded pictures, the second animation stop ratio during the use of the application, the second timer closing ratio, the third paging reduction ratio of the paging size of the data requested by the application, and the third resource cache reduction ratio.
[0099] Specifically, the server can determine the specific value of the performance parameter configuration according to the performance parameter configuration range of the corresponding type of application device, and use this specific value as the third configuration information. Further, the resource parameters are adjusted according to the third configuration information, so that the application reduces the number of frames of the frame animation and the system animation, reduces the quality of the loaded pictures, stops some animations on the page during the use of the application, closes some timers, reduces the paging size of the data requested by the application, and / or reduces the resource cache operation, thereby reducing the read and write operations during the use of the application and improving the frame transmission speed of the page. Among them, the fifth frame reduction ratio of the number of frames of the frame animation, the sixth frame reduction ratio of the number of frames of the system animation, the third quality reduction ratio of the quality of the loaded pictures, the second animation stop ratio during the use of the application, the second timer closing ratio, the third paging reduction ratio of the paging size of the data requested by the application, and the third resource cache reduction ratio can be determined according to actual needs.
[0100] The above resource configuration method can determine the corresponding configuration information according to different abnormal operation situations, so as to configure the resource parameter information of the application specifically, optimize the performance of the application, and further improve the user experience.
[0101] As one of the embodiments, the target resource configuration information further includes the fourth configuration information, and the above resource configuration method may further include: if there are a preset number of pages with a frame transmission speed lower than the third preset threshold again after configuring the resource parameter information of the application according to the third configuration information, determining the fourth configuration information according to the third configuration information;
[0102] Among them, the fourth configuration information includes at least one of the following information: the seventh frame reduction ratio of the number of frames of the frame animation, the eighth frame reduction ratio of the number of frames of the system animation, the fourth quality reduction ratio of the quality of the loaded pictures, the fourth paging reduction ratio of the paging size of the data requested by the application, the fourth resource cache reduction ratio, closing the animation during the use of the application, closing the timer, stopping the picture rendering, increasing the second timeout time for the application to load pictures, and increasing the second number of attempts when the application fails to load pictures.
[0103] Specifically, if there are a preset number of pages with a frame transmission speed lower than the third preset threshold again after the resource parameter information of the application is configured through the determined third configuration information, it indicates that the third configuration information is not the optimal configuration information yet. At this time, the server can further determine the fourth configuration information based on the determined third configuration information. Further, the resource parameters are adjusted according to the fourth configuration information, so that the application reduces the number of frames of frame animations and system animations, reduces the quality of loaded pictures, stops all the dynamic effects of the pages during the use of the application, closes the timer, reduces the paging size of the data requested by the application, no longer performs rendering processing such as adding rounded corners and shadows to the pictures in the application, reduces the timeout time for the application to load pictures, and / or reduces the number of times the application attempts to load pictures again when the picture loading fails. Optionally, the reduction ratio in the fourth configuration information can be greater than the reduction ratio in the third configuration information. Some of the configuration information in the third configuration information can be the same as some of the configuration information in the fourth configuration information, and all of the configuration information in the third configuration information can be different from all of the configuration information in the fourth configuration information.
[0104] In this embodiment, the reduction ratio of the seventh number of frames in the fourth configuration information can be greater than the reduction ratio of the fifth number of frames, and the reduction ratio of the eighth number of frames can be greater than the reduction ratio of the sixth number of frames.
[0105] The above resource configuration method can adjust the determined third configuration information again to obtain the optimal fourth configuration information, so that the resource parameters of the application device are configured in an optimal state and the performance reaches the best, further improving the user experience.
[0106] As one of the embodiments, the target resource configuration information further includes the fifth configuration information. The above resource configuration method may include: if the number of consecutive starts of the application whose required duration during the startup process is greater than the preset startup duration is greater than the third preset threshold, or the number of freezes of the application within the first preset time is greater than the fourth preset threshold, the fifth configuration information is determined based on the first data.
[0107] Specifically, the server can obtain the required duration of each application startup process and determine whether the required duration of the application startup process is greater than the preset startup duration. If it is determined that the required duration of the application startup process is greater than the preset startup duration and the number of consecutive occurrences of this situation is greater than the third preset threshold, the first data can be further analyzed, calculated, compared, etc. to obtain the fifth configuration information. Or, the server can count the number of freezes of the application within the first preset time and determine whether the number of freezes is greater than the fourth preset threshold. If it is determined that the number of freezes is greater than the fourth preset threshold, the first data can be further analyzed, calculated, compared, etc. to obtain the fifth configuration information.
[0108] Among them, the above-mentioned third preset threshold may be the maximum startup duration for determining whether the application is smooth during startup, and the above-mentioned fourth preset threshold may be the maximum number of freezes that cause the startup process to be unsmooth due to freezes during the startup of the application. Both the above-mentioned third preset threshold and the fourth preset threshold can be set to any value, which can be the same or different. However, in this embodiment, the third preset threshold may be equal to 5.
[0109] Among them, as Figure 5 shown, the step of determining the fifth configuration information based on the first data may specifically include:
[0110] S350. Analyze the first data to obtain a third analysis result, where the third analysis result includes the type of the application device and the performance parameter configuration range corresponding to the application device.
[0111] It should be noted that the implementation process of step S350 may be the same as that of the above-mentioned steps S330 and S310, and details will not be repeated in this embodiment.
[0112] S360. Determine the fifth configuration information according to the third analysis result, so as to configure the resource parameter information of the application program according to the fifth configuration information;
[0113] Among them, the fifth configuration information includes at least one of the following information: turning off the animation effects during the use of the application program, the third timer shutdown ratio, reducing the stopped picture rendering, and the fifth paging reduction ratio of the paging size of the data requested by the application program.
[0114] It can be understood that the server can determine the specific value of the performance parameter configuration according to the performance parameter configuration range of the corresponding type of application device, and use this specific value as the fifth configuration information. Further, the resource parameters are adjusted according to the fifth configuration information, so as to stop some animation effects on the page during the use of the application program, turn off some timers, no longer perform rendering processing such as adding rounded corners and shadows to the pictures in the application program, reduce the paging size of the data requested by the application program, and / or reduce resource caching operations, thereby reducing the read and write operations during the use of the application program, and thus ensuring the smooth use of the application program. Among them, at least one of turning off the animation effects during the use of the application program, the third timer shutdown ratio, reducing the stopped picture rendering, and the fifth paging reduction ratio of the paging size of the data requested by the application program can be determined according to actual needs.
[0115] The above resource configuration method can determine the corresponding configuration information according to different abnormal operation situations, so as to configure the resource parameter information of the application program in a targeted manner, so that the performance of the application program reaches the optimal, and further improve the user experience.
[0116] As one of the embodiments, the target resource configuration information further includes sixth configuration information; the resource configuration method may include: when the number of times of failed picture loading of the application program exceeds a fifth preset threshold within a second preset time, determining the sixth configuration information based on the first data.
[0117] Specifically, the server may count the number of times of failed picture loading of the application program within the second preset time, and determine whether the number of times of failed picture loading of the application program within the second preset time exceeds the fifth preset threshold. If it is determined that the number of times of failed picture loading of the application program within the second preset time exceeds the fifth preset threshold, the first data may be further analyzed, processed, compared, etc. to obtain the sixth configuration information. Among them, the above-mentioned fifth preset threshold may be the minimum number of failed loadings for determining network problems caused by failed picture loading during the startup of the application program. The above-mentioned fifth preset threshold may be the same as or different from other preset thresholds, and the fifth preset threshold may also be set to any value.
[0118] Among them, as Figure 6 shown, the step of determining the sixth configuration information based on the first data may specifically include:
[0119] S370. Analyze the first data to obtain a fourth analysis result, where the fourth analysis result includes the type of the application device and the performance parameter configuration range corresponding to the application device.
[0120] It should be noted that the implementation process of step S370 may be the same as that of the above-mentioned steps S330 and S310, and this embodiment will not be elaborated here.
[0121] S380. Determine the sixth configuration information according to the fourth analysis result, so as to configure the resource parameter information of the application program according to the sixth configuration information;
[0122] Among them, the sixth configuration information includes at least one of the following information: the ninth frame number reduction ratio of the number of frames of the frame animation, the tenth frame number reduction ratio of the number of frames of the system animation, the fifth quality reduction ratio of the quality of the loaded pictures, the sixth paging reduction ratio of the paging size of the data requested by the application program, the third timeout time for increasing the picture loading of the application program, and the third number of times for retrying when the picture loading of the application program fails.
[0123] It can be understood that the server can determine the specific value of the performance parameter configuration according to the performance parameter configuration range of the corresponding type of application device, and use this specific value as the sixth configuration information. Further, the resource parameters are adjusted according to the sixth configuration information, so that the application reduces the number of frames of frame animations and system animations, reduces the quality of loaded pictures, reduces the paging size of data requested by the application, reduces the timeout time for the application to load pictures, and / or increases the number of times the application attempts to load pictures again after a loading failure. Among them, according to actual requirements, at least one of the following can be determined: the ninth frame reduction ratio of the number of frames of frame animations, the tenth frame reduction ratio of the number of frames of system animations, the fifth quality reduction ratio of the quality of loaded pictures, the sixth paging reduction ratio of the paging size of data requested by the application, the third timeout time for the application to load pictures, and the third number of times to attempt again when the application fails to load pictures.
[0124] The above resource configuration method can determine the corresponding configuration information according to different abnormal running situations, so as to configure the resource parameter information of the application program specifically, so that the performance of the application program reaches the optimal, and further improve the user experience.
[0125] For the convenience of understanding by those skilled in the art, the resource configuration method provided by the present application is introduced by taking the execution entity as the server as an example. Specifically, the method includes:
[0126] (1) Obtain first data, where the first data includes the configuration data of the application device and the running data of the application program.
[0127] (2) Determine the characteristic value of the abnormal running situation when the application program is running according to the first data.
[0128] (3) If the characteristic value of the abnormal running situation when the application program is running is greater than the first preset threshold, and the number of crashes of the application program is greater than the second preset threshold, analyze the first data to obtain a first analysis result, where the first analysis result includes the type of the application device and the performance parameter configuration range corresponding to the application device.
[0129] (4) Determine the first configuration information according to the first analysis result, so as to configure the resource parameter information of the application program according to the first configuration information; among them, the target resource configuration information includes the first configuration information, and the first configuration information includes at least one of the following information: the first frame reduction ratio of the number of frames of frame animations, the second frame reduction ratio of the number of frames of system animations, the first quality reduction ratio of the quality of loaded pictures, the first dynamic effect stop ratio during the use of the application program, the first timer closing ratio, the first paging reduction ratio of the paging size of data requested by the application program, and the reduced first resource cache ratio.
[0130] (5) If the application crashes again after configuring the resource parameter information of the application according to the first configuration information, determine the second configuration information according to the first configuration information, so as to configure the resource parameter information of the application according to the second configuration information;
[0131] Among them, the second configuration information includes at least one of the following information: the third frame number reduction ratio of the number of frames of the frame animation, the fourth frame number reduction ratio of the number of frames of the system animation, the second quality reduction ratio of the quality of the loaded pictures, the second paging reduction ratio of the paging size of the data requested by the application, the second resource cache reduction ratio, turning off the special effects during the use of the application, turning off the timer, stopping the picture rendering, reducing the first timeout time for the application to load pictures, and increasing the first number of retries when the application fails to load pictures.
[0132] (6) If the total number of pages with a frame transmission speed lower than the third preset threshold is greater than the preset number, analyze the first data to determine the second analysis result, and the second analysis result includes the type of the user device and the performance parameter configuration range corresponding to the application device.
[0133] (7) According to the second analysis result, determine the third configuration information, so as to configure the resource parameter information of the application according to the third configuration information; among them, the third configuration information includes at least one of the following information: the fifth frame number reduction ratio of the number of frames of the frame animation, the sixth frame number reduction ratio of the number of frames of the system animation, the third quality reduction ratio of the quality of the loaded pictures, the second special effect stop ratio during the use of the application, the second timer off ratio, the third paging reduction ratio of the paging size of the data requested by the application, and the third resource cache reduction ratio.
[0134] (8) If, after configuring the resource parameter information of the application according to the third configuration information, there are again a preset number of pages with a frame transmission speed lower than the third preset threshold, determine the fourth configuration information according to the third configuration information;
[0135] Among them, the fourth configuration information includes at least one of the following information: the seventh frame number reduction ratio of the number of frames of the frame animation, the eighth frame number reduction ratio of the number of frames of the system animation, the fourth quality reduction ratio of the quality of the loaded pictures, the fourth paging reduction ratio of the paging size of the data requested by the application, the fourth resource cache reduction ratio, turning off the special effects during the use of the application, turning off the timer, stopping the picture rendering, increasing the second timeout time for the application to load pictures, and increasing the second number of retries when the application fails to load pictures.
[0136] (9) If the number of consecutive starts where the duration required for the application startup process is greater than the preset startup duration is greater than the third preset threshold, or the number of lags where the application lags within the first preset time is greater than the fourth preset threshold, analyze the first data to obtain a third analysis result, where the third analysis result includes the type of the application device and the corresponding performance parameter configuration range of the application device.
[0137] (10) Determine the fifth configuration information according to the third analysis result to configure the resource parameter information of the application according to the fifth configuration information; where the fifth configuration information includes at least one of the following information: turning off the animation effects during the use of the application, the third timer shutdown ratio, reducing the still image rendering, and the fifth paging reduction ratio of the paging size of the data requested by the application.
[0138] (11) If the number of times of failed picture loading where the application fails to load pictures within the second preset time is greater than the fifth preset threshold, analyze the first data to obtain a fourth analysis result, where the fourth analysis result includes the type of the application device and the corresponding performance parameter configuration range of the application device.
[0139] (12) Determine the sixth configuration information according to the fourth analysis result to configure the resource parameter information of the application according to the sixth configuration information; where the sixth configuration information includes at least one of the following information: the ninth frame reduction ratio of the number of frames of the frame animation, the tenth frame reduction ratio of the number of frames of the system animation, the fifth quality reduction ratio of the quality of the loaded pictures, the sixth paging reduction ratio of the paging size of the data requested by the application, increasing the third timeout time for the application to load pictures, and increasing the third number of attempts when the application fails to load pictures.
[0140] The execution processes of the above (1) to (12) can specifically refer to the descriptions of the above embodiments, and their implementation principles and technical effects are similar, so they will not be elaborated here.
[0141] It should be understood that although Figures 2 - 6 the steps in the flowchart of Figures 2 - 6 are shown in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear indication in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover,
[0142] In one embodiment, as Figure 7As shown, a resource configuration device is provided, including: a data acquisition module 11, a first determination module 12, a second determination module 13, and an information configuration module 14, where:
[0143] The data acquisition module 11 is configured to acquire first data, where the first data includes configuration data of an application device, abnormal operation data of the currently running application program, and normal operation data within a historical time period;
[0144] The first determination module 12 is configured to determine a characteristic value of an abnormal operation situation when the application program is running according to the first data;
[0145] The second determination module 13 is configured to determine target resource configuration information based on the first data when the characteristic value of the abnormal operation situation when the application program is running is greater than a first preset threshold;
[0146] The information configuration module 14 is configured to configure resource parameter information of the application program through the target resource configuration information.
[0147] The resource configuration device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be elaborated here.
[0148] In one embodiment, the target resource configuration information includes first configuration information, and the second determination module 13 includes: a first determination unit, where:
[0149] The first determination unit is configured to determine the first configuration information based on the first data when the number of crashes of the application program is greater than a second preset threshold.
[0150] The resource configuration device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be elaborated here.
[0151] In one embodiment, the first determination unit includes: a first analysis subunit and a first determination subunit, where:
[0152] The first analysis subunit is configured to analyze the first data to obtain a first analysis result, where the first analysis result includes the type of the application device and the performance parameter configuration range corresponding to the application device;
[0153] The first determination subunit is configured to determine the first configuration information according to the first analysis result so as to configure the resource parameter information of the application program according to the first configuration information;
[0154] Among them, the first configuration information includes at least one of the following information: the first frame reduction ratio of the number of frames of the frame animation, the second frame reduction ratio of the number of frames of the system animation, the first quality reduction ratio of the quality of the loaded pictures, the first dynamic effect stop ratio during the use of the application, the first timer closing ratio, the first paging reduction ratio of the paging size of the data requested by the application, and the first resource cache reduction ratio.
[0155] The resource configuration device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be elaborated here.
[0156] In one embodiment, the target resource configuration information further includes second configuration information, and the second determination module 13 further includes: a second determination unit, where:
[0157] The second determination unit is configured to, when the application crashes again after configuring the resource parameter information of the application according to the first configuration information, determine the second configuration information according to the first configuration information, so as to configure the resource parameter information of the application according to the second configuration information;
[0158] Among them, the second configuration information includes at least one of the following information: the third frame reduction ratio of the number of frames of the frame animation, the fourth frame reduction ratio of the number of frames of the system animation, the second quality reduction ratio of the quality of the loaded pictures, the second paging reduction ratio of the paging size of the data requested by the application, the second resource cache reduction ratio, turning off the dynamic effect during the use of the application, turning off the timer, stopping the picture rendering, reducing the first timeout time for the application to load pictures, and increasing the first number of times to retry when the application fails to load pictures.
[0159] The resource configuration device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be elaborated here.
[0160] In one embodiment, the target resource configuration information includes third configuration information, and the second determination module 13 includes: a third determination unit, where:
[0161] The third determination unit is configured to determine the third configuration information based on the first data when the total number of pages with a frame transmission speed lower than the third preset threshold is greater than the preset number.
[0162] The resource configuration device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be elaborated here.
[0163] In one embodiment, the third determination unit includes: a second analysis subunit and a second determination subunit, where:
[0164] A second analysis subunit, configured to analyze the first data and determine a second analysis result, where the second analysis result includes the type of the user equipment and the performance parameter configuration range corresponding to the application equipment;
[0165] A second determination subunit, configured to determine third configuration information according to the second analysis result, so as to configure the resource parameter information of the application according to the third configuration information;
[0166] Wherein, the third configuration information includes at least one of the following information: a fifth frame number reduction ratio of the number of frames of the frame animation, a sixth frame number reduction ratio of the number of frames of the system animation, a third quality reduction ratio of the quality of the loaded pictures, a second dynamic effect stop ratio during the use of the application, a second timer closing ratio, a third paging reduction ratio of the paging size of the data requested by the application, and a third resource cache reduction ratio.
[0167] The resource configuration device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be elaborated here.
[0168] In one embodiment, the target resource configuration information further includes fourth configuration information, and the second determination module 13 further includes: a fourth determination unit, where:
[0169] The fourth determination unit is configured to, when a preset number of pages with a frame transmission speed lower than a third preset threshold appear again after configuring the resource parameter information of the application according to the third configuration information, determine the fourth configuration information according to the third configuration information;
[0170] Wherein, the fourth configuration information includes at least one of the following information: a seventh frame number reduction ratio of the number of frames of the frame animation, an eighth frame number reduction ratio of the number of frames of the system animation, a fourth quality reduction ratio of the quality of the loaded pictures, a fourth paging reduction ratio of the paging size of the data requested by the application, a fourth resource cache reduction ratio, turning off the dynamic effect during the use of the application, turning off the timer, stopping the picture rendering, increasing the second timeout time for the application to load pictures, and increasing the second number of attempts when the application fails to load pictures.
[0171] The resource configuration device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be elaborated here.
[0172] In one embodiment, the target resource configuration information further includes fifth configuration information, and the second determination module 13 includes: a fifth determination unit, where:
[0173] A fifth determination unit, configured to determine fifth configuration information based on first data when the consecutive startup times required for the application startup process are greater than a preset startup time and the number of consecutive startups is greater than a third preset threshold, or when the number of lags of the application during a first preset time is greater than a fourth preset threshold.
[0174] The resource configuration device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be elaborated here.
[0175] In one embodiment, the fifth determination unit includes: a third analysis subunit and a third determination subunit, where:
[0176] The third analysis subunit is configured to analyze the first data to obtain a third analysis result, where the third analysis result includes the type of the application device and the performance parameter configuration range corresponding to the application device;
[0177] The third determination subunit is configured to determine the fifth configuration information according to the third analysis result, so as to configure the resource parameter information of the application according to the fifth configuration information;
[0178] Wherein, the fifth configuration information includes at least one of the following information: turning off the animation effects during the use of the application, the closing ratio of the third timer, reducing the stop picture rendering, and the fifth paging reduction ratio of the paging size of the application request data.
[0179] The resource configuration device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be elaborated here.
[0180] In one embodiment, the target resource configuration information further includes sixth configuration information, and the second determination module 13 includes: a sixth determination unit, where:
[0181] The sixth determination unit is configured to determine the sixth configuration information based on the first data when the number of loading failures of the application for loading pictures within a second preset time is greater than a fifth preset threshold.
[0182] The resource configuration device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be elaborated here.
[0183] In one embodiment, the sixth determination unit includes: a fourth analysis subunit and a fourth determination subunit, where:
[0184] The fourth analysis subunit is configured to analyze the first data to obtain a fourth analysis result, where the fourth analysis result includes the type of the application device and the performance parameter configuration range corresponding to the application device;
[0185] A fourth determination subunit, configured to determine sixth configuration information according to a fourth analysis result, so as to configure resource parameter information of an application according to the sixth configuration information;
[0186] Wherein, the sixth configuration information includes at least one of the following information: a ninth frame number reduction ratio of the number of frames of a frame animation, a tenth frame number reduction ratio of the number of frames of a system animation, a fifth quality reduction ratio of the quality of a loaded picture, a sixth paging reduction ratio of the paging size of data requested by an application, an increase in a third timeout time for an application to load a picture, and an increase in a third number of times to retry when an application fails to load a picture.
[0187] The resource configuration device provided in this embodiment may execute the above method embodiment, and its implementation principle and technical effects are similar, which will not be elaborated here.
[0188] For the specific limitations of the resource configuration device, reference may be made to the limitations on the resource configuration method in the above text, which will not be elaborated here. Each module in the above resource configuration device may be implemented in whole or in part by software, hardware, and their combination. The above modules may be embedded in or independent of a processor in a server in a hardware form, or may be stored in a memory in the server in a software form, so that the processor can call and execute the operations corresponding to the above modules.
[0189] In one embodiment, a server is provided, including a memory and a processor. A computer program is stored in the memory. When the processor executes the computer program, the following steps are implemented:
[0190] Obtain first data, where the first data includes configuration data of an application device, abnormal operation data of an application currently running, and normal operation data within a historical time period;
[0191] Determine a characteristic value of an abnormal operation situation when the application is running according to the first data;
[0192] If the characteristic value of the abnormal operation situation when the application is running is greater than a first preset threshold, determine target resource configuration information based on the first data;
[0193] Configure resource parameter information of the application through the target resource configuration information.
[0194] In one embodiment, a storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:
[0195] Obtain first data, where the first data includes configuration data of an application device, abnormal operation data of an application currently running, and normal operation data within a historical time period;
[0196] Determine the characteristic value of abnormal operation when the application program is running according to the first data;
[0197] When the characteristic value of abnormal operation when the application program is running is greater than the first preset threshold, determine the target resource configuration information based on the first data;
[0198] Configure the resource parameter information of the application program through the target resource configuration information.
[0199] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, storage, database, or other medium used in the various embodiments provided in the present application can include at least one of non-volatile and volatile memories. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.
[0200] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.
[0201] The above-described embodiments merely represent several implementation manners of the present application. Their descriptions are relatively specific and detailed, but should not be construed as limiting the scope of the invention patent. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application should be subject to the appended claims.
Claims
1. A resource allocation method, characterized in that, Applied to a server, the method includes: Obtain first data, where the first data includes configuration data of an application device and running data of an application program; According to the first data, determine a characteristic value of an abnormal running situation when the application program is running; the characteristic value is one of the total number of occurrences of various abnormal running situations of the application program, the number of occurrences corresponding to various abnormal running situations of the application program, and the occurrence frequency corresponding to various abnormal running situations; If the characteristic value of the abnormal running situation when the application program is running is greater than a first preset threshold, determine target resource configuration information based on the first data; Configure resource parameter information of the application program through the target resource configuration information; The target resource configuration information includes first configuration information; the determining of the target resource configuration information based on the first data and the configuring of the resource parameter information of the application program through the target resource configuration information includes: if the number of crashes of the application program is greater than a second preset threshold, analyze the first data to obtain a first analysis result, where the first analysis result includes the type of the application device and the performance parameter configuration range corresponding to the application device, and the performance parameter configuration range is determined according to the running data of the application program and a preset memory occupancy curve; according to the first analysis result, determine the first configuration information to configure the resource parameter information of the application program according to the first configuration information; where the first configuration information includes at least one of the following information: the first frame number reduction ratio of the number of frames of the frame animation, the second frame number reduction ratio of the number of frames of the system animation, the first quality reduction ratio of the quality of the loaded pictures, the first dynamic effect stop ratio during the use of the application program, the first timer shutdown ratio, the first paging reduction ratio of the paging size of the data requested by the application program, and the first resource cache reduction ratio.
2. The method according to claim 1, characterized in that, The target resource configuration information further includes second configuration information, and the method further includes: If the application program crashes again after configuring the resource parameter information of the application program according to the first configuration information, determine the second configuration information according to the first configuration information to configure the resource parameter information of the application program according to the second configuration information; Where the second configuration information includes at least one of the following information: the third frame number reduction ratio of the number of frames of the frame animation, the fourth frame number reduction ratio of the number of frames of the system animation, the second quality reduction ratio of the quality of the loaded pictures, the second paging reduction ratio of the paging size of the data requested by the application program, the second resource cache reduction ratio, turning off the dynamic effect during the use of the application program, turning off the timer, stopping picture rendering, reducing the first timeout time for the application program to load pictures, and increasing the first number of retries when the application program fails to load pictures.
3. The method according to claim 1, characterized in that, The target resource configuration information includes third configuration information, and the method includes: If the total number of pages with a frame transmission speed lower than a third preset threshold is greater than a preset number, determine the third configuration information based on the first data.
4. The method according to claim 3, characterized in that, The determining of the third configuration information based on the first data includes: Analyze the first data to determine a second analysis result, where the second analysis result includes the type of the user device and the performance parameter configuration range corresponding to the application device; Determine third configuration information according to the second analysis result, so as to configure the resource parameter information of the application according to the third configuration information; Wherein, the third configuration information includes at least one of the following information: the fifth frame number reduction ratio of the number of frames of the frame animation, the sixth frame number reduction ratio of the number of frames of the system animation, the third quality reduction ratio of the quality of the loaded pictures, the second dynamic effect stop ratio during the use of the application, the second timer shutdown ratio, the third paging reduction ratio of the paging size of the data requested by the application, and the third resource cache reduction ratio.
5. The method according to claim 4, characterized in that, The target resource configuration information further includes fourth configuration information, and the method further includes: If, after configuring the resource parameter information of the application according to the third configuration information, the preset number of pages with a frame transmission speed lower than a third preset threshold appears again, determine the fourth configuration information according to the third configuration information; Wherein, the fourth configuration information includes at least one of the following information: the seventh frame number reduction ratio of the number of frames of the frame animation, the eighth frame number reduction ratio of the number of frames of the system animation, the fourth quality reduction ratio of the quality of the loaded pictures, the fourth paging reduction ratio of the paging size of the data requested by the application, the fourth resource cache reduction ratio, turning off the dynamic effect during the use of the application, turning off the timer, stopping picture rendering, increasing the second timeout time for the application to load pictures, and increasing the second number of attempts when the application fails to load pictures.
6. The method according to claim 1, characterized in that, The target resource configuration information further includes fifth configuration information, and the method includes: If the number of consecutive starts of the application where the required duration for the application startup process is greater than a preset startup duration is greater than a third preset threshold, or the number of freezes of the application within a first preset time is greater than a fourth preset threshold, determine fifth configuration information based on the first data.
7. The method according to claim 6, characterized in that, The determining the fifth configuration information based on the first data includes: Analyze the first data to obtain a third analysis result, where the third analysis result includes the type of the application device and the performance parameter configuration range corresponding to the application device; Determine fifth configuration information according to the third analysis result, so as to configure the resource parameter information of the application according to the fifth configuration information; Wherein, the fifth configuration information includes at least one of the following information: turning off the dynamic effect during the use of the application, the third timer shutdown ratio, reducing stop picture rendering, and the fifth paging reduction ratio of the paging size of the data requested by the application.
8. The method according to claim 1, characterized in that, The target resource configuration information further includes sixth configuration information, and the method includes: If the number of loading failures of the application to load pictures within a second preset time is greater than a fifth preset threshold, determine sixth configuration information based on the first data.
9. The method according to claim 8, characterized in that, The determining the sixth configuration information based on the first data includes: Analyze the first data to obtain a fourth analysis result, where the fourth analysis result includes the type of the application device and the performance parameter configuration range corresponding to the application device; Determine sixth configuration information according to the fourth analysis result, so as to configure the resource parameter information of the application program according to the sixth configuration information; Wherein, the sixth configuration information includes at least one of the following information: the ninth frame number reduction ratio of the number of frames of the frame animation, the tenth frame number reduction ratio of the number of frames of the system animation, the fifth quality reduction ratio of the quality of the loaded pictures, the sixth paging reduction ratio of the paging size of the data requested by the application program, increasing the third timeout time for the application program to load pictures, and increasing the third number of attempts when the application program fails to load pictures; 10. A resource allocation device, characterized in that, Applied to a server, the device includes: A data acquisition module, configured to acquire first data, where the first data includes the configuration data of the application device and the running data of the application program; A determination module, configured to determine, according to the first data, a characteristic value of an abnormal running situation that occurs when the application program runs; the characteristic value is one of the total number of occurrences of various abnormal running situations that occur in the application program, the number of occurrences corresponding to various abnormal running situations that occur in the application program, and the occurrence frequency corresponding to various abnormal running situations; A configuration information acquisition module, configured to, when the characteristic value of the abnormal running situation that occurs when the application program runs is greater than a first preset threshold, determine target resource configuration information based on the first data; An information configuration module, configured to configure the resource parameter information of the application program through the target resource configuration information; The target resource configuration information includes first configuration information; the determining the target resource configuration information based on the first data and configuring the resource parameter information of the application program through the target resource configuration information includes: when the number of crashes of the application program is greater than a second preset threshold, analyzing the first data to obtain a first analysis result, where the first analysis result includes the type of the application device and the performance parameter configuration range corresponding to the application device, and the performance parameter configuration range is determined according to the running data of the application program and a preset memory occupancy curve; determining the first configuration information according to the first analysis result, so as to configure the resource parameter information of the application program according to the first configuration information; wherein, the first configuration information includes at least one of the following information: the first frame number reduction ratio of the number of frames of the frame animation, the second frame number reduction ratio of the number of frames of the system animation, the first quality reduction ratio of the quality of the loaded pictures, the first dynamic effect stop ratio during the use of the application program, the first timer closing ratio, the first paging reduction ratio of the paging size of the data requested by the application program, and the reduced first resource cache ratio.
11. A server, comprising a memory and a processor, the memory storing a computer application program, characterized in that, When the processor executes the computer application program, it implements the steps of the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Resource allocation method and device, terminal and storage medium
CN111240837A