CN114416208A - Application program adjusting method and device, electronic equipment and medium - Google Patents

Application program adjusting method and device, electronic equipment and medium Download PDF

Info

Publication number
CN114416208A
CN114416208A CN202210077286.8A CN202210077286A CN114416208A CN 114416208 A CN114416208 A CN 114416208A CN 202210077286 A CN202210077286 A CN 202210077286A CN 114416208 A CN114416208 A CN 114416208A
Authority
CN
China
Prior art keywords
data
functional module
state
executed
execution
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210077286.8A
Other languages
Chinese (zh)
Inventor
张航
李志�
林俊龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN202210077286.8A priority Critical patent/CN114416208A/en
Publication of CN114416208A publication Critical patent/CN114416208A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/865Monitoring of software

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Mathematical Physics (AREA)
  • Stored Programmes (AREA)

Abstract

The disclosure provides an application program adjusting method, an application program adjusting device, electronic equipment and a medium. The method comprises the following steps: monitoring a functional module of an application program to acquire execution data of the functional module; determining state data of the functional module according to the execution data; configuring the state of the functional module according to the state data; wherein the status data comprises: an optimized state and a normal state. The optimization of system resources used by the application program is realized, occupation of server resources by the infrequent function modules is avoided, the stability of the server is improved, and meanwhile, the performance of the application program can also be improved.

Description

Application program adjusting method and device, electronic equipment and medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to an application program adjusting method, an application program adjusting device, an electronic device, and a medium.
Background
With the development of the computer age, more and more functions are included in each software platform. Some software platforms for product production provide wide coverage of functions, and the actual situation is that a certain kind of users only use a part of functions frequently in the process of using products, and the functions that are not used frequently or are not used all the time are also operated on a user server all the time, and many unnecessary processes are generated in the operation process, and the processes consume resources of the server and the service more or less.
When the software platform is started, all processes needing to be operated by all functions are started, all the processes are always in an operating state during the operation of the whole software platform, and when a function is used, the platform calls the process needed by the corresponding function to realize the support of the function. All processes in the software platform can be operated in the server all the time, but in one software platform, not all functions can be frequently used, and some processes required by the frequently-used functions can exist all the time, so that server resources are occupied and consumed. If the functions which are not frequently used are too many, the resources of the server cannot be reasonably allocated to the functions which are required to be frequently used, and if the resources which can be allocated by the server are not too many, the server is blocked, even the server is halted or restarted, and the normal use is seriously influenced.
The above information disclosed in this background section is only for enhancement of understanding of the background of the disclosure and therefore it may contain information that does not constitute prior art that is already known to a person of ordinary skill in the art.
Disclosure of Invention
In view of this, the present invention provides an application program adjusting method, an application program adjusting apparatus, an electronic device, and a medium, which implement optimization of system resources used by an application program, improve server stability, and simultaneously improve application program performance.
Additional features and advantages of the invention will be set forth in the detailed description which follows, or may be learned by practice of the invention.
According to an aspect of an embodiment of the present invention, there is provided an application program adjusting method, wherein the method includes:
monitoring a functional module of an application program to acquire execution data of the functional module;
determining state data of the functional module according to the execution data;
configuring the state of the functional module according to the state data;
wherein the status data comprises: an optimized state and a normal state.
In some embodiments of the present invention, based on the foregoing scheme, the method further comprises: and when the application program is started, setting the initial state of the functional module as a normal state.
In some embodiments of the present invention, based on the foregoing scheme, the execution data includes an execution time of the execution data of the functional module; determining state data of the functional module according to the execution data, including:
and if the execution time of the executed data of the functional module is within a preset time period, determining that the state of the functional module is a normal state.
In some embodiments of the present invention, based on the foregoing solution, the executing data includes data to be executed by the functional module, and determining the status data of the functional module according to the executing data includes:
and if the data to be executed for the functional module is received, determining that the state data of the functional module is in a normal state.
In some embodiments of the present invention, based on the foregoing scheme, the method further comprises:
and after the functional module finishes executing the data to be executed, updating the execution time of the executed data of the functional module.
In some embodiments of the present invention, based on the foregoing solution, configuring the state of the functional module according to the state data includes:
and if the state data is determined to be in a normal state and the original state data of the functional module is in an optimized state, starting the process of the functional module and marking the functional module in a normal state.
In some embodiments of the present invention, based on the foregoing solution, configuring the state of the functional module according to the state data includes:
if the state data is determined to be the optimized state and the original state data of the functional module is the normal state, closing the process of the functional module and marking the functional module as the optimized state.
According to an aspect of an embodiment of the present invention, there is provided an application adjusting apparatus, wherein the apparatus includes:
the monitoring module is configured to monitor a functional module of an application program so as to acquire execution data of the functional module;
a determination module configured to determine status data of the functional module according to the execution data;
a configuration module configured to configure a state of the functional module according to the state data;
wherein the status data comprises: an optimized state and a normal state.
In some embodiments of the present invention, based on the foregoing solution, the apparatus further includes a setting module configured to set an initial state of the function module to a normal state when the application program is started.
In some embodiments of the present invention, based on the foregoing scheme, the execution data includes an execution time of the execution data of the functional module; the determining module is configured to determine that the state of the functional module is a normal state if the execution time of the executed data of the functional module is within a preset time period.
In some embodiments of the present invention, based on the foregoing solution, the execution data includes data to be executed by the functional module, and the determining module is configured to determine that the status data of the functional module is in a normal status if the data to be executed for the functional module is received.
In some embodiments of the present invention, based on the foregoing solution, the apparatus further includes an updating module configured to update the execution time of the executed data of the functional module after the functional module finishes executing the to-be-executed data.
In some embodiments of the present invention, based on the foregoing scheme, the configuration module is configured to start the process of the functional module and mark the functional module as a normal state if it is determined that the state data is a normal state and the original state data of the functional module is an optimized state.
In some embodiments of the present invention, based on the foregoing solution, the configuring module 530 is configured to, if it is determined that the state data is the optimized state and the original state data of the functional module is the normal state, close the process of the functional module, and mark the functional module as the optimized state.
According to an aspect of an embodiment of the present invention, there is provided an electronic apparatus, including: one or more processors; storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to carry out the method steps as described above.
According to a further aspect of embodiments of the present invention, there is provided a computer readable storage medium having a computer program stored thereon, wherein the program when executed by a processor implements the method steps as described above.
In the embodiment of the invention, a functional module of an application program is monitored to acquire the execution data of the functional module; determining state data of the functional module according to the execution data; configuring the state of the functional module according to the state data; wherein the status data comprises: an optimized state and a normal state. The optimization of system resources used by the application program is realized, occupation of server resources by the infrequent function modules is avoided, the stability of the server is improved, and meanwhile, the performance of the application program can also be improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention. It is obvious that the drawings in the following description are only some embodiments of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
FIG. 1 is a flow diagram illustrating an application tuning method in accordance with an exemplary embodiment;
FIG. 2 is a flow chart diagram illustrating an application tuning method in accordance with another illustrative embodiment;
FIG. 3 is a flow chart illustrating an application tuning method according to yet another exemplary embodiment;
FIG. 4 is a flowchart illustrating an application tuning method according to yet another exemplary embodiment;
FIG. 5 is a schematic diagram illustrating an architecture of an application adjustment apparatus 500 in accordance with an exemplary embodiment;
fig. 6 is a schematic structural diagram of an electronic device according to an exemplary embodiment.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The same reference numerals denote the same or similar parts in the drawings, and thus, a repetitive description thereof will be omitted.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to provide a thorough understanding of embodiments of the invention. One skilled in the relevant art will recognize, however, that the invention may be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations or operations have not been shown or described in detail to avoid obscuring aspects of the invention.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
It will be understood that, although the terms first, second, third, etc. may be used herein to describe various components, these components should not be limited by these terms. These terms are used to distinguish one element from another. Thus, a first component discussed below may be termed a second component without departing from the teachings of the disclosed concept. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
It is to be understood by those skilled in the art that the drawings are merely schematic representations of exemplary embodiments, and that the blocks or processes shown in the drawings are not necessarily required to practice the present disclosure and are, therefore, not intended to limit the scope of the present disclosure.
Fig. 1 is a flowchart illustrating an application adjustment method according to an exemplary embodiment, which may be performed by a terminal or a server having a computing processing capability. As shown in fig. 1, the method may include, but is not limited to, the following flow:
in S110, a function module of the application program is monitored to obtain execution data of the function module.
In the embodiment of the present invention, the application program may be provided with a plurality of functional modules, and monitoring is required for each functional module to acquire the execution data of each functional module.
In S120, status data of the functional module is determined according to the execution data.
In the embodiment of the present invention, the status data may include an optimized status and a normal status. The optimization state refers to that the process of the functional module is in a closed state, and the normal state refers to that the process of the functional module is in an open state. In the optimized state, the functional module can not execute the functional task, and the functional task can be executed only after the process is started. Under normal state, the process of the functional module is in an open state and can execute the functional task.
In the embodiment of the present invention, the execution data may include an execution time of the execution data of the functional module. For example, the function module receives data at a certain time, performs verification processing on the data at a certain time, and completes storage of the data at a certain time. And if the execution time of the executed data of the functional module is within a preset time period, determining that the state of the functional module is a normal state. For example, if the time when the data is stored is within a preset time period, the state of the functional module is determined to be a normal state. And if the moment of finishing storing the data is not within the preset time period, determining the state of the functional module as an optimized state.
In the embodiment of the present invention, the status data of each functional module may be periodically determined according to the execution data of the functional module. For example, the status data of the function module is redetermined every 7 days from the execution data of the function module. In each cycle, status data of the functional module is determined from the execution data. It should be noted that, when the status data of the functional module is determined periodically according to the execution data, the execution data of the functional module, which is acquired by the functional module monitoring the application program, is generally the execution data in the period, for example, the period is 7 days, the execution data is acquired as the execution data in the period, and the previous execution data has already executed the operation of determining the functional module according to the execution data.
It should be noted that the preset time period may be a time period corresponding to a cycle, for example, if the cycle is 7 days, the preset time period may be within 7 days from the current time.
It should be noted that, when the execution times of the plurality of pieces of executed data of the function module are acquired, the state data of the function module is determined by the execution time at the time closest to the current time.
It should be noted that, when the application program is started, all the functional modules of the application program are set to be in a normal state, that is, the initial state of the monitored functional module is set to be in a normal state.
In the embodiment of the present invention, the execution data further includes data to be executed of the functional module. The data to be executed refers to data that the function module needs to perform, for example, log data is received. In addition to determining the state data of the functional module according to the execution time of the executed data, the state data of the functional module may also be determined after the to-be-executed data of the functional module is obtained by monitoring. And if the data to be executed for the functional module is received, determining that the state data of the functional module is in a normal state.
It should be noted that the execution time of the executed data of the functional module is within a preset time period, and the state data of the functional module is determined to be a normal state if at least one of the two conditions occurs when the to-be-executed data for the functional module is received. And the state of the functional module can be determined to be the optimized state only when the execution time of the executed data of the functional module is not within the preset time period and the two conditions are met.
In S130, the state of the functional module is configured according to the state data.
In this embodiment of the present invention, configuring the state of the functional module according to the determined state data may include the following 4 cases:
1. and if the state data is determined to be in a normal state and the original state data of the functional module is in an optimized state, starting the process of the functional module and marking the functional module in a normal state.
2. And if the state data is determined to be in a normal state and the original state data of the functional module is in the normal state, keeping the functional module marked as the normal state.
3. If the state data is determined to be the optimized state and the original state data of the functional module is the normal state, closing the process of the functional module and marking the functional module as the optimized state.
4. And if the state data is determined to be the optimized state and the original state data of the functional module is the optimized state, the functional module is kept to be marked as the optimized state.
It should be noted that, after receiving the to-be-executed data for the function module, determining that the state data of the function module is in a normal state and configuring the function module to be in the normal state, the function module executes the to-be-executed data, and after the to-be-executed data is executed, updating the execution time of the executed data of the function module, so as to determine the state data of the function module according to whether the execution time of the executed data of the function module is within a preset time period.
In the embodiment of the invention, a functional module of an application program is monitored to acquire the execution data of the functional module; determining state data of the functional module according to the execution data; configuring the state of the functional module according to the state data; wherein the status data comprises: an optimized state and a normal state. The optimization of system resources used by the application program is realized, occupation of server resources by the infrequent function modules is avoided, the stability of the server is improved, and meanwhile, the performance of the application program can also be improved.
The following describes in detail an application program adjustment method proposed in an embodiment of the present invention with respect to a specific application scenario.
In the embodiment of the present invention, the execution data includes an execution time of the executed data of the functional module as an example, fig. 2 is a flowchart of an application program adjustment method according to another exemplary embodiment, as shown in fig. 2, the method may include, but is not limited to, the following processes:
in S210, a period for determining the status data of the functional module is configured.
In S211, the function module is monitored, and the execution time of the executed data of the function module in the cycle is acquired.
It should be noted that, after the configuration period, the acquired execution data of the snoop is the execution data in the period, because the execution data in the previous period has already been acquired by the snoop.
In S212, the execution time of the executed data of the functional module is not within the preset time period, and the state of the functional module is determined to be the optimized state.
In S213, if the original state data of the functional module is in a normal state, the process of the functional module is closed, and the functional module is marked as an optimized state.
Taking the data to be executed of the execution data including the function module as an example, fig. 3 is a flowchart of an application adjustment method according to another exemplary embodiment, and as shown in fig. 3, the method may include, but is not limited to, the following processes:
in S310, the function module of the application is monitored to obtain the data to be executed of the function module.
In S311, the status data of the function module is determined to be a normal status.
In S312, if the original state data of the functional module is in the optimized state, the process of the functional module is started, and the functional module is marked as a normal state.
In S313, after the function module finishes executing the to-be-executed data, the execution time of the executed data of the function module is updated.
The following describes in detail an application program adjustment method proposed in the embodiment of the present invention, taking a functional module as a log module as an example. FIG. 4 is a flow chart illustrating an application tuning method according to yet another exemplary embodiment, which may include, but is not limited to, the following flows, as shown in FIG. 4:
in S401, the initial state of the log module is set to a normal state when the application program is started.
Note that the log module (function L) receives some kind of log and executes the process la and the process lb. Wherein, the process la is to check and disassemble the log format, and the process lb is to perform corresponding logic operation on the log content. When the application program is started, the process la and the process lb are both in an open state, and the log module is marked as a normal state.
In S402, the period of determining the status data of the log module is configured.
For example, the configuration period is 7 days.
In S403, the log module is monitored, and the execution time of the executed data of the functional module in the cycle is obtained.
It is noted that the functional module to be listened to may be configured.
In S404, if the execution time of the executed data of the log module is not within the preset time period, the state of the function module is determined to be an optimized state.
In S405, the process of the log module is closed, and the log module is marked as the optimized state.
In the embodiment of the invention, the process la and the process lb of the log module are closed, and the log module is marked as an optimized state.
In S406, the data to be executed of the log module is monitored and acquired.
It is to be noted that, regardless of the status data of the function module, the listening and the acquiring of the execution data of the function module are performed unless the application program is shut down.
In S407, it is determined that the status data of the log module is in a normal state.
In S408, the process of the log module is started, and the log module is marked as a normal state.
In the embodiment of the invention, the process la and the process lb are started, and the log module is marked as a normal state.
In S409, after the log module finishes executing the to-be-executed data, the execution time of the executed data of the log module is updated.
In the embodiment of the invention, after the process la and the process lb are started, the log module processes the received data to be executed, and after the processing is finished, the executed data of the log module is updated.
In the embodiment of the invention, the optimization of system resources used by the application program is realized, the occupation of server resources by an uncommon function module is avoided, the stability of the server is improved, and the performance of the application program can be improved.
It should be clearly understood that the present disclosure describes how to make and use particular examples, but the principles of the present disclosure are not limited to any details of these examples. Rather, these principles can be applied to many other embodiments based on the teachings of the present disclosure.
The following are embodiments of the apparatus of the present invention that may be used to perform embodiments of the method of the present invention. In the following description of the system, the same parts as those of the foregoing method will not be described again.
Fig. 5 is a schematic structural diagram illustrating an application adjusting apparatus 500 according to an exemplary embodiment, where the apparatus 500 includes:
the monitoring module 510 is configured to monitor a functional module of an application program to obtain execution data of the functional module.
A determining module 520 configured to determine status data of the functional module according to the execution data.
A configuration module 530 configured to configure the status of the functional module according to the status data.
Wherein the status data comprises: an optimized state and a normal state.
In this embodiment of the present invention, the apparatus further includes a setting module 540, configured to set an initial state of the functional module to a normal state when the application program is started.
In this embodiment of the present invention, the execution data includes an execution time of the executed data of the functional module; the determining module 520 is configured to determine that the state of the functional module is a normal state if the execution time of the executed data of the functional module is within a preset time period.
In this embodiment of the present invention, the execution data includes data to be executed by the functional module, and the determining module 520 is configured to determine that the state data of the functional module is in a normal state if the data to be executed for the functional module is received.
In this embodiment of the present invention, the apparatus 500 further includes an updating module 550 configured to update the execution time of the executed data of the functional module after the functional module finishes executing the to-be-executed data.
In this embodiment of the present invention, the configuration module 530 is configured to start the process of the functional module and mark the functional module as a normal state if it is determined that the state data is a normal state and the original state data of the functional module is an optimized state.
In this embodiment of the present invention, the configuration module 530 is configured to, if it is determined that the state data is in an optimized state and the original state data of the functional module is in a normal state, close the process of the functional module, and mark the functional module as an optimized state.
In the embodiment of the invention, a functional module of an application program is monitored to acquire the execution data of the functional module; determining state data of the functional module according to the execution data; configuring the state of the functional module according to the state data; wherein the status data comprises: an optimized state and a normal state. The optimization of system resources used by the application program is realized, occupation of server resources by the infrequent function modules is avoided, the stability of the server is improved, and meanwhile, the performance of the application program can also be improved.
Fig. 6 is a schematic structural diagram of an electronic device according to an exemplary embodiment. It should be noted that the electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the use range of the embodiment of the present application.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, with the present disclosure, after the software platform is started, a monitor is started to monitor the operation status of each function in the software platform. And configuring a function execution interval in the software platform for judging a normal state and an optimized state. The last execution time of the monitored function is checked at intervals, the function exceeding the execution interval of the function is marked as an optimized state, and all related processes of the function are shut down. When a function in the optimized state has a new action or accepts new data, the system defaults to think that the function is reactivated, marks it as a normal state, and starts a process related to the function.
Specifically, after the software platform is started, the function monitoring and configuration function execution interval (for example, 15 days) needs to be started, and the function needing monitoring is selected. The function monitors all the monitored functions which are configured once at intervals, acquires the last execution time of the functions, if the last execution time of a certain monitored function exceeds the configured function execution interval from the current time, for example, the configuration is carried out for 15 days, but the last execution time is 16 days before, the function is determined to be unused for a long time, the function is marked to be in an optimized state, and the corresponding process for executing the function is closed. On the contrary, if the last execution time of a monitored function does not exceed the configured function execution interval from the current time, for example, 15 days before the configuration, but the last execution time is 7 days before, the function is still normally used now, and the function is marked as a normal state.
When the software platform is started, all functions are marked as normal states, and related processes are started. When new data or new actions are received, the corresponding functions of the new data or the new actions are monitored and the states of the functions are judged, if the corresponding functions are in normal states, the corresponding functions are executed normally, and the last execution time is updated. If the corresponding function is in the optimized state, the function is not used for a period of time, and the related process is closed, so that the process related to the function is started first, the function is marked to be in the normal state, then the function is executed, and the final execution time is updated.
Taking function L as an example, function L is to receive a certain log and execute processes la and lb after receiving a new log, where process la is to check and disassemble the log format, and process lb is to perform corresponding logic operation on the log content. In the first case, when the program starts, the configuration function is executed at an interval of 7 days, and the listening function L is selected. And in 7 days, the software platform does not receive the logs required by the function L, the last execution time of the function L is 7 days ago, and the execution interval of the function L is exceeded, the function L is marked to be in an optimized state, and the processes la and lb are closed. After a period of time, monitoring that the function L receives a certain log, starting the processes la and lb and marking the state of the function L as a normal state, and processing the newly received log process after the processes la and lb are started. In the second case, when the program starts, the configuration function is executed at an interval of 7 days, and the listening function L is selected. Then, the software platform can receive the logs required by the function L every day, the last execution time of the function L is within 7 days, and the state of the function L is always a normal state, so the processes la and lb always exist.
By adopting the method and the system, the use of server resources is optimized and the performance of a software platform is improved according to the process monitoring of the common functions and the uncommon functions. The system resources used by the software can be more reasonably optimized, so that the server resources can be provided to the user to the maximum extent for really using and concerning functions, the additional consumption of the software to the server is reduced, the stability of the server is improved, and the performance of a software platform can be improved.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The above-described functions defined in the terminal of the present application are executed when the computer program is executed by the Central Processing Unit (CPU) 601.
It should be noted that the computer readable medium shown in the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present application may be implemented by software or hardware. The modules described may also be provided in a processor, where the name of a module in some cases does not constitute a limitation of the module itself.
Exemplary embodiments of the present invention are specifically illustrated and described above. It is to be understood that the invention is not limited to the precise construction, arrangements, or instrumentalities described herein; on the contrary, the invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (10)

1. A method of application tuning, wherein the method comprises:
monitoring a functional module of an application program to acquire execution data of the functional module;
determining state data of the functional module according to the execution data;
configuring the state of the functional module according to the state data;
wherein the status data comprises: an optimized state and a normal state.
2. The application tuning method of claim 1, wherein the method further comprises: and when the application program is started, setting the initial state of the functional module as a normal state.
3. The application adjustment method according to claim 1, wherein the execution data includes an execution time at which the function module has executed data; determining state data of the functional module according to the execution data, including:
and if the execution time of the executed data of the functional module is within a preset time period, determining that the state of the functional module is a normal state.
4. The application adjustment method of claim 1, wherein the execution data includes data to be executed of the functional module, and determining the status data of the functional module according to the execution data includes:
and if the data to be executed for the functional module is received, determining that the state data of the functional module is in a normal state.
5. The application tuning method of claim 4, wherein the method further comprises:
and after the functional module finishes executing the data to be executed, updating the execution time of the executed data of the functional module.
6. The application tuning method of claim 1, wherein configuring the state of the functional module according to the state data comprises:
and if the state data is determined to be in a normal state and the original state data of the functional module is in an optimized state, starting the process of the functional module and marking the functional module in a normal state.
7. The application tuning method of claim 1, wherein configuring the state of the functional module according to the state data comprises:
if the state data is determined to be the optimized state and the original state data of the functional module is the normal state, closing the process of the functional module and marking the functional module as the optimized state.
8. An application adjustment apparatus, wherein the apparatus comprises:
the monitoring module is configured to monitor a functional module of an application program so as to acquire execution data of the functional module;
a determination module configured to determine status data of the functional module according to the execution data;
a configuration module configured to configure a state of the functional module according to the state data;
wherein the status data comprises: an optimized state and a normal state.
9. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.
10. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-7.
CN202210077286.8A 2022-01-24 2022-01-24 Application program adjusting method and device, electronic equipment and medium Pending CN114416208A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210077286.8A CN114416208A (en) 2022-01-24 2022-01-24 Application program adjusting method and device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210077286.8A CN114416208A (en) 2022-01-24 2022-01-24 Application program adjusting method and device, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN114416208A true CN114416208A (en) 2022-04-29

Family

ID=81276286

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210077286.8A Pending CN114416208A (en) 2022-01-24 2022-01-24 Application program adjusting method and device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN114416208A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103645955A (en) * 2013-12-16 2014-03-19 百度在线网络技术(北京)有限公司 Running management method and device for application program
CN109032916A (en) * 2017-06-08 2018-12-18 阿里巴巴集团控股有限公司 The method, apparatus and system that functional module in application program is evaluated and tested
CN109960650A (en) * 2018-09-04 2019-07-02 中国平安人寿保险股份有限公司 Application assessment method, apparatus, medium and electronic equipment based on big data
CN112181731A (en) * 2020-10-26 2021-01-05 江苏特思达电子科技股份有限公司 Keep-alive method and device for application program and computer equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103645955A (en) * 2013-12-16 2014-03-19 百度在线网络技术(北京)有限公司 Running management method and device for application program
CN109032916A (en) * 2017-06-08 2018-12-18 阿里巴巴集团控股有限公司 The method, apparatus and system that functional module in application program is evaluated and tested
CN109960650A (en) * 2018-09-04 2019-07-02 中国平安人寿保险股份有限公司 Application assessment method, apparatus, medium and electronic equipment based on big data
CN112181731A (en) * 2020-10-26 2021-01-05 江苏特思达电子科技股份有限公司 Keep-alive method and device for application program and computer equipment

Similar Documents

Publication Publication Date Title
CN110730090B (en) Batch updating method, device, medium and electronic equipment for agent terminals in cloud environment
CN111158715B (en) Gray release control method and system
US20140289719A1 (en) Automatic version management
CN110888658B (en) Method and device for dynamically changing function modules in application program and storage medium
CN110609755A (en) Message processing method, device, equipment and medium for cross-block chain node
CN112134961B (en) Client use control method, client and computer storage medium
CN110162322A (en) A kind of upgrade method and device
CN107347093B (en) Configuration method and device for distributed server system
CN112083971A (en) Component processing method, device and storage medium
CN115617511A (en) Resource data processing method and device, electronic equipment and storage medium
CN115373861A (en) GPU resource scheduling method and device, electronic equipment and storage medium
CN113885971A (en) State management method and device based on self-adaptive platform system
CN115145605A (en) Vehicle-mounted application software upgrading method and system, electronic equipment and storage medium
CN111722857A (en) Updating method and device of software development kit, electronic equipment and storage medium
CN112286559A (en) Upgrading method and device for vehicle-mounted intelligent terminal
CN111078789B (en) Data sharing method and device, storage medium and electronic equipment
CN114416208A (en) Application program adjusting method and device, electronic equipment and medium
CN109871226B (en) Configuration method, device and medium of downloader and electronic equipment
CN114968776A (en) Application program detection method and device
CN110843791B (en) Vehicle control method, device, storage medium and electronic equipment
CN114610331A (en) Software installation method and system
CN111625326A (en) Task pipeline execution method and device and electronic equipment
CN110618826A (en) Method and device for updating application program and terminal equipment
CN113535187B (en) Service online method, service updating method and service providing method
CN113468053B (en) Application system testing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination