CN113746868A - Method, device, equipment and medium for optimizing server performance - Google Patents

Method, device, equipment and medium for optimizing server performance Download PDF

Info

Publication number
CN113746868A
CN113746868A CN202111296888.4A CN202111296888A CN113746868A CN 113746868 A CN113746868 A CN 113746868A CN 202111296888 A CN202111296888 A CN 202111296888A CN 113746868 A CN113746868 A CN 113746868A
Authority
CN
China
Prior art keywords
detection time
access request
preset
server
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111296888.4A
Other languages
Chinese (zh)
Other versions
CN113746868B (en
Inventor
张�荣
郭晓
范渊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
DBAPPSecurity Co Ltd
Original Assignee
DBAPPSecurity Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by DBAPPSecurity Co Ltd filed Critical DBAPPSecurity Co Ltd
Priority to CN202111296888.4A priority Critical patent/CN113746868B/en
Publication of CN113746868A publication Critical patent/CN113746868A/en
Application granted granted Critical
Publication of CN113746868B publication Critical patent/CN113746868B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/14Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
    • H04L63/1408Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic by monitoring network traffic
    • H04L63/1416Event detection, e.g. attack signature detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/14Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
    • H04L63/1441Countermeasures against malicious traffic

Abstract

The application discloses a method, a device, equipment and a medium for optimizing server performance, wherein the method comprises the following steps: when the target server is detected by using the WAF, a first access request sent by the client to the target server at the current moment is acquired; determining the detection time required by the first access request under the unit message length to obtain first detection time; if the first detection time is longer than the preset detection time, sending a first access request to a target server at a preset frequency, and generating a first flame diagram corresponding to the first access request; and searching a hot spot function from the first flame diagram to obtain a first function set, and optimizing the hot spot function in the first function set so as to optimize the performance of the target server by using the optimized hot spot function. Obviously, by the method, more hotspot functions can be found when the client accesses the server, so that the aim of better optimizing the performance of the server can be fulfilled.

Description

Method, device, equipment and medium for optimizing server performance
Technical Field
The present invention relates to the field of server technologies, and in particular, to a method, an apparatus, a device, and a medium for optimizing server performance.
Background
In order to secure the access of the server, it is usually necessary to use a WAF (Web Application Firewall) to protect the server. Referring to fig. 1, fig. 1 is a schematic diagram illustrating a message request received by a WAF to a server. Since the WAF is configured with a plurality of servers, when the access traffic of the servers is large, the message detection capability of the WAF is challenged, and if the detection capability of the WAF is insufficient, the servers are attacked by malicious access.
In the prior art, in order to avoid the above situation, a flame diagram is generally drawn by a perf tool to search a hot spot function of a client accessing a server, and the searched hot spot function is optimized, so that the purpose of optimizing the performance of the server is achieved. However, in this way, access requests which are affected greatly due to low frequency of accessing the server by the client are easily ignored, and only a small number of hotspot functions can be found from the flame diagram, so that the performance of the server cannot be optimized better. At present, no effective solution exists for the technical problem.
Disclosure of Invention
In view of this, an object of the present invention is to provide a method, an apparatus, a device and a medium for optimizing server performance, so as to find more hotspot functions when a client accesses a server and better optimize the server performance. The specific scheme is as follows:
a method for optimizing server performance comprises the following steps:
when the target server is detected by using the WAF, acquiring a first access request sent by a client to the target server at the current moment;
determining the detection time required by the first access request under the unit message length to obtain first detection time;
if the first detection time is longer than the preset detection time, sending the first access request to the target server at a preset frequency, and generating a first flame diagram corresponding to the first access request;
and searching a hot spot function from the first flame diagram to obtain a first function set, and optimizing the hot spot function in the first function set so as to optimize the performance of the target server by using the optimized hot spot function.
Preferably, the step of determining the required detection time of the first access request in a unit message length to obtain a first detection time includes:
and determining the detection time required by the first access request under the unit message length according to the message type and the request body length of the first access request to obtain the first detection time.
Preferably, the process of sending the first access request to the target server at the preset frequency includes:
and sending the first access request to the target server by using a meter or ab at the preset frequency.
Preferably, the process of setting the preset detection time includes:
storing all access requests in a preset time period before the client sends the first access request to the target server to a preset database;
determining the detection time required by all access requests in the preset database under the unit message length to obtain a detection time set;
and searching the shortest detection time in the detection time set to obtain the preset detection time.
Preferably, the method further comprises the following steps:
acquiring a second access request sent by the client to the target server at the next moment, and determining the detection time required by the second access request in the unit message length to obtain second detection time;
if the access requests stored in the preset database are smaller than the preset storage quantity, storing the second access request in the preset database;
if the access requests stored in the preset database are greater than or equal to the preset storage quantity, judging whether the second detection time is less than the preset detection time;
if the second detection time is less than the preset detection time, discarding the second access request;
and if the second detection time is greater than or equal to the preset detection time, storing the second access request to the preset database, and deleting the access request corresponding to the preset detection time in the preset database.
Preferably, the method further comprises the following steps:
updating the detection time set to obtain an updated detection time set;
and searching the shortest detection time in the updated detection time set to obtain the updated shortest detection time, and updating the preset detection time into the updated shortest detection time.
Preferably, the method further comprises the following steps:
selecting a target access request from the preset database; the target access request is any one access request in the preset database;
sending the target access request to the target server at the preset frequency, and generating a target flame map corresponding to the target access request;
searching a hot spot function from the target flame diagram to obtain a target function set, and optimizing the hot spot function in the target function set;
and repeatedly executing the step of selecting the target access request from the preset database until the hot spot functions of the flame charts corresponding to all the access requests in the preset database are optimized.
Correspondingly, the invention also discloses a device for optimizing the performance of the server, which comprises:
the request acquisition module is used for acquiring a first access request sent by a client to a target server at the current moment when the target server is detected by using the WAF;
the time detection module is used for determining the detection time required by the first access request under the unit message length to obtain first detection time;
the request sending module is used for sending the first access request to the target server at a preset frequency and generating a first flame diagram corresponding to the first access request if the first detection time is longer than a preset detection time;
and the function optimization module is used for searching a hot spot function from the first flame diagram to obtain a first function set, and optimizing the hot spot function in the first function set so as to optimize the performance of the target server by using the optimized hot spot function.
Correspondingly, the invention also discloses a device for optimizing the performance of the server, which comprises:
a memory for storing a computer program;
a processor for implementing the steps of a method for optimizing server performance as disclosed in the foregoing when executing said computer program.
Accordingly, the present invention also discloses a computer readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of a method for optimizing server performance as disclosed in the foregoing.
In the invention, when a target server is detected by using WAF, a first access request sent to the target server by a client at the current moment is firstly obtained, and the detection time required by the first access request under the unit message length is determined to obtain first detection time; and if the first detection time is longer than the preset detection time, the first access request has a larger influence on the performance of the target server. In this case, sending a first access request to the target server at a preset frequency, and generating a first flame map corresponding to the first access request; then, a hot spot function is searched from the first flame diagram to obtain a first function set, and the hot spot function in the first function set is optimized. Obviously, the access request which is low in frequency and greatly influenced when the client accesses the server can be found through the method, so that more hotspot functions can be found when the client accesses the server, and the aim of better optimizing the performance of the server can be fulfilled. Correspondingly, the device, the equipment and the medium for optimizing the performance of the server also have the beneficial effects.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic diagram of a message request received by a WAF to a server;
fig. 2 is a flowchart of a method for optimizing server performance according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating storing an access request in a predetermined database according to an embodiment of the present invention;
FIG. 4 is a flowchart of finding a hotspot function according to an embodiment of the present invention;
fig. 5 is a block diagram of an apparatus for optimizing server performance according to an embodiment of the present invention;
fig. 6 is a block diagram of an apparatus for optimizing server performance according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 2, fig. 2 is a flowchart of a method for optimizing server performance according to an embodiment of the present invention, where the method includes:
step S11: when the target server is detected by using the WAF, a first access request sent by the client to the target server at the current moment is acquired;
step S12: determining the detection time required by the first access request under the unit message length to obtain first detection time;
step S13: if the first detection time is longer than the preset detection time, sending a first access request to a target server at a preset frequency, and generating a first flame diagram corresponding to the first access request;
step S14: and searching a hot spot function from the first flame diagram to obtain a first function set, and optimizing the hot spot function in the first function set so as to optimize the performance of the target server by using the optimized hot spot function.
In this embodiment, a method for optimizing server performance is provided, by which more hotspot functions can be found when a client accesses a server, and thus, a purpose of better optimizing server performance is achieved.
Specifically, when the target server is detected by using the WAF, a first access request sent by the client to the target server at the current moment is firstly acquired, and the detection time required by the first access time in the unit message length is determined, so that the first detection time is obtained.
It can be understood that when an access request is large, the time for the WAF to detect the access request is long, and then it is easy to find the hotspot function triggered by the access request, which is a normal phenomenon. The hot spot function refers to a function which is executed for a large number of times in the running process of a program.
Therefore, in this embodiment, in order to avoid the above situation, after the first detection time required by the first access request in the unit message length is calculated, the first detection time is compared with the preset detection time, and if the first detection time is greater than the preset detection time, it is indicated that the first access request has a large influence on the performance of the target server, and a hotspot function may be triggered. In this case, it is necessary to transmit a first access request to the target server at a higher preset frequency and generate a first flame map corresponding to the first access request.
It can be understood that, because the flame map is an advantage for performing performance analysis, the first flame map generated by the first access request can find out the hot spot functions that need to be called frequently in the target server, and at this time, the found hot spot functions are stored in the first function set, and the hot spot functions in the first function set are optimized, so that the purpose of performing performance optimization on the target server can be achieved.
In this embodiment, when the target server is detected by using the WAF, first, a first access request sent by the client to the target server at the current time is obtained, and detection time required by the first access request in the unit message length is determined to obtain first detection time; and if the first detection time is longer than the preset detection time, the first access request has a larger influence on the performance of the target server. In this case, sending a first access request to the target server at a preset frequency, and generating a first flame map corresponding to the first access request; then, a hot spot function is searched from the first flame diagram to obtain a first function set, and the hot spot function in the first function set is optimized. Obviously, the access request which is low in frequency and greatly influenced when the client accesses the server can be found through the method, so that more hotspot functions can be found when the client accesses the server, and the aim of better optimizing the performance of the server can be fulfilled.
Based on the above embodiments, this embodiment further describes and optimizes the technical solution, and as a preferred implementation, the above steps: the process of determining the required detection time of the first access request in the unit message length to obtain the first detection time includes:
and determining the required detection time of the first access request under the unit message length according to the message type and the request body length of the first access request to obtain first detection time.
In this embodiment, the required detection time of the first access request in the unit message length may be determined according to the message type and the request body length of the first access request, and thus the required first detection time of the first access request in the unit message length may be obtained.
The message Type and the request body Length of the first access request can be obtained through a request header field of http, the message Type can be obtained through a Content-Type field, and the request body Length can be obtained through a Content-Length field. Specifically, if the request body of the first access request is a chunk message, the total length of the request body needs to be obtained by adding the lengths of the chunks.
In the actual operation process, the message type can be marked as type, and the total length of the request body can be marked as len. When the detection time required by the first access request in the unit message length is calculated, the time is counted from the requester until the requester detects. Assuming that the detection time of the first access request is time, the first detection time required by the first access request in the unit message length is time _ perlen = time/len.
In addition, in practical application, it may be that, because the Linux detection time is not accurate, and the system clock interrupt frequency is long, a large deviation occurs between the detection time required by the access request in the unit message length and the actual value. Therefore, in order to avoid the above situation, the unit message length can be increased appropriately to improve the accuracy of the detection time required for the access request in the unit message length.
Based on the above embodiments, this embodiment further describes and optimizes the technical solution, and as a preferred implementation, the above steps: the process of sending a first access request to a target server at a preset frequency comprises the following steps:
and sending a first access request to the target server by using a meter or ab at a preset frequency.
Specifically, in this embodiment, the jmeter or ab may be used to send the first access request to the target access request at the preset frequency, because the jmeter and the ab are two types of commonly used pressure measurement tools, where the jmeter has a GUI (Graphical User Interface) tool with a powerful function, and the ab is flexible and convenient to use and has a powerful statistical function, when the jmeter or the ab is used to send the first access request to the target server at the preset frequency, the convenience of the User in the actual operation process may be relatively improved.
Based on the foregoing embodiments, this embodiment further describes and optimizes the technical solution, and as a preferred implementation, the process of setting the preset detection time includes:
storing all access requests in a preset time period before a client sends a first access request to a target server to a preset database;
determining the detection time required by all access requests in a preset database under the unit message length to obtain a detection time set;
and searching the shortest detection time in the detection time set to obtain the preset detection time.
In this embodiment, a method for setting a preset detection time is provided, that is, when the preset detection time is set, first all access requests within a preset time period before a client sends a first access request to a target server are stored in a preset database, then detection times required by all access requests in the preset database under a unit message length are determined, a detection time set is obtained, and finally, the shortest detection time in the detection time set is set as the preset detection time.
The value set by the preset detection time can be more consistent with the actual condition that the client accesses the target server through the setting mode, so that the deviation caused by manually setting the preset detection time is avoided, and the accuracy in setting the preset detection time can be relatively improved.
Referring to fig. 3, fig. 3 is a flowchart illustrating storing an access request in a predetermined database according to an embodiment of the present invention. As a preferred embodiment, the optimization method further includes:
step S21: acquiring a second access request sent by the client to the target server at the next moment, and determining the required detection time of the second access request under the unit message length to obtain second detection time;
step S22: if the access requests stored in the preset database are smaller than the preset storage quantity, storing the second access requests in the preset database;
step S23: if the access requests stored in the preset database are greater than or equal to the preset storage quantity, judging whether the second detection time is less than the preset detection time;
step S24: if the second detection time is less than the preset detection time, discarding the second access request;
step S25: and if the second detection time is greater than or equal to the preset detection time, storing the second access request to a preset database, and deleting the access request corresponding to the preset detection time in the preset database.
In this embodiment, in order to better optimize the performance of the server, the access requests of the client having a large influence on the performance of the target server may be stored in a preset database in a centralized manner, so that the staff may perform centralized processing on the access requests of the target server having a large influence on the performance.
Specifically, a second access request sent by the client to the target server at the next moment needs to be obtained first, and then the detection time required by the second access request in the unit message length is calculated to obtain second detection time; if the access requests stored in the current preset database are smaller than the preset storage quantity, the second access request can be stored in the preset database at this time.
If the access requests stored in the current preset database are greater than or equal to the preset storage quantity, whether the second detection time is less than the preset detection time needs to be judged, and if the second detection time is less than the preset detection time, the second detection time required by the second access requests in the unit message length is the shortest detection time required by the access requests stored in the preset database in the unit message length. That is, the second access request has the least impact on the performance of the target server compared to the access requests stored in the preset database, in which case the second access request may be discarded; if the second detection time of the second access request is greater than or equal to the preset detection time, it indicates that the second access request has higher influence performance on the target server than the access request corresponding to the preset detection time compared with the access request stored in the preset database, in this case, the second access request may be stored in the preset database, and the access request corresponding to the preset detection time in the preset database may be deleted.
In the actual operation process, the preset storage amount may be set in a user-defined setting manner, or may be set according to the storage capacity of the preset database, which is not specifically limited herein and is required to meet the actual requirement.
Obviously, through the technical scheme provided by the embodiment, it can be ensured that the access requests stored in the preset database are all the access requests with high influence on the target server.
As a preferred embodiment, the optimization method further includes:
updating the detection time set to obtain an updated detection time set;
and searching the shortest detection time in the updated detection time set to obtain the updated shortest detection time, and updating the preset detection time into the updated shortest detection time.
It can be understood that, after the access request in the preset database is adjusted and updated according to the above method, the detection time in the detection time set also changes, so that, in order to ensure real-time performance of the data stored in the detection time set, the detection time set also needs to be updated to obtain an updated detection time set.
It is conceivable that, after the detection time set is updated, the detection time stored in the updated detection time set corresponds to the detection time required by the access request stored in the preset database for the unit message length. At this time, in order to ensure the real-time performance and accuracy of finding the hot spot function, the shortest detection time in the updated detection time set needs to be set as the preset detection time.
Referring to fig. 4, fig. 4 is a flowchart illustrating a method for finding a hotspot function according to an embodiment of the present invention. As a preferred embodiment, the optimization method further includes:
step S31: selecting a target access request from a preset database;
the target access request is any one access request in a preset database;
step S32: sending a target access request to a target server at a preset frequency, and generating a target flame diagram corresponding to the target access request;
step S33: searching a hot spot function from the target flame diagram to obtain a target function set, and optimizing the hot spot function in the target function set;
step S34: and repeating the step of selecting the target access request from the preset database until the hot spot functions of the flame charts corresponding to all the access requests in the preset database are optimized.
In this embodiment, in order to perform centralized processing on access requests that have a large influence on the performance of the target server, polling processing may be performed on the access requests in the preset database, and a flame diagram corresponding to each access request in the preset database is sequentially generated to search for more hotspot functions.
Specifically, a target access request is selected from a preset database, wherein the target access request is any one of access requests in the preset database, then the target access request is sent to a target server at a preset frequency, and a target flame diagram corresponding to the target access request is generated. After a target flame diagram corresponding to the target access request is obtained, searching a hot spot function from the target flame diagram to obtain a set of the hot spot functions in the target flame diagram, namely a target function set; then, optimizing the hot spot function in the target function set; and finally, repeating the steps 31 to 33 until the hot spot functions of the flame charts corresponding to all the access requests in the preset database are optimized.
Obviously, by the technical scheme provided by the embodiment, more hotspot functions can be searched and obtained from the access request sent by the client to the target server, and the target server can have better service performance after the hotspot functions are optimized.
Referring to fig. 5, fig. 5 is a structural diagram of an optimization apparatus for server performance according to an embodiment of the present invention, where the optimization apparatus includes:
a request obtaining module 21, configured to, when the target server is detected by using the WAF, obtain a first access request sent by the client to the target server at the current time;
the time detection module 22 is configured to determine detection time required by the first access request in a unit message length, so as to obtain first detection time;
the request sending module 23 is configured to send a first access request to the target server at a preset frequency if the first detection time is greater than a preset detection time, and generate a first flame diagram corresponding to the first access request;
and the function optimization module 24 is configured to search a hot spot function from the first flame diagram to obtain a first function set, and optimize the hot spot function in the first function set, so as to optimize the performance of the target server by using the optimized hot spot function.
The device for optimizing the performance of the server provided by the embodiment of the invention has the beneficial effects of the method for optimizing the performance of the server disclosed by the embodiment of the invention.
Referring to fig. 6, fig. 6 is a structural diagram of an optimization device for server performance according to an embodiment of the present invention, where the optimization device includes:
a memory 31 for storing a computer program;
a processor 32 for implementing the steps of a method for optimizing server performance as disclosed in the foregoing when executing a computer program.
The server performance optimization device provided by the embodiment of the invention has the beneficial effects of the server performance optimization method disclosed in the foregoing.
Accordingly, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method for optimizing the performance of the server as disclosed in the foregoing are implemented.
The computer-readable storage medium provided by the embodiment of the invention has the beneficial effects of the method for optimizing the performance of the server disclosed in the foregoing.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The method, the apparatus, the device and the medium for optimizing the server performance provided by the present invention are described in detail above, and a specific example is applied in the present disclosure to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for optimizing server performance, comprising:
when the target server is detected by using the WAF, acquiring a first access request sent by a client to the target server at the current moment;
determining the detection time required by the first access request under the unit message length to obtain first detection time;
if the first detection time is longer than the preset detection time, sending the first access request to the target server at a preset frequency, and generating a first flame diagram corresponding to the first access request;
and searching a hot spot function from the first flame diagram to obtain a first function set, and optimizing the hot spot function in the first function set so as to optimize the performance of the target server by using the optimized hot spot function.
2. The optimization method according to claim 1, wherein the step of determining a required detection time of the first access request per message length to obtain a first detection time comprises:
and determining the detection time required by the first access request under the unit message length according to the message type and the request body length of the first access request to obtain the first detection time.
3. The optimization method of claim 1, wherein the sending the first access request to the target server at a predetermined frequency comprises:
and sending the first access request to the target server by using a meter or ab at the preset frequency.
4. The optimization method according to any one of claims 1 to 3, wherein the setting process of the preset detection time includes:
storing all access requests in a preset time period before the client sends the first access request to the target server to a preset database;
determining the detection time required by all access requests in the preset database under the unit message length to obtain a detection time set;
and searching the shortest detection time in the detection time set to obtain the preset detection time.
5. The optimization method of claim 4, further comprising:
acquiring a second access request sent by the client to the target server at the next moment, and determining the detection time required by the second access request in the unit message length to obtain second detection time;
if the access requests stored in the preset database are smaller than the preset storage quantity, storing the second access request in the preset database;
if the access requests stored in the preset database are greater than or equal to the preset storage quantity, judging whether the second detection time is less than the preset detection time;
if the second detection time is less than the preset detection time, discarding the second access request;
and if the second detection time is greater than or equal to the preset detection time, storing the second access request to the preset database, and deleting the access request corresponding to the preset detection time in the preset database.
6. The optimization method of claim 5, further comprising:
updating the detection time set to obtain an updated detection time set;
and searching the shortest detection time in the updated detection time set to obtain the updated shortest detection time, and updating the preset detection time into the updated shortest detection time.
7. The optimization method of claim 4, further comprising:
selecting a target access request from the preset database; the target access request is any one access request in the preset database;
sending the target access request to the target server at the preset frequency, and generating a target flame map corresponding to the target access request;
searching a hot spot function from the target flame diagram to obtain a target function set, and optimizing the hot spot function in the target function set;
and repeatedly executing the step of selecting the target access request from the preset database until the hot spot functions of the flame charts corresponding to all the access requests in the preset database are optimized.
8. An apparatus for optimizing performance of a server, comprising:
the request acquisition module is used for acquiring a first access request sent by a client to a target server at the current moment when the target server is detected by using the WAF;
the time detection module is used for determining the detection time required by the first access request under the unit message length to obtain first detection time;
the request sending module is used for sending the first access request to the target server at a preset frequency and generating a first flame diagram corresponding to the first access request if the first detection time is longer than a preset detection time;
and the function optimization module is used for searching a hot spot function from the first flame diagram to obtain a first function set, and optimizing the hot spot function in the first function set so as to optimize the performance of the target server by using the optimized hot spot function.
9. An apparatus for optimizing performance of a server, comprising:
a memory for storing a computer program;
a processor for implementing the steps of a method of optimizing the performance of a server as claimed in any one of claims 1 to 7 when executing said computer program.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of a method for optimizing the performance of a server according to any one of claims 1 to 7.
CN202111296888.4A 2021-11-04 2021-11-04 Method, device, equipment and medium for optimizing server performance Active CN113746868B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111296888.4A CN113746868B (en) 2021-11-04 2021-11-04 Method, device, equipment and medium for optimizing server performance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111296888.4A CN113746868B (en) 2021-11-04 2021-11-04 Method, device, equipment and medium for optimizing server performance

Publications (2)

Publication Number Publication Date
CN113746868A true CN113746868A (en) 2021-12-03
CN113746868B CN113746868B (en) 2022-01-04

Family

ID=78727326

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111296888.4A Active CN113746868B (en) 2021-11-04 2021-11-04 Method, device, equipment and medium for optimizing server performance

Country Status (1)

Country Link
CN (1) CN113746868B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100199345A1 (en) * 2009-02-04 2010-08-05 Breach Security, Inc. Method and System for Providing Remote Protection of Web Servers
US20120159267A1 (en) * 2010-12-21 2012-06-21 John Gyorffy Distributed computing system that monitors client device request time and server servicing time in order to detect performance problems and automatically issue alterts
CN104270362A (en) * 2014-09-29 2015-01-07 广州华多网络科技有限公司 Request handling method and device
CN106603613A (en) * 2015-10-20 2017-04-26 阿里巴巴集团控股有限公司 Request processing method and apparatus
CN109413108A (en) * 2018-12-18 2019-03-01 杭州安恒信息技术股份有限公司 A kind of WAF detection method and system based on safety

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100199345A1 (en) * 2009-02-04 2010-08-05 Breach Security, Inc. Method and System for Providing Remote Protection of Web Servers
US20120159267A1 (en) * 2010-12-21 2012-06-21 John Gyorffy Distributed computing system that monitors client device request time and server servicing time in order to detect performance problems and automatically issue alterts
CN104270362A (en) * 2014-09-29 2015-01-07 广州华多网络科技有限公司 Request handling method and device
CN106603613A (en) * 2015-10-20 2017-04-26 阿里巴巴集团控股有限公司 Request processing method and apparatus
CN109413108A (en) * 2018-12-18 2019-03-01 杭州安恒信息技术股份有限公司 A kind of WAF detection method and system based on safety

Also Published As

Publication number Publication date
CN113746868B (en) 2022-01-04

Similar Documents

Publication Publication Date Title
JP6643760B2 (en) Short link processing method, device, and server
US8984055B2 (en) Relay device, information processing system, and computer-readable recording medium
CN108667766B (en) File detection method and file detection device
JP6721057B2 (en) Communication session log analysis device and method
CN111339200A (en) Data verification method and data verification system based on database synchronization
US20180013610A1 (en) File delivery method, apparatus and system
CN106888277B (en) Domain name query method and device
CN111522836B (en) Data query method and device, electronic equipment and storage medium
WO2020228287A1 (en) Iot-mq message storage method, device, computer apparatus and storage medium
CN110891090B (en) Request method, device, server, system and storage medium
CN113315852B (en) Domain name resolution method, device and system
CN113746868B (en) Method, device, equipment and medium for optimizing server performance
CN113901441A (en) User abnormal request detection method, device, equipment and storage medium
CN107992489B (en) Data processing method and server
CN110677683B (en) Video storage and video access method and distributed storage and video access system
CN110855786B (en) Processing method and device for network data request and computer storage medium
JP6368127B2 (en) Communication device, control method, and program
CN112153164B (en) Global Internet of things equipment access method, device, system and terminal equipment
CN110659247A (en) Method, device, equipment and medium for detecting continuity of call ticket file
EP3151520B1 (en) Quarantining an internet protocol address
CN111104376B (en) Resource file query method and device
CN113961920A (en) Suspicious process processing method and device, storage medium and electronic equipment
CN113810455A (en) Back-end data access system, method, device and storage medium
CN110912820B (en) Distributed routing method, distributed routing apparatus, and computer-readable storage medium
CN106709353B (en) Security detection method and device for search engine

Legal Events

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