Scripting language process management method, server and computer-readable storage medium

Through the script language process management method, the worker process pool and factory generate and recycle worker processes, the problem of duplicate loading performance overhead in script language application services is solved, and the operation efficiency of application services is improved.

CN113220289BActive Publication Date: 2025-04-25CHINA TELECOM CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010070169.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-01-21
Publication Date
2025-04-25
Estimated Expiration
2040-01-21

AI Technical Summary

Technical Problem

Under the same hardware conditions, higher performance scripting language application services are needed, especially large-scale scripting language application services, the performance overhead of reloading each time is high and cannot be ignored.

Method used

Provides a scripting language process management method, by receiving a hypertext transmission protocol request, extracting or generating corresponding work processes from the work process pool according to the request path, executing the corresponding work code, and putting it back into the pool when the life cycle meets the predetermined conditions, otherwise the factory will be notified to recycle.

Benefits of technology

It realizes automatic saving of parsed code for the same type of request, reducing the duplicate loading overhead of script language application services and improving the running efficiency of script language.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113220289B_ABST
    Figure CN113220289B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a scripting language process management method, a server and a computer-readable storage medium. The scripting language process management method comprises: receiving a hypertext transfer protocol request; extracting a corresponding work process from a work process pool according to a hypertext transfer protocol request path; calling the work process and executing a work code corresponding to the hypertext transfer protocol request. The present disclosure is for the same type of function processing of the scripting language, the code can be reused, and the parsed code can be automatically saved for the same type of request, thereby improving the operation efficiency of the scripting language.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer software, and in particular to a scripting language process management method, a server, and a computer-readable storage medium. Background Art

[0002] The biggest difference between scripting languages ​​and compiled languages ​​is that scripting languages ​​require an interpreter and can run programs directly from source code. Relatively speaking, scripting languages ​​greatly facilitate developers in developing and debugging programs.

[0003] Although the related technical methods can achieve the effect of changes as soon as they are made without the need for compilation, a series of operations such as reloading files and constructing classes are required each time. Summary of the invention

[0004] The inventors have discovered through research that, based on the relevant technical mechanism, if a higher performance scripting language application service is needed under the same hardware conditions, or if the application service is a large-scale scripting language application service, then the performance overhead of the repetitive work of each reload is very large and cannot be ignored.

[0005] In view of at least one of the above technical problems, the present disclosure provides a scripting language process management method, a server and a computer-readable storage medium, and the code can be reused for the same type of function processing of the scripting language.

[0006] According to one aspect of the present disclosure, a scripting language process management method is provided, comprising:

[0007] receiving a hypertext transfer protocol request;

[0008] Extract the corresponding work process from the work process pool according to the hypertext transfer protocol request path;

[0009] The working process is called to execute the working code corresponding to the hypertext transfer protocol request.

[0010] In some embodiments of the present disclosure, extracting the corresponding work process from the work process pool according to the hypertext transfer protocol request path includes:

[0011] Access the worker process pool;

[0012] Locate the work process based on the HTTP request path;

[0013] Determine whether the work process exists;

[0014] When the working process exists, the working process is extracted from the working process pool.

[0015] In some embodiments of the present disclosure, extracting the corresponding work process from the work process pool according to the hypertext transfer protocol request path further includes:

[0016] If the worker process does not exist, access the worker process factory;

[0017] Generate a corresponding work process and place the corresponding work process in a work process pool, and then execute the step of accessing the work process pool.

[0018] In some embodiments of the present disclosure, the scripting language process management method further includes:

[0019] After executing the work code corresponding to the hypertext transfer protocol request, determining whether the life cycle of the work process meets a predetermined condition;

[0020] When the life cycle of the work process meets a predetermined condition, the work process is returned to the work process pool;

[0021] When the life cycle of the work process does not meet a predetermined condition, the work process factory is notified to recycle the work process.

[0022] In some embodiments of the present disclosure, the predetermined condition includes that the number of times the work process is used is less than or equal to the upper limit of the predetermined number of times, and no unexpected results occur during the use of the work process;

[0023] The determining whether the life cycle of the work process meets a predetermined condition includes:

[0024] When the number of times the work process is used is less than or equal to the upper limit of the predetermined number of times and no unexpected results occur during the use of the work process, it is determined that the life cycle of the work process meets the predetermined condition;

[0025] When the number of times a work process is used is greater than a predetermined upper limit, or an unexpected result occurs during the use of the work process, it is determined that the life cycle of the work process does not meet a predetermined condition.

[0026] In some embodiments of the present disclosure, the scripting language process management method further includes:

[0027] Monitor changes to script source code of working process script files;

[0028] When the script file is updated, refresh the worker process pool.

[0029] According to another aspect of the present disclosure, there is provided a server, comprising:

[0030] A request receiving module, used for receiving a hypertext transfer protocol request;

[0031] A work process extraction module is used to extract a corresponding work process from a work process pool according to a hypertext transfer protocol request path;

[0032] The work process calling module is used to call the work process and execute the work code corresponding to the hypertext transfer protocol request.

[0033] In some embodiments of the present disclosure, the server is used to execute operations to implement the scripting language process management method as described in any of the above embodiments.

[0034] According to another aspect of the present disclosure, there is provided a server, comprising:

[0035] A memory for storing instructions;

[0036] The processor is used to execute the instruction so that the server performs the operation of implementing the scripting language process management method as described in any of the above embodiments.

[0037] According to another aspect of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and when the instructions are executed by a processor, the scripting language process management method as described in any of the above embodiments is implemented.

[0038] The present disclosure is directed to the same type of functional processing of the scripting language, the code can be reused, and the parsed code can be automatically saved for the same type of request, thereby improving the operating efficiency of the scripting language. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in 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 only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0040] Figure 1 The following is a schematic diagram of some embodiments of the scripting language process management method disclosed in the present invention.

[0041] Figure 2 Schematic diagram of other embodiments of the scripting language process management method disclosed in the present invention.

[0042] Figure 3 Schematic diagram of some further embodiments of the scripting language process management method disclosed in the present invention.

[0043] Figure 4 Schematic diagram of some further embodiments of the scripting language process management method disclosed in the present invention.

[0044] Figure 5Schematic diagram of some embodiments of the server disclosed herein.

[0045] Figure 6 Schematic diagrams of other embodiments of the server disclosed herein. DETAILED DESCRIPTION

[0046] The technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present disclosure and its application or use. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0047] Unless specifically stated otherwise, the relative arrangement of components and steps, the numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present disclosure.

[0048] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.

[0049] Technologies, methods, and apparatus known to ordinary technicians in the relevant field may not be discussed in detail, but where appropriate, such technologies, methods, and apparatus should be considered part of the authorization specification.

[0050] In all examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.

[0051] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0052] Figure 1 Schematic diagram of some embodiments of the scripting language process management method disclosed in the present invention. Preferably, this embodiment can be executed by the server disclosed in the present invention. The method includes the following steps:

[0053] Step 11: Receive an HTTP (HyperText Transfer Protocol) request.

[0054] Step 12: extract the corresponding work process from the work process pool according to the hypertext transfer protocol request path.

[0055] In some embodiments of the present disclosure, step 12 may include:

[0056] Step 121, access the work process pool.

[0057] Step 122, locating the work process according to the hypertext transfer protocol request path.

[0058] Step 123, determine whether the working process exists.

[0059] Step 124: if the working process exists, extract the working process from the working process pool.

[0060] Step 125: If the work process does not exist, access the work process factory.

[0061] Step 126, generate a corresponding work process, and place the corresponding work process in the work process pool, and then execute step 121.

[0062] Step 13: Call the work process to execute the work code corresponding to the hypertext transfer protocol request.

[0063] In some embodiments of the present disclosure, the scripting language process management method may further include: after executing the work code corresponding to the hypertext transfer protocol request, determining whether the life cycle of the work process meets a predetermined condition; if the life cycle of the work process meets the predetermined condition, placing the work process back into the work process pool; if the life cycle of the work process does not meet the predetermined condition, notifying the work process factory to recycle the work process.

[0064] In some embodiments of the present disclosure, the predetermined condition may include that the number of times the work process is used is less than or equal to an upper limit of a predetermined number of times, and no unexpected results occur during the use of the work process.

[0065] In some embodiments of the present disclosure, the step of determining whether the life cycle of the work process satisfies a predetermined condition may include: when the number of times the work process is used is less than or equal to an upper limit of a predetermined number of times and no unexpected results occur during the use of the work process, determining that the life cycle of the work process satisfies the predetermined condition; when the number of times the work process is used is greater than an upper limit of a predetermined number of times or an unexpected result occurs during the use of the work process, determining that the life cycle of the work process does not satisfy the predetermined condition.

[0066] The above-mentioned embodiments of the present disclosure can automatically generate, call, and destroy Workers according to needs to ensure the normal operation of the system.

[0067] In some embodiments of the present disclosure, the script language process management method may further include: monitoring changes in script source code of a work process script file; and automatically refreshing the work process pool when the script file is updated.

[0068] In some embodiments of the present disclosure, after receiving an HTTP request, the server distributes the data to multiple worker processes using a socket. The worker repackages the request into a request and hands it over to an existing application for processing.

[0069] In some embodiments of the present disclosure, in the step of distributing tasks using a Socket custom protocol, the Socket interface has a fixed-size packet header that contains information such as each packet type, size, and binary mask to verify data integrity.

[0070] In some embodiments of the present disclosure, the above embodiments of the present disclosure can support PSR (PHP standard specification)-7 standard Request, support multiple existing frameworks through standard interface specifications, and improve the usability of the program, wherein PHP is a Hypertext Preprocessor.

[0071] The scripting language process management method provided by the above embodiment of the present disclosure is a load balancing and process management method, which solves the technical problem that the scripting language of the related art needs to load at least a dozen files, construct multiple classes, and parse several configurations in order to process simple user requests or access databases, but after completing each task, the process is destroyed, all contents are reset, and restarted. That is, it solves the technical problem that all the codes just loaded in the related art become useless and cannot be used to process another request, and have to be abandoned.

[0072] The scripting language process management method of the above embodiment of the present disclosure solves the technical problem that the same type of function processing of the scripting language in the related technology cannot be reused. The above embodiment of the present disclosure can access the Request interface of the above embodiment of the present disclosure by modifying the load program of the scripting language; the above embodiment of the present disclosure uses the Socket custom protocol to distribute tasks, and the Socket and HTTP requests are converted to each other; the above embodiment of the present disclosure adopts the Worker life cycle management and Worker pool refresh mechanism; the above embodiment of the present disclosure can support the Request request of the PSR-7 standard. Therefore, the above embodiment of the present disclosure realizes the automatic preservation of the parsed code for the same type of request, which improves the operation efficiency of the scripting language.

[0073] Figure 2Schematic diagram of some other embodiments of the scripting language process management method disclosed in the present invention. Preferably, this embodiment can be executed by the server disclosed in the present invention. The method includes the following steps:

[0074] Step 201: Receive a Hypertext Transfer Protocol request.

[0075] Step 202: Access the work process pool.

[0076] Step 203: locate the work process according to the hypertext transfer protocol request path.

[0077] Step 204, determine whether the work process exists. If the work process exists, execute step 207; otherwise, if the work process does not exist, execute step 205.

[0078] Step 205, access the work process factory.

[0079] Step 206, generate a corresponding work process, and place the corresponding work process in the work process pool, followed by step 202.

[0080] Step 207: extract the working process from the working process pool.

[0081] Step 208: calling the work process to execute the work code corresponding to the hypertext transfer protocol request.

[0082] Step 209, determining whether the life cycle of the work process meets a predetermined condition. If the life cycle of the work process meets the predetermined condition, executing step 210; otherwise, if the life cycle of the work process does not meet the predetermined condition, executing step 211.

[0083] In some embodiments of the present disclosure, the predetermined conditions include that the number of times the work process is used is less than or equal to an upper limit of a predetermined number of times, and no unexpected results occur during the use of the work process.

[0084] The determining whether the life cycle of the work process meets a predetermined condition includes:

[0085] In some embodiments of the present disclosure, step 209 may include: when the number of times the work process is used is less than or equal to an upper limit of a predetermined number of times and no unexpected results occur during the use of the work process, determining that the life cycle of the work process meets the predetermined conditions; when the number of times the work process is used is greater than an upper limit of a predetermined number of times or unexpected results occur during the use of the work process, determining that the life cycle of the work process does not meet the predetermined conditions.

[0086] Step 210, putting the work process back into the work process pool; then the process ends without executing other steps of this embodiment.

[0087] Step 211, access the work process factory.

[0088] Step 212: Notify the work process factory to recycle the work process.

[0089] In some embodiments of the present disclosure, the script language process management method may further include: monitoring changes in script source code of a work process script file; and refreshing the work process pool when the script file is updated.

[0090] The above embodiments of the present disclosure can be implemented by implementing a server program, which can accept HTTP requests, then take out the corresponding Worker from the Worker pool according to the path of the request, and store it back to the Worker pool after use, instead of killing the Worker every time.

[0091] The server program of the above-mentioned embodiment of the present disclosure has the function of completing the whole life cycle management of Workers, including automatic generation, calling, and destruction of Workers.

[0092] The server program of the above-mentioned embodiment of the present disclosure will automatically detect whether the script has been updated, and will refresh the Worker pool after the update.

[0093] The server program of the above-mentioned embodiment of the present disclosure can eliminate the heavy operations and other negative factors in script language development while still ensuring the scalability and diversity of each application.

[0094] The server program of the above embodiment of the present disclosure uses binary stream on Socket, which is a reliable method that has been well optimized at the operating system level, to complete communication between processes.

[0095] Figure 3 The following is a schematic diagram of some other embodiments of the scripting language process management method disclosed in the present invention. Preferably, the present embodiment can be executed by the server disclosed in the present invention. The method comprises the following steps: each time a task is requested, an idle work process (worker) is taken from the work pool to execute the required task; if the work process worker / process fails or dies, it will be abandoned and a replacement process will be created; if it succeeds, it will be returned to the work process pool and wait for the next use. Therefore, the above embodiments of the present invention solve the technical problem that the process cannot be reused.

[0096] Figure 4Schematic diagram of some other embodiments of the scripting language process management method disclosed in the present invention. In this embodiment, Goridge is a high-performance PHP to Golang codec library that can work through local PHP sockets and Golang net / rpc packages. The library allows you to call Go service methods from PHP with minimal footprint, structure and [] byte support.

[0097] Compared with the solution of directly reconstructing the development framework in the related technology, the above-mentioned embodiments of the present disclosure will reduce a lot of repetitive work in the scripting language by reconstructing the load; the above-mentioned embodiments of the present disclosure can be compatible with the existing development framework; the effective process point of the above-mentioned embodiments of the present disclosure is before the effective process point of the industry technology.

[0098] The solution of the above embodiment of the present disclosure can greatly improve the application service performance, reduce server costs, and be compatible with existing application services.

[0099] The solutions of the above embodiments of the present disclosure can be used in websites and interface backends, thereby reducing a large amount of repeated consumption required by the scripting language itself and improving overall performance.

[0100] Figure 5 Schematic diagram of some embodiments of the server disclosed in the present invention. Figure 5 As shown, the server disclosed in the present invention may include a request receiving module 51, a work process extracting module 52 and a work process calling module 53, wherein:

[0101] The request receiving module 51 is used to receive a hypertext transfer protocol request.

[0102] The work process extraction module 52 is used to extract the corresponding work process from the work process pool according to the hypertext transfer protocol request path.

[0103] In some embodiments of the present disclosure, the work process extraction module 52 can be used to access the work process pool; locate the work process according to the hypertext transfer protocol request path; determine whether the work process exists; and if the work process exists, extract the work process from the work process pool.

[0104] In some embodiments of the present disclosure, the work process extraction module 52 can also be used to access the work process factory when the work process does not exist; generate the corresponding work process, and place the corresponding work process in the work process pool, and then perform the operation of accessing the work process pool.

[0105] The work process calling module 53 is used to call the work process and execute the work code corresponding to the hypertext transfer protocol request.

[0106] In some embodiments of the present disclosure, the server of the present disclosure can also be used to determine whether the life cycle of the work process meets predetermined conditions after executing the work code corresponding to the Hypertext Transfer Protocol request; if the life cycle of the work process meets the predetermined conditions, put the work process back into the work process pool; if the life cycle of the work process does not meet the predetermined conditions, notify the work process factory to recycle the work process.

[0107] In some embodiments of the present disclosure, the predetermined conditions include that the number of times the work process is used is less than or equal to an upper limit of a predetermined number of times, and no unexpected results occur during the use of the work process.

[0108] In some embodiments of the present disclosure, the server of the present disclosure can also be used to determine that the life cycle of the work process meets the predetermined conditions when the number of times the work process is used is less than or equal to the upper limit of the predetermined number of times and no unexpected results occur during the use of the work process; and to determine that the life cycle of the work process does not meet the predetermined conditions when the number of times the work process is used is greater than the upper limit of the predetermined number of times or unexpected results occur during the use of the work process.

[0109] In some embodiments of the present disclosure, in some embodiments of the present disclosure, the server of the present disclosure can also be used to monitor the changes of the script source code of the working process script file; when the script file is updated, the working process pool is refreshed.

[0110] In some embodiments of the present disclosure, the server is used to execute any of the above embodiments (for example Figure 1-Figure 4 The operation of the scripting language process management method described in any embodiment).

[0111] The server provided based on the above embodiment of the present disclosure solves the technical problem that the same type of function processing in the scripting language of the related technology but the code cannot be reused. The above embodiment of the present disclosure can access the Request interface of the above embodiment of the present disclosure by modifying the load program of the scripting language; the above embodiment of the present disclosure uses the Socket custom protocol to distribute tasks, and the Socket and HTTP requests are converted to each other; the above embodiment of the present disclosure adopts the Worker life cycle management and Worker pool refresh mechanism; the above embodiment of the present disclosure can support the Request request of the PSR-7 standard. Therefore, the above embodiment of the present disclosure realizes the automatic preservation of the parsed code for the same type of request, which improves the operation efficiency of the scripting language.

[0112] Figure 6 Schematic diagrams of other embodiments of the server disclosed in the present invention. Figure 6 As shown, the server of the present disclosure may include a memory 61 and a processor 62, wherein:

[0113] The memory 61 is used for storing instructions.

[0114] The processor 62 is used to execute the instruction so that the server executes any of the above embodiments (for example Figure 1-Figure 4 The operation of the scripting language process management method described in any embodiment).

[0115] The server program of the above-mentioned embodiment of the present disclosure has the function of completing the whole life cycle management of Workers, including automatic generation, calling, and destruction of Workers.

[0116] The server program of the above-mentioned embodiment of the present disclosure will automatically detect whether the script has been updated, and will refresh the Worker pool after the update.

[0117] The server program of the above-mentioned embodiment of the present disclosure can eliminate the heavy operations and other negative factors in script language development while still ensuring the scalability and diversity of each application.

[0118] The server program of the above embodiment of the present disclosure uses binary stream on Socket, which is a reliable method that has been well optimized at the operating system level, to complete communication between processes.

[0119] According to another aspect of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and when the instructions are executed by a processor, any of the above embodiments (for example Figure 1-Figure 4 The scripting language process management method described in any embodiment).

[0120] Based on the computer-readable storage medium provided by the above embodiments of the present disclosure, a large amount of repetitive work in the scripting language can be reduced by reconstructing the load; the above embodiments of the present disclosure can be compatible with the existing development framework; the effective process point of the above embodiments of the present disclosure is before the effective process point of the industry technology.

[0121] The solution of the above embodiment of the present disclosure can greatly improve the application service performance, reduce server costs, and be compatible with existing application services.

[0122] The solutions of the above embodiments of the present disclosure can be used in websites and interface backends, thereby reducing a large amount of repeated consumption required by the scripting language itself and improving overall performance.

[0123] The server described above can be implemented as a general-purpose processor, a programmable logic controller (PLC), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components or any appropriate combination thereof for performing the functions described in this application.

[0124] So far, the present disclosure has been described in detail. In order to avoid obscuring the concept of the present disclosure, some details known in the art are not described. Based on the above description, those skilled in the art can fully understand how to implement the technical solution disclosed here.

[0125] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or may be accomplished by instructing the relevant hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0126] The description of the present disclosure is given for the purpose of illustration and description, and is not intended to be exhaustive or to limit the present disclosure to the disclosed form. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiments are selected and described in order to better illustrate the principles and practical applications of the present disclosure, and to enable those of ordinary skill in the art to understand the present disclosure and thereby design various embodiments with various modifications suitable for specific uses.

Claims

1. A scripting language process management method, characterized in that: include: receiving a hypertext transfer protocol request; Extract the corresponding work process from the work process pool according to the hypertext transfer protocol request path; Calling the work process to execute the work code corresponding to the hypertext transfer protocol request; After executing the work code corresponding to the hypertext transfer protocol request, determining whether the life cycle of the work process meets a predetermined condition; When the life cycle of the work process meets a predetermined condition, the work process is returned to the work process pool.

2. The scripting language process management method according to claim 1, characterized in that: The extracting the corresponding work process from the work process pool according to the hypertext transfer protocol request path includes: Access the worker process pool; Locate the work process based on the HTTP request path; Determine whether the work process exists; When the working process exists, the working process is extracted from the working process pool.

3. The scripting language process management method according to claim 2, characterized in that: The extracting the corresponding work process from the work process pool according to the hypertext transfer protocol request path also includes: If the worker process does not exist, access the worker process factory; Generate a corresponding work process and place the corresponding work process in a work process pool, and then execute the step of accessing the work process pool.

4. The scripting language process management method according to any one of claims 1 to 3, characterized in that: Also includes: When the life cycle of the work process does not meet a predetermined condition, the work process factory is notified to recycle the work process.

5. The scripting language process management method according to any one of claims 1 to 3, characterized in that: The predetermined conditions include that the number of times the work process is used is less than or equal to the upper limit of the predetermined number of times, and no unexpected results occur during the use of the work process; The determining whether the life cycle of the work process meets a predetermined condition includes: When the number of times the work process is used is less than or equal to the upper limit of the predetermined number of times and no unexpected results occur during the use of the work process, it is determined that the life cycle of the work process meets the predetermined condition; When the number of times a work process is used is greater than a predetermined upper limit, or an unexpected result occurs during the use of the work process, it is determined that the life cycle of the work process does not meet a predetermined condition.

6. The scripting language process management method according to any one of claims 1 to 3, characterized in that: Also includes: Monitor changes to script source code of working process script files; When the script file is updated, refresh the worker process pool.

7. A server, characterized in that: include: A request receiving module, used for receiving a hypertext transfer protocol request; A work process extraction module is used to extract a corresponding work process from a work process pool according to a hypertext transfer protocol request path; A work process calling module, used to call the work process and execute the work code corresponding to the hypertext transfer protocol request; The server is also used to determine whether the life cycle of the work process meets the predetermined conditions after executing the work code corresponding to the Hypertext Transfer Protocol request; if the life cycle of the work process meets the predetermined conditions, the work process is put back into the work process pool.

8. The server according to claim 7, characterized in that: The server is used to execute operations to implement the scripting language process management method according to any one of claims 2 to 6.

9. A server, characterized in that: include: A memory for storing instructions; The processor is used to execute the instruction so that the server performs the operation of implementing the scripting language process management method according to any one of claims 1 to 6.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the instructions are executed by a processor, the scripting language process management method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Exposure code recognition method and device

    CN107844484A

  • Working method for efficient testing in software compiling and deploying process

    CN110347484A