Application software configuration parameter tuning method and system

By improving the genetic algorithm, simulating natural selection and genetic evolution, and dynamically adjusting parameters, the problem of low efficiency and accuracy of software configuration parameter tuning in the existing technology is solved, and efficient and accurate parameter optimization is achieved.

CN118672671APending Publication Date: 2024-09-20INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410658896.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

Among existing software configuration parameter tuning methods, manual adjustments based on human experience are time-consuming and labor-intensive and difficult to achieve the optimal configuration. Automatic adjustments based on the Bayesian algorithm are prone to falling into local optimal solutions, resulting in low optimization efficiency and accuracy. .

Method used

An improved genetic algorithm is used to construct an initial population by simulating the process of natural selection and genetic evolution, perform crossover and mutation operations, dynamically adjust the crossover probability and mutation probability, avoid local optimal solutions, and find the best parameter configuration.

Benefits of technology

It improves the optimization efficiency and accuracy of software configuration parameters, reduces manpower investment and time costs, finds the global optimal solution, and improves software performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118672671A
    Figure CN118672671A
Patent Text Reader

Abstract

The invention provides an application software configuration parameter tuning method and system, and the method comprises the steps: 101, constructing an initial population according to a plurality of initial configuration parameter groups corresponding to target application software; step 102, determining a first chromosome and a second chromosome according to the fitness value corresponding to each chromosome; step 103, performing crossover and mutation operation on the first chromosome and the second chromosome according to the crossover probability and the mutation probability to obtain a new chromosome, and updating the initial population according to the new chromosome to obtain an updated population; step 104, adjusting the crossover probability and the mutation probability according to the optimal solution updating result; and step 105, according to the adjusted crossover probability and mutation probability, repeatedly executing the step 102 to the step 104, updating the updated population, and obtaining an optimal configuration parameter group after a preset number of times is satisfied. According to the method, the optimization efficiency and accuracy of the application software configuration parameters are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of parameter tuning, and in particular to a method and system for tuning application software configuration parameters. Background Art

[0002] In order to address the diversity of user needs and the differentiation of demand scenarios, modern software system service providers usually provide adjustable configuration parameters when providing software services for users to cope with different demand scenarios.

[0003] There are two main existing parameter tuning methods: one is manual adjustment based on human experience, and the other is automatic adjustment based on the Bayesian algorithm. However, the manual adjustment method based on human experience usually requires a lot of trial and error and adjustment, which consumes time and energy and is difficult to achieve the optimal configuration; secondly, although the automatic adjustment method based on the Bayesian algorithm can automatically search for the optimal solution, it is easy to be trapped in the local optimal solution, resulting in low optimization efficiency and accuracy of the existing configuration parameters.

[0004] Therefore, there is an urgent need for an application software configuration parameter tuning method and system to solve the above problems. Summary of the invention

[0005] In view of the problems existing in the prior art, the present invention provides a method and system for optimizing application software configuration parameters.

[0006] The present invention provides an application software configuration parameter tuning method, comprising:

[0007] Step 101, constructing an initial population according to a plurality of initial configuration parameter groups corresponding to the target application software to be parameter tuned;

[0008] Step 102, determining the first chromosome and the second chromosome in the initial population according to the fitness value corresponding to each chromosome in the initial population;

[0009] Step 103, performing a crossover operation and a mutation operation on the first chromosome and the second chromosome according to the crossover probability and the mutation probability to obtain a new chromosome, and updating the initial population according to the new chromosome to obtain an updated population;

[0010] Step 104, adjusting the crossover probability and the mutation probability according to the optimal solution update result in the updated population;

[0011] Step 105, in the next iterative optimization process, according to the adjusted crossover probability and the adjusted mutation probability, repeat steps 102 to 104 to update the updated population, and after determining that the number of iterative optimizations meets the preset number, obtain the optimal configuration parameter group corresponding to the target application software.

[0012] According to a method for optimizing application software configuration parameters provided by the present invention, the initial population is constructed according to a plurality of initial configuration parameter groups corresponding to target application software to be parameter optimized, including:

[0013] After the target application software executes each of the initial configuration parameter groups, obtaining performance indicator results corresponding to each of the initial configuration parameter groups;

[0014] Encoding each of the initial configuration parameter groups to obtain a chromosome corresponding to each of the initial configuration parameter groups;

[0015] The performance index result is used as the fitness value of the corresponding chromosome to construct the initial population.

[0016] According to an application software configuration parameter tuning method provided by the present invention, determining the first chromosome and the second chromosome in the initial population according to the fitness value corresponding to each chromosome in the initial population includes:

[0017] Based on a roulette algorithm, the first chromosome and the second chromosome are determined from the initial population according to the fitness value corresponding to each chromosome in the initial population.

[0018] According to an application software configuration parameter tuning method provided by the present invention, performing a crossover operation and a mutation operation on the first chromosome and the second chromosome according to the crossover probability and the mutation probability to obtain a new chromosome includes:

[0019] Based on the fragment crossover mode and according to the crossover probability, a crossover operation is performed on the first chromosome and the second chromosome to obtain a first chromosome after the crossover processing and a second chromosome after the crossover processing;

[0020] The number of mutation points is determined according to the number of configuration parameter types, and the mutation operation is performed on the first chromosome after the crossover processing and the second chromosome after the crossover processing according to the number of mutation points and the mutation probability to obtain the new chromosome.

[0021] According to an application software configuration parameter tuning method provided by the present invention, the initial population is updated according to the new chromosome to obtain an updated population, including:

[0022] According to the performance index result corresponding to the new chromosome and the performance index result of the chromosome in the initial population, the chromosomes in the initial population after the new chromosome is introduced are sorted from high to low according to the fitness value to obtain a fitness value sorting result;

[0023] The first K chromosomes in the fitness value sorting result are determined, and a randomly selected chromosome from the first K chromosomes is subjected to gene segment replacement processing with the chromosome ranked first in the fitness value sorting result to obtain the updated population.

[0024] According to a method for optimizing application software configuration parameters provided by the present invention, the method further includes:

[0025] Determining the crossover probability and the mutation probability, wherein the crossover probability is greater than the mutation probability;

[0026] The step of adjusting the crossover probability and the mutation probability according to the optimal solution update result in the updated population includes:

[0027] Obtaining the optimal solution in the updated population during iterative optimization processing;

[0028] According to the optimal solution obtained in each iterative optimization process, the optimal solution in the current iterative optimization process is judged;

[0029] If it is determined that the optimal solution in the current iterative optimization process is the same as the optimal solution in the previous g iterative optimization processes, the values ​​corresponding to the crossover probability and the mutation probability are exchanged and adjusted to obtain the adjusted crossover probability and the adjusted mutation probability;

[0030] If it is determined that the optimal solution in the current iterative optimization process is different from the optimal solution in the previous g iterative optimization processes, the values ​​corresponding to the crossover probability and the mutation probability are kept unchanged;

[0031] If in the next iterative optimization process, the optimal solution obtained after updating the population according to the adjusted crossover probability and the adjusted mutation probability is different from the optimal solution in the current iterative optimization process, the respective values ​​of the adjusted crossover probability and the adjusted mutation probability are restored.

[0032] According to an application software configuration parameter tuning method provided by the present invention, after the target application software executes each of the initial configuration parameter groups, obtaining performance indicator results corresponding to each of the initial configuration parameter groups includes:

[0033] Generate corresponding configuration files according to each of the initial configuration parameter groups

[0034] Based on the Benchmark tool and the configuration file, the target application software is subjected to a performance test to obtain performance indicator results corresponding to each of the initial configuration parameter groups.

[0035] The present invention also provides an application software configuration parameter tuning system, comprising:

[0036] A configuration parameter extraction module is used to construct an initial population according to a plurality of initial configuration parameter groups corresponding to the target application software to be parameter tuned;

[0037] A first tuning processing module, used for determining a first chromosome and a second chromosome in the initial population according to the fitness value corresponding to each chromosome in the initial population;

[0038] A second tuning processing module is used to perform a crossover operation and a mutation operation on the first chromosome and the second chromosome according to the crossover probability and the mutation probability to obtain a new chromosome, and update the initial population according to the new chromosome to obtain an updated population;

[0039] A third tuning processing module, used for adjusting the crossover probability and the mutation probability according to the optimal solution update result in the updated population;

[0040] The fourth tuning processing module is used to repeatedly call the first tuning processing module, the second tuning processing module and the third tuning processing module according to the adjusted crossover probability and the adjusted mutation probability in the next iterative optimization processing process, to update the updated population, and after determining that the number of iterative optimizations meets the preset number, obtain the optimal configuration parameter group corresponding to the target application software.

[0041] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the above-mentioned application software configuration parameter tuning methods is implemented.

[0042] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method for optimizing the configuration parameters of application software as described above is implemented.

[0043] The application software configuration parameter tuning method and system provided by the present invention simulate the process of natural selection and genetic evolution to avoid falling into the dilemma of local optimal solution, find the best parameter configuration of configuration parameters, thereby improving the optimization efficiency and accuracy of application software configuration parameters. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0045] Figure 1 A schematic diagram of the process flow of the application software configuration parameter tuning method provided by the present invention;

[0046] Figure 2 A schematic diagram of the overall process of the application software configuration parameter tuning method based on the improved genetic algorithm provided by the present invention;

[0047] Figure 3 A schematic diagram of the structure of the application software configuration parameter tuning system provided by the present invention;

[0048] Figure 4 The overall structural diagram of the application software configuration parameter tuning system based on the improved genetic algorithm provided by the present invention;

[0049] Figure 5 This is a schematic structural diagram of an electronic device provided by the present invention. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0051] In order to ensure the efficient operation of the software system, the optimization and adjustment of software configuration parameters is one of the important means to improve software performance. A reasonable combination of configuration parameters can ensure that the software reaches the optimal performance and meets the user's demand scenarios. With the continuous development of application software, the relationship between configuration parameters and software performance is becoming more and more complex. At the same time, for some large software, such as databases, web servers, etc., the software parameters that need to be configured are usually numerous. In such a scenario, the manual adjustment method based on manual experience usually relies on the experience and knowledge of technical experts, gathers a large number of experts to conduct concentrated research, manually adjusts the parameter configuration, and continuously simulates the business environment test to finally obtain a set of better configuration parameter combinations in a specific environment. However, it is inevitable that optimizing configuration parameters by manual means will not be enough, and various parameter tuning methods are also needed to determine the software parameter configuration that meets the demand scenario.

[0052] The automatic adjustment method based on the Bayesian algorithm mainly fits the real objective function by using a proxy model (such as the Gaussian process) and continuously selects the most promising parameter configuration in the parameter space to find the optimal configuration parameters, but it is easy to be trapped in the local optimal solution. This means that the algorithm may linger around a poor solution and fail to find a better solution.

[0053] In response to the problems existing in the related technologies, the present invention proposes an automatic tuning method for application software configuration parameters based on an improved genetic algorithm. The method simulates the process of natural selection and genetic evolution to find the optimal parameter configuration, thereby improving the optimization efficiency and accuracy of the application software configuration parameters and avoiding the dilemma of local optimal solutions. At the same time, it can also reduce manpower investment and time costs, bringing greater convenience and benefits to the software development field and providing users with a better experience.

[0054] Figure 1 The flowchart of the method for optimizing the configuration parameters of application software provided by the present invention is as follows: Figure 1 As shown, the present invention provides a method for optimizing application software configuration parameters, comprising:

[0055] Step 101 : construct an initial population according to a plurality of initial configuration parameter groups corresponding to target application software to be parameter-optimized.

[0056] In the present invention, the target application software to be parameter tuned and its related configuration parameters are first determined. Specifically, the description file in the software configuration file can be referred to to screen out multiple configuration parameters that need to be tuned, and values ​​are randomly assigned to these configuration parameters to form different configuration parameter groups. For example, if a certain application software involves 5 configuration parameters, different values ​​are assigned to these 5 configuration parameters to form multiple configuration parameter groups composed of these 5 configuration parameters. At the same time, the goal of parameter tuning is clarified, that is, to determine which performance indicators of the application software are optimal, and these performance indicators include accuracy, response time, and resource utilization.

[0057] Furthermore, K groups are randomly selected from the above configuration parameter groups (i.e., initial configuration parameter groups) as the initial population of the genetic algorithm (GA), and the performance index corresponding to each initial configuration parameter group is used as the fitness value of the individual (i.e., chromosome) in the genetic algorithm population. In the present invention, a corresponding configuration file can be formed according to the initial configuration parameter group, and then the application software is tested using the configuration file and the performance detection tool to obtain the performance index corresponding to the application software when executing the initial configuration parameter group.

[0058] Step 102: Determine the first chromosome and the second chromosome in the initial population according to the fitness value corresponding to each chromosome in the initial population.

[0059] In the present invention, each chromosome in the initial population corresponds to a combination of multiple configuration parameters, and the fitness value is an indicator used to measure the quality of the chromosome (configuration parameter combination). The fitness value can be obtained by applying the configuration parameter combination corresponding to the chromosome to the target application software and measuring the performance of the application software, that is, the better the performance, the higher the fitness value.

[0060] Further, two chromosomes with higher fitness values ​​are selected from these chromosomes as the first chromosome and the second chromosome. In a genetic algorithm, chromosomes with higher fitness values ​​usually have a greater chance of being selected to participate in the subsequent evolution process, thereby having a chance to produce better offspring, i.e., a better parameter combination. Preferably, in the present invention, two chromosomes can be selected from the initial population as the first chromosome and the second chromosome based on the fitness value based on a roulette algorithm, i.e., the probability of an individual being selected is proportional to its corresponding fitness value.

[0061] Step 103, performing a crossover operation and a mutation operation on the first chromosome and the second chromosome according to the crossover probability and the mutation probability to obtain a new chromosome, and updating the initial population according to the new chromosome to obtain an updated population.

[0062] In the present invention, new chromosomes (i.e., new parameter combinations) are generated through the two operations of crossover and mutation, thereby exploring the search space and finding a better solution. Specifically, part of the genes between two chromosomes (i.e., the first chromosome and the second chromosome) are exchanged through the crossover operation, thereby generating two new offspring; then, through the mutation operation, the values ​​of some genes on the two new offspring are randomly changed to obtain two new chromosomes, thereby introducing new genetic information and increasing the diversity of the population.

[0063] Furthermore, an elite strategy is adopted to first introduce the two new chromosomes into the population (such as the initial population. If it is a subsequent iterative optimization process, the two new chromosomes generated in this iterative optimization process are introduced into the population in the previous iterative optimization process); then, the top K chromosomes (elite individuals) with the highest fitness values ​​in the current population (that is, the population after the introduction of the two new chromosomes) are retained to form an updated population.

[0064] Step 104: adjusting the crossover probability and the mutation probability according to the optimal solution update result in the updated population.

[0065] In the present invention, for each iterative optimization process, it is necessary to determine whether the crossover probability and mutation probability need to be adjusted according to the optimal solution update result in the iterative optimization process. Specifically, after g iterations, if the same optimal solution continues to be obtained, it is necessary to adjust the respective values ​​of the crossover probability and the mutation probability, so that in the next iterative optimization process, the adjusted crossover probability and the adjusted mutation probability are used to perform corresponding crossover operations and mutation operations. If the optimal solution is updated after the next iterative optimization process, the crossover probability and the mutation probability are restored to their initial values. If the optimal solution has changed during the g iterations, the initial values ​​of the crossover probability and the mutation probability remain unchanged.

[0066] Step 105, in the next iterative optimization process, according to the adjusted crossover probability and the adjusted mutation probability, repeat steps 102 to 104 to update the updated population, and after determining that the number of iterative optimizations meets the preset number, obtain the optimal configuration parameter group corresponding to the target application software.

[0067] In the present invention, in each iterative optimization process, the genetic algorithm generates a new population according to the current crossover probability and mutation probability. This new population is evolved from the previous generation population through the operations of selection, crossover and mutation in the above-mentioned embodiment. During the operation of the genetic algorithm, it is necessary to continuously check whether the number of iterations that have been executed has reached the preset number. If the preset number is reached, the genetic algorithm stops and returns the best individual in the current population as the solution; otherwise, the genetic algorithm will continue to the next round of iterations. Figure 2 The overall flow chart of the application software configuration parameter tuning method based on the improved genetic algorithm provided by the present invention can be referred to Figure 2 As shown, in the present invention, each individual (chromosome) represents a possible solution (in the present invention, a configuration parameter group of the application software). Through continuous iteration and evolution, the genetic algorithm can find the individual with the highest fitness value, that is, the optimal configuration parameter group, which will be used to configure the target application software.

[0068] The application software configuration parameter tuning method provided by the present invention simulates the process of natural selection and genetic evolution to avoid falling into the dilemma of local optimal solution, finds the best parameter configuration of configuration parameters, thereby improving the optimization efficiency and accuracy of application software configuration parameters.

[0069] On the basis of the above embodiment, the initial population is constructed according to a plurality of initial configuration parameter groups corresponding to the target application software to be parameter tuned, including:

[0070] After the target application software executes each of the initial configuration parameter groups, obtaining performance indicator results corresponding to each of the initial configuration parameter groups;

[0071] Encoding each of the initial configuration parameter groups to obtain a chromosome corresponding to each of the initial configuration parameter groups;

[0072] The performance index result is used as the fitness value of the corresponding chromosome to construct the initial population.

[0073] In the present invention, the configuration parameter combination that needs to be tuned can be screened out by referring to the configuration file information of the target application software, so that these parameters in the configuration parameter combination play an important role in the optimization process. At the same time, the adjustable range of the configuration parameters needs to be determined. In addition to selecting these tuning parameters, other parameters can be configured according to the default parameters provided by the software service provider to ensure that the system runs in a balanced state.

[0074] Furthermore, it is necessary to determine the optimization direction to guide decisions when adjusting configuration parameters and ensure that the expected performance improvement is achieved. In other words, in order to better evaluate the optimization results, it is necessary to set clear software performance evaluation indicators. These indicators will help measure the effect of the optimization and determine whether the expected performance improvement has been achieved.

[0075] On the basis of the above embodiment, after the target application software executes each of the initial configuration parameter groups, the performance indicator results corresponding to each of the initial configuration parameter groups are obtained, including:

[0076] Generate corresponding configuration files according to each of the initial configuration parameter groups

[0077] Based on the Benchmark tool and the configuration file, the target application software is subjected to a performance test to obtain performance indicator results corresponding to each of the initial configuration parameter groups.

[0078] In the present invention, by determining the configuration parameters that need to be adjusted and the performance indicators to be optimized, the Benchmark tool is selected for testing. The initial configuration parameter group includes memory allocation, number of threads, number of database connections, network settings, etc. Based on these initial configuration parameter groups, multiple corresponding configuration files are generated. These configuration files are used to guide how the target application software runs, wherein the format and content of the configuration files depend on the specific requirements of the target application software.

[0079] Then, the target application software is performance tested using the previously generated configuration file and the Benchmark tool, which involves starting the target application software, generating a load using the Benchmark tool, and then collecting and analyzing performance data. During the performance test, the Benchmark tool collects various performance indicator data, such as response time, throughput, and resource utilization, which will be used to evaluate the performance of the target application software under different configuration parameter groups. For each initial configuration parameter group, the Benchmark tool generates a corresponding performance indicator result, including specific values ​​of various performance indicators and comparisons with previous test results. In order to ensure the accuracy of the evaluation results, the present invention uses the Benchmark tool to design specific performance indicators for more accurate evaluation.

[0080] Specifically, in the present invention, before tuning the configuration parameters, the configuration parameters to be adjusted need to be randomly initialized to ensure that there is a reference to the benchmark value during the adjustment process. In this process, by randomly assigning values ​​to the configuration parameters, multiple groups of configuration parameters with different value combinations can be obtained. Then, for each group of configuration parameter groups, after modifying the software configuration file, the target application software is started and tested using the Benchmark tool to obtain the performance data of the target application software under different configuration parameters, and then the values ​​of the performance data are recorded as input to the subsequent tuning algorithm.

[0081] Furthermore, the initial population is constructed by the following steps:

[0082] Step S1, select n groups of configuration parameter groups from the multiple initial configuration parameter groups that have been constructed, each group of configuration parameter groups is recorded as Conf i , and then multiple groups of configuration parameter groups form a configuration parameter set [Conf1, Conf2, Conf3, ..., Conf n ], and modify the configuration file of the target application software to be tuned according to the parameter group in the configuration parameter set, start the application software and perform performance testing with the Benchmark tool.

[0083] Step S2, record the corresponding configuration parameter group Conf i The performance index obtained from the test is G i ,The setting of specific performance indicators can be determined according to the corresponding test results of the Benchmark tool. If there are multiple performance indicators, the corresponding results are determined according to the performance to be tuned, and then the performance indicator results are collected to form a set [G1, G2, G3, ..., G n ] and the performance indicator results in the set correspond to the configuration parameter groups one by one.

[0084] Furthermore, the initially selected configuration parameter set is used as the initial population K(t), and the specific values ​​of the configuration parameters of the target application software are encoded as chromosomes (individuals) in the genetic algorithm. In the present invention, the encoding method can select binary encoding, and all the configuration parameters included are encoded as a binary string. For example, for configuration parameters whose values ​​are real numbers, the corresponding encoding is the binary number after the value is rounded; if the corresponding configuration parameter value is a Boolean type, that is, on or off, the corresponding encoding is 1 or 0, where 1 corresponds to on and 0 corresponds to off. Then for an individual containing 10 configuration parameters, its corresponding genetic encoding is the concatenated string of all 10 configuration parameters converted into binary.

[0085] Finally, according to the corresponding relationship between the performance index result and the configuration parameter group, the performance index result obtained by the Benchmark tool test is used as the fitness value of the corresponding individual in the initial population, thereby completing the construction of the initial population. It should be noted that in the present invention, for the new individuals obtained in the subsequent iterative optimization process, the Benchmark tool can also be used through the above process to obtain the performance index results corresponding to the new individuals (based on the configuration parameters obtained after the decoding operation of the new individuals), and then the new individuals are introduced into the population.

[0086] On the basis of the above embodiment, determining the first chromosome and the second chromosome in the initial population according to the fitness value corresponding to each chromosome in the initial population includes:

[0087] Based on a roulette algorithm, the first chromosome and the second chromosome are determined from the initial population according to the fitness value corresponding to each chromosome in the initial population.

[0088] In the present invention, first, the total fitness value of all chromosomes in the initial population is calculated; then, according to the ratio between the fitness value corresponding to each chromosome in the initial population and the total fitness value, the individual selection probability of each chromosome in the initial population is calculated, and then according to the individual selection probability, the cumulative probability of each chromosome in the initial population is calculated; further, according to the cumulative probability and a preset random array, the chromosomes in the initial population are judged, and according to the judgment result, two chromosomes whose cumulative probability is greater than the elements in the preset random array are respectively used as the first chromosome and the second chromosome.

[0089] Specifically, in the present invention, the chromosomes in the initial population are first selected according to the size of the fitness value to ensure that the chromosomes with good adaptability have more opportunities to reproduce offspring, so that the excellent characteristics can be inherited. The present invention selects two chromosomes from the initial population according to the roulette algorithm, that is, the probability of the chromosome being selected is proportional to its fitness function value. The specific calculation process is as follows:

[0090] Calculate the fitness value of the initial population chromosome, that is, the fitness value f(x i )=G i ; Then, according to the fitness values ​​of all chromosomes, the individual selection probability is calculated Then calculate the cumulative probability of each chromosome At the same time, a preset random array M is randomly generated, the value range of the elements in the preset random array M is between 0 and 1, and these elements are sorted from small to large.

[0091] Furthermore, if the cumulative probability Q(i) of the i-th chromosome in the initial population is greater than the i-th element M[i] in the preset random array M, then chromosome x i is selected as the first chromosome; if it is less than M[i], the next chromosome x is compared i+1 , until a chromosome is selected to obtain the second chromosome. It should be noted that in the present invention, for each iterative optimization process, the first chromosome and the second chromosome in the current iterative optimization process can be determined based on the chromosome selection process in the above embodiment.

[0092] Based on the above embodiment, performing a crossover operation and a mutation operation on the first chromosome and the second chromosome according to the crossover probability and the mutation probability to obtain a new chromosome includes:

[0093] Based on the fragment crossover mode and according to the crossover probability, a crossover operation is performed on the first chromosome and the second chromosome to obtain a first chromosome after the crossover processing and a second chromosome after the crossover processing;

[0094] The number of mutation points is determined according to the number of configuration parameter types, and the mutation operation is performed on the first chromosome after the crossover processing and the second chromosome after the crossover processing according to the number of mutation points and the mutation probability to obtain the new chromosome.

[0095] In the present invention, before performing the genetic algorithm, the crossover probability P is first set. c and mutation probability P m For example, the crossover probability is set to 0.8, and the mutation probability is set to 0.2. Setting a higher crossover probability can make the algorithm more efficient; then, the selected chromosomes (i.e., the first chromosome and the second chromosome) are crossovered according to the crossover probability to generate new individuals, and the first chromosome after the crossover process and the second chromosome after the crossover process are obtained. In the present invention, for the case of more configuration parameters, since binary encoding will cause the gene sequence to be very long, the use of a single-point crossover method will result in less individual variation. Therefore, the present invention adopts a fragment crossover method, that is, for two chromosomes, a corresponding fragment is crossovered.

[0096] Furthermore, some genes of chromosomes are modified by mutation probability, new genetic materials are introduced, the diversity of population is increased, and premature convergence is avoided. In the present invention, for each mutation point, it is bitwise inverted or replaced with other alleles; at the same time, in order to jump out of the local optimum to a greater extent, the number of mutation points is set to the number of configuration parameters.

[0097] Based on the above embodiment, the initial population is updated according to the new chromosome to obtain an updated population, including:

[0098] According to the performance index result corresponding to the new chromosome and the performance index result of the chromosome in the initial population, the chromosomes in the initial population after the new chromosome is introduced are sorted from high to low according to the fitness value to obtain a fitness value sorting result;

[0099] The first K chromosomes in the fitness value sorting result are determined, and a randomly selected chromosome from the first K chromosomes is subjected to gene segment replacement processing with the chromosome ranked first in the fitness value sorting result to obtain the updated population.

[0100] In the present invention, firstly, a decoding operation is performed on the two newly generated chromosomes, such as decoding the genes of the two new chromosomes according to the encoding method of the above embodiment, thereby converting the corresponding binary character strings into configuration parameters, and obtaining the configuration parameter groups corresponding to the two new chromosomes.

[0101] Then, modify the configuration file of the target application software according to the newly obtained configuration parameter group, and then use the Benchmark tool to perform stress testing on the modified target application software, evaluate the current configuration parameters according to the performance indicators, and record the values ​​of the current configuration parameter group and the values ​​of the performance indicators.

[0102] Further, the present invention updates the population according to the multi-objective elite selection strategy, introduces the newly cultivated two chromosomes (i.e., the first chromosome and the second chromosome) into the initial population, and selects the first K chromosomes to form a new population in order of their fitness values ​​from high to low; at the same time, randomly selects one of the chromosomes from the new population, replaces its corresponding gene fragment with the gene fragment of the same position of other better chromosomes, and re-compares the chromosomes to remove the duplicate parts, wherein K is the set population size, preferably, the gene fragment of the chromosome corresponding position with the highest fitness value (i.e., the first ranking in the fitness value ranking result) among the first K chromosomes is replaced with the gene fragment of the randomly selected chromosome, thereby obtaining an updated population. The present invention can not only help the population quickly obtain high-quality individuals through this strategy, but also maintain the diversity and adaptability of the population. It should be noted that in the present invention, for each subsequent iterative optimization process, the process of the above embodiment can be used to generate the updated population in the current iterative optimization process.

[0103] Based on the above embodiment, the method further includes:

[0104] Determining the crossover probability and the mutation probability, wherein the crossover probability is greater than the mutation probability;

[0105] The step of adjusting the crossover probability and the mutation probability according to the optimal solution update result in the updated population includes:

[0106] Obtaining the optimal solution in the updated population during iterative optimization processing;

[0107] According to the optimal solution obtained in each iterative optimization process, the optimal solution in the current iterative optimization process is judged;

[0108] If it is determined that the optimal solution in the current iterative optimization process is the same as the optimal solution in the previous g iterative optimization processes, the values ​​corresponding to the crossover probability and the mutation probability are exchanged and adjusted to obtain the adjusted crossover probability and the adjusted mutation probability;

[0109] If it is determined that the optimal solution in the current iterative optimization process is different from the optimal solution in the previous g iterative optimization processes, the values ​​corresponding to the crossover probability and the mutation probability are kept unchanged;

[0110] If in the next iterative optimization process, the optimal solution obtained after updating the population according to the adjusted crossover probability and the adjusted mutation probability is different from the optimal solution in the current iterative optimization process, the respective values ​​of the adjusted crossover probability and the adjusted mutation probability are restored.

[0111] In the present invention, it is necessary to replace and adjust the crossover probability and mutation probability according to the update of the optimal solution in the process of multiple rounds of iterative optimization. Crossover operation and mutation operation are two important steps in the genetic algorithm, and the probabilities of crossover operation and mutation operation further determine the efficiency of the algorithm. In the present invention, the original probability is set to high crossover probability and low mutation probability. If the crossover probability is 0.8 and the mutation probability is 0.2, and the update of the optimal solution in each iterative optimization process is recorded, if the optimal solution does not change in the g-time iterative optimization process, it is adjusted to low crossover probability and high mutation probability, that is, the crossover probability in the next iterative optimization process is 0.2 and the mutation probability is 0.8; then, the update of the optimal solution in the subsequent iterative optimization process is judged, and when the optimal solution is updated, the high crossover probability and low mutation probability are restored.

[0112] Specifically, in the present invention, a crossover probability and a mutation probability are predetermined, wherein the value of the crossover probability is greater than the mutation probability, to ensure that in the initial stage of the algorithm, the population mainly generates new solutions through crossover operations, and the mutation operation is used as an auxiliary means.

[0113] If the optimal solution in the current iterative optimization process is the same as the optimal solution in the previous g iterative optimization processes, it means that the population may be trapped in a local optimal solution. At this time, adjustments need to be made to jump out of this local optimal solution. The specific adjustment method is to exchange the values ​​of the crossover probability and the mutation probability, thereby increasing the probability of mutation of individuals in the population, hoping to generate new and different solutions and find the global optimal solution.

[0114] If the optimal solution in the current iterative optimization process is different from the optimal solution in the previous g iterative optimization processes, it means that the population is still moving towards a better solution. At this time, no adjustment is required, and the values ​​of the crossover probability and mutation probability remain unchanged.

[0115] If the optimal solution obtained after updating the population according to the adjusted crossover probability and mutation probability is different from the optimal solution in the previous iterative optimization process, it means that this adjustment is effective and the population has jumped out of the previous local optimal solution. Then it is necessary to restore the adjusted crossover probability and mutation probability to their respective values, that is, to restore them to the values ​​before the adjustment, to avoid the degradation of algorithm performance due to inappropriate adjustments. The present invention provides a strategy for dynamically adjusting the crossover probability and mutation probability, the purpose of which is to adaptively adjust these two parameters according to the performance of the population during the operation of the algorithm, so as to improve the ability of the algorithm to find the global optimal solution.

[0116] The application software configuration parameter tuning system provided by the present invention is described below. The application software configuration parameter tuning system described below and the application software configuration parameter tuning method described above can be referenced to each other.

[0117] Figure 3 The schematic diagram of the structure of the application software configuration parameter tuning system provided by the present invention is as follows: Figure 3 As shown, the present invention provides an application software configuration parameter tuning system, including a configuration parameter extraction module 301, a first tuning processing module 302, a second tuning processing module 303, a third tuning processing module 304 and a fourth tuning processing module 305, wherein the configuration parameter extraction module 301 is used to construct an initial population according to a plurality of initial configuration parameter groups corresponding to the target application software to be parameter tuned; the first tuning processing module 302 is used to determine the first chromosome and the second chromosome in the initial population according to the fitness values ​​corresponding to each chromosome in the initial population; the second tuning processing module 303 is used to perform crossover probability and mutation probability on the first chromosome and the second chromosome Perform crossover and mutation operations to obtain new chromosomes, and update the initial population based on the new chromosomes to obtain an updated population; the third tuning processing module 304 is used to adjust the crossover probability and the mutation probability according to the optimal solution update result in the updated population; the fourth tuning processing module 305 is used to repeatedly call the first tuning processing module, the second tuning processing module and the third tuning processing module according to the adjusted crossover probability and the adjusted mutation probability in the next iterative optimization processing process, to update the updated population, and after determining that the number of iterative optimizations meets the preset number, obtain the optimal configuration parameter group corresponding to the target application software.

[0118] In the present invention, the configuration parameter extraction module 301 first determines the target application software to be parameter tuned and its related configuration parameters. Specifically, the configuration parameter extraction module 301 can refer to the description file in the software configuration file, screen out multiple configuration parameters that need to be tuned, and randomly assign values ​​to these configuration parameters to form different configuration parameter groups. For example, if a certain application software involves 5 configuration parameters, different values ​​are assigned to these 5 configuration parameters to form multiple configuration parameter groups composed of these 5 configuration parameters. At the same time, the configuration parameter extraction module clarifies the goal of parameter tuning, that is, determines which performance indicators of the application software are optimal, and these performance indicators include accuracy, response time, and resource utilization.

[0119] Further, the configuration parameter extraction module 301 randomly selects K groups from the above configuration parameter groups (i.e., initial configuration parameter groups) as the initial population of the genetic algorithm (GA), and uses the performance index corresponding to each group of initial configuration parameter groups as the fitness value of the individual (i.e., chromosome) in the genetic algorithm population. In the present invention, the configuration parameter extraction module 301 can form a corresponding configuration file according to the initial configuration parameter group, and then use the configuration file and performance detection tools to test the application software to obtain the performance index corresponding to the application software when executing the initial configuration parameter group.

[0120] In the present invention, each chromosome in the initial population corresponds to a combination of multiple configuration parameters, and the fitness value is an indicator used to measure the quality of the chromosome (configuration parameter combination). The fitness value can be obtained by applying the configuration parameter combination corresponding to the chromosome to the target application software and measuring the performance of the application software, that is, the better the performance, the higher the fitness value.

[0121] Furthermore, the first tuning processing module 302 selects two chromosomes with higher fitness values ​​from these chromosomes as the first chromosome and the second chromosome. In a genetic algorithm, chromosomes with higher fitness values ​​usually have a greater chance of being selected to participate in the subsequent evolution process, thereby having a chance to produce better offspring, that is, a better parameter combination. Preferably, in the present invention, the first tuning processing module 302 can select two chromosomes from the initial population as the first chromosome and the second chromosome based on the fitness value based on the roulette algorithm, that is, the probability of an individual being selected is proportional to its corresponding fitness value.

[0122] In the present invention, the second tuning processing module 303 generates new chromosomes (i.e., new parameter combinations) through the two operations of crossover and mutation, thereby exploring the search space and finding a better solution. Specifically, the second tuning processing module 303 exchanges some genes between two chromosomes (i.e., the first chromosome and the second chromosome) through the crossover operation, thereby generating two new offspring; then, through the mutation operation, randomly changes the values ​​of some genes on the two new offspring to obtain two new chromosomes, thereby introducing new genetic information and increasing the diversity of the population.

[0123] Furthermore, the second tuning processing module 303 adopts an elite strategy, first introducing the two new chromosomes into the population (such as the initial population, if it is a subsequent iterative optimization process, the two new chromosomes generated in this iterative optimization process are introduced into the population in the previous iterative optimization process); then, retaining the top K chromosomes (elite individuals) with the highest fitness values ​​in the current population (i.e., the population after the introduction of the two new chromosomes) to form an updated population.

[0124] In the present invention, for each iterative optimization process, the third tuning processing module 304 needs to determine whether the crossover probability and the mutation probability need to be adjusted according to the optimal solution update result in the iterative optimization process. Specifically, after g iterations, if the same optimal solution continues to be obtained, the values ​​of the crossover probability and the mutation probability need to be adjusted, so that in the next iterative optimization process, the adjusted crossover probability and the adjusted mutation probability are used to perform corresponding crossover operations and mutation operations. If the optimal solution is updated after the next iterative optimization process, the crossover probability and the mutation probability are restored to their initial values. If the optimal solution has changed during the g iterations, the initial values ​​of the crossover probability and the mutation probability remain unchanged.

[0125] In the present invention, in each iterative optimization process, the genetic algorithm will generate a new population according to the current crossover probability and mutation probability. This new population is evolved from the previous generation population through the operations of selection, crossover and mutation in the above-mentioned embodiment. During the operation of the genetic algorithm, the fourth tuning processing module 305 needs to continuously check whether the number of iterations that have been executed has reached the preset number. If the preset number is reached, the genetic algorithm stops and returns the best individual in the current population as a solution; otherwise, the genetic algorithm will continue to the next round of iterations. Figure 4 The overall structural diagram of the application software configuration parameter tuning system based on the improved genetic algorithm provided by the present invention can be referred to Figure 4 As shown, in the present invention, each individual (chromosome) represents a possible solution (in the present invention, a configuration parameter group of the application software), and the first tuning processing module 302, the second tuning processing module 303, the third tuning processing module 304 and the fourth tuning processing module 305 constitute an algorithm tuning module. Through continuous iteration and evolution, the genetic algorithm can find the individual with the highest fitness value, that is, the optimal configuration parameter group, and then update the configuration file of the software system (that is, the target application software) through the configuration update module. When the software system completes the test according to this configuration file using the test tool, if the test result obtained meets the evaluation criteria of the performance evaluation module, then this optimal configuration parameter group will be output through the optimal configuration output module for configuring the target application software.

[0126] The application software configuration parameter tuning system provided by the present invention simulates the process of natural selection and genetic evolution to avoid falling into the dilemma of local optimal solution and finds the best parameter configuration of configuration parameters, thereby improving the optimization efficiency and accuracy of application software configuration parameters.

[0127] The system provided by the present invention is used to execute the above-mentioned method embodiments. Please refer to the above-mentioned embodiments for the specific processes and detailed contents, which will not be repeated here.

[0128] Figure 5 A schematic diagram of the structure of an electronic device provided by the present invention, such as Figure 5 As shown, the electronic device may include: a processor (Processor) 501, a communication interface (Communications Interface) 502, a memory (Memory) 503 and a communication bus 504, wherein the processor 501, the communication interface 502, and the memory 503 communicate with each other through the communication bus 504. The processor 501 can call the logic instructions in the memory 503 to execute the application software configuration parameter tuning method, which includes: step 101, constructing an initial population according to multiple initial configuration parameter groups corresponding to the target application software to be parameter tuned; step 102, determining the first chromosome and the second chromosome in the initial population according to the fitness values ​​corresponding to each chromosome in the initial population; step 103, performing crossover operation and mutation operation on the first chromosome and the second chromosome according to the crossover probability and the mutation probability to obtain a new chromosome, and updating the initial population according to the new chromosome to obtain an updated population; step 104, adjusting the crossover probability and the mutation probability according to the optimal solution update result in the updated population; step 105, in the next iterative optimization process, repeating steps 102 to 104 according to the adjusted crossover probability and the adjusted mutation probability, updating the updated population, and obtaining the optimal configuration parameter group corresponding to the target application software after determining that the number of iterative optimizations meets the preset number.

[0129] In addition, the logic instructions in the above-mentioned memory 503 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0130] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the application software configuration parameter tuning method provided by the above methods, and the method includes: step 101, constructing an initial population according to multiple initial configuration parameter groups corresponding to the target application software to be parameter tuned; step 102, determining the first chromosome and the second chromosome in the initial population according to the fitness value corresponding to each chromosome in the initial population; step 103, determining the first chromosome and the second chromosome in the initial population according to the crossover probability. and mutation probability, performing a crossover operation and a mutation operation on the first chromosome and the second chromosome to obtain a new chromosome, and updating the initial population according to the new chromosome to obtain an updated population; step 104, adjusting the crossover probability and the mutation probability according to the optimal solution update result in the updated population; step 105, in the next iterative optimization process, repeating steps 102 to 104 according to the adjusted crossover probability and the adjusted mutation probability, updating the updated population, and after determining that the number of iterative optimizations meets the preset number, obtaining the optimal configuration parameter group corresponding to the target application software.

[0131] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to execute the application software configuration parameter tuning method provided in the above embodiments, the method comprising: step 101, constructing an initial population according to multiple initial configuration parameter groups corresponding to the target application software to be parameter tuned; step 102, determining the first chromosome and the second chromosome in the initial population according to the fitness value corresponding to each chromosome in the initial population; step 103, according to the crossover probability and the mutation probability, performing a crossover on the first chromosome and the second chromosome; The two chromosomes are crossover and mutation operated to obtain new chromosomes, and the initial population is updated according to the new chromosome to obtain an updated population; step 104, according to the optimal solution update result in the updated population, the crossover probability and the mutation probability are adjusted; step 105, in the next iterative optimization process, according to the adjusted crossover probability and the adjusted mutation probability, steps 102 to 104 are repeated to update the updated population, and after determining that the number of iterative optimizations meets the preset number, the optimal configuration parameter group corresponding to the target application software is obtained.

[0132] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0133] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0134] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for optimizing application software configuration parameters, characterized in that: include: Step 101, constructing an initial population according to a plurality of initial configuration parameter groups corresponding to the target application software to be parameter tuned; Step 102, determining the first chromosome and the second chromosome in the initial population according to the fitness value corresponding to each chromosome in the initial population; Step 103, performing a crossover operation and a mutation operation on the first chromosome and the second chromosome according to the crossover probability and the mutation probability to obtain a new chromosome, and updating the initial population according to the new chromosome to obtain an updated population; Step 104, adjusting the crossover probability and the mutation probability according to the optimal solution update result in the updated population; Step 105, in the next iterative optimization process, according to the adjusted crossover probability and the adjusted mutation probability, repeat steps 102 to 104 to update the updated population, and after determining that the number of iterative optimizations meets the preset number, obtain the optimal configuration parameter group corresponding to the target application software.

2. The method for optimizing application software configuration parameters according to claim 1, characterized in that: The step of constructing an initial population according to a plurality of initial configuration parameter groups corresponding to the target application software to be parameter tuned includes: After the target application software executes each of the initial configuration parameter groups, obtaining performance indicator results corresponding to each of the initial configuration parameter groups; Encoding each of the initial configuration parameter groups to obtain a chromosome corresponding to each of the initial configuration parameter groups; The performance index result is used as the fitness value of the corresponding chromosome to construct the initial population.

3. The method for optimizing application software configuration parameters according to claim 1, characterized in that: Determining the first chromosome and the second chromosome in the initial population according to the fitness value corresponding to each chromosome in the initial population includes: Based on a roulette algorithm, the first chromosome and the second chromosome are determined from the initial population according to the fitness value corresponding to each chromosome in the initial population.

4. The method for optimizing application software configuration parameters according to claim 1, characterized in that: The step of performing a crossover operation and a mutation operation on the first chromosome and the second chromosome according to the crossover probability and the mutation probability to obtain a new chromosome comprises: Based on the fragment crossover mode and according to the crossover probability, a crossover operation is performed on the first chromosome and the second chromosome to obtain a first chromosome after the crossover processing and a second chromosome after the crossover processing; The number of mutation points is determined according to the number of configuration parameter types, and the mutation operation is performed on the first chromosome after the crossover processing and the second chromosome after the crossover processing according to the number of mutation points and the mutation probability to obtain the new chromosome.

5. The method for optimizing application software configuration parameters according to claim 2, characterized in that: The step of updating the initial population according to the new chromosome to obtain an updated population includes: According to the performance index result corresponding to the new chromosome and the performance index result of the chromosome in the initial population, the chromosomes in the initial population after the new chromosome is introduced are sorted from high to low according to the fitness value to obtain a fitness value sorting result; The first K chromosomes in the fitness value sorting result are determined, and a randomly selected chromosome from the first K chromosomes is subjected to gene segment replacement processing with the chromosome ranked first in the fitness value sorting result to obtain the updated population.

6. The method for optimizing application software configuration parameters according to claim 1 or 5, characterized in that: The method further comprises: Determining the crossover probability and the mutation probability, wherein the crossover probability is greater than the mutation probability; The step of adjusting the crossover probability and the mutation probability according to the optimal solution update result in the updated population includes: Obtaining the optimal solution in the updated population during iterative optimization processing; According to the optimal solution obtained in each iterative optimization process, the optimal solution in the current iterative optimization process is judged; If it is determined that the optimal solution in the current iterative optimization process is the same as the optimal solution in the previous g iterative optimization processes, the values ​​corresponding to the crossover probability and the mutation probability are exchanged and adjusted to obtain the adjusted crossover probability and the adjusted mutation probability; If it is determined that the optimal solution in the current iterative optimization process is different from the optimal solution in the previous g iterative optimization processes, the values ​​corresponding to the crossover probability and the mutation probability are kept unchanged; If in the next iterative optimization process, the optimal solution obtained after updating the population according to the adjusted crossover probability and the adjusted mutation probability is different from the optimal solution in the current iterative optimization process, the respective values ​​of the adjusted crossover probability and the adjusted mutation probability are restored.

7. The method for optimizing application software configuration parameters according to claim 2, characterized in that: After the target application software executes each of the initial configuration parameter groups, obtaining performance indicator results corresponding to each of the initial configuration parameter groups includes: Generate corresponding configuration files according to each of the initial configuration parameter groups Based on the Benchmark tool and the configuration file, the target application software is subjected to a performance test to obtain performance indicator results corresponding to each of the initial configuration parameter groups.

8. An application software configuration parameter tuning system, characterized in that: include: A configuration parameter extraction module is used to construct an initial population according to a plurality of initial configuration parameter groups corresponding to the target application software to be parameter tuned; A first tuning processing module, used for determining a first chromosome and a second chromosome in the initial population according to the fitness value corresponding to each chromosome in the initial population; A second tuning processing module is used to perform a crossover operation and a mutation operation on the first chromosome and the second chromosome according to the crossover probability and the mutation probability to obtain a new chromosome, and update the initial population according to the new chromosome to obtain an updated population; A third tuning processing module, used for adjusting the crossover probability and the mutation probability according to the optimal solution update result in the updated population; The fourth tuning processing module is used to repeatedly call the first tuning processing module, the second tuning processing module and the third tuning processing module according to the adjusted crossover probability and the adjusted mutation probability in the next iterative optimization processing process, to update the updated population, and after determining that the number of iterative optimizations meets the preset number, obtain the optimal configuration parameter group corresponding to the target application software.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method for optimizing the configuration parameters of application software as claimed in any one of claims 1 to 7 is implemented.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for optimizing the configuration parameters of application software as claimed in any one of claims 1 to 7 is implemented.