CN116506316A - Method and device for monitoring session data of application server - Google Patents

Method and device for monitoring session data of application server Download PDF

Info

Publication number
CN116506316A
CN116506316A CN202310317993.4A CN202310317993A CN116506316A CN 116506316 A CN116506316 A CN 116506316A CN 202310317993 A CN202310317993 A CN 202310317993A CN 116506316 A CN116506316 A CN 116506316A
Authority
CN
China
Prior art keywords
session
session data
application server
monitoring
preset threshold
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310317993.4A
Other languages
Chinese (zh)
Inventor
张海阔
马坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202310317993.4A priority Critical patent/CN116506316A/en
Publication of CN116506316A publication Critical patent/CN116506316A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer And Data Communications (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The disclosure provides a monitoring method for session data of an application server, relates to the technical field of cloud computing, and can be applied to the technical field of finance. The method comprises the following steps: the method comprises the steps of consuming session data in a message queue in real time, wherein the session data are generated regularly for an application server and sent to the message queue, and the session data comprise session numbers and session data amounts; when the number of the conversations is determined to be larger than a first preset threshold value and/or the number of the conversations is determined to be larger than a second preset threshold value, abnormal alarm information is sent; and executing session anomaly self-recovery operation according to the anomaly alarm type. The disclosure also provides a monitoring device for the session data of the application server.

Description

Method and device for monitoring session data of application server
Technical Field
The present disclosure relates to the field of cloud technologies, and in particular, to the field of application session operation and maintenance technologies, and more particularly, to a method, an apparatus, a device, a storage medium, and a program product for monitoring session data of an application server.
Background
The WEB global Wide area network engineering can realize double-layer session maintenance through distributed cache to solve the problem that user transaction can not be completed when cookie/source address session maintenance is invalid, but the session maintenance mode can lead to the pressure of an application server to be increased due to repeated creation of the same session in different application servers.
In the process of paying new business popularization for mobile banking, online banking and e, the number of sessions created in an application server after a client logs in can be used as an important monitoring index of the peak time of the client access system and the performance capacity condition of the server. Session monitoring for application servers becomes particularly important.
It should be noted that the information disclosed in the above background section is only for enhancing understanding of the background of the present disclosure and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
In view of the foregoing, the present disclosure provides a method, apparatus, device, storage medium, and program product for monitoring application server session data.
According to a first aspect of the present disclosure, there is provided a method for monitoring application server session data, the method comprising:
the method comprises the steps of consuming session data in a message queue in real time, wherein the session data are generated regularly for an application server and sent to the message queue, and the session data comprise session numbers and session data amounts;
when the number of the conversations is determined to be larger than a first preset threshold value and/or the number of the conversations is determined to be larger than a second preset threshold value, abnormal alarm information is sent; and
and executing session anomaly self-recovery operation according to the anomaly alarm type.
According to an embodiment of the present disclosure, the performing a session exception self-recovery operation according to an exception alarm type includes:
when the number of the conversations is determined to be larger than a first preset threshold value, executing a conversation cleaning thread; and
and executing the oversized session registration thread when the session data amount is determined to be greater than a second preset threshold.
According to an embodiment of the present disclosure, the executing the session cleaning thread includes:
determining a session key value of an application to which the abnormal session belongs in the distributed cache;
determining the address and port information of the host server where the session is located according to the session key value;
scanning the host server to determine an expired session; and
and cleaning the expired session.
According to an embodiment of the present disclosure, the executing the oversized conversation registration thread includes:
acquiring content information of an oversized session, wherein the content information comprises session data volume, server information and tenant identity information;
and generating an oversized session log according to the content information of the oversized session.
According to an embodiment of the present disclosure, further comprising:
and responding to a server state monitoring query instruction, and generating a visual page according to the session data.
According to an embodiment of the disclosure, the first preset threshold is set according to tenant identity information.
A second aspect of the present disclosure provides an apparatus for monitoring application server session data, the apparatus comprising:
the session data acquisition module is used for consuming session data in the message queue in real time, the session data is generated for the application server at fixed time and sent to the message queue, and the session data comprises session number and session data volume;
the alarm module is used for sending abnormal alarm information when the number of the conversations is determined to be larger than a first preset threshold value and/or the number of the conversations is determined to be larger than a second preset threshold value; and the self-recovery module is used for executing session abnormal self-recovery operation according to the abnormal alarm type.
According to an embodiment of the present disclosure, the alarm module includes: a first determination sub-module and a second determination sub-module.
The first determining submodule is used for executing a session cleaning thread when the number of the sessions is determined to be larger than a first preset threshold value; and
and the second determining submodule is used for executing the oversized session registration thread when the session data volume is determined to be larger than a second preset threshold value.
According to an embodiment of the present disclosure, the first determining submodule includes: the device comprises a first determining unit, a second determining unit, a third determining unit and a session cleaning unit.
The first determining unit is used for determining a session key value of an application to which the abnormal session belongs in the distributed cache;
the second determining unit is used for determining the address and port information of the host server where the session is located according to the session key value;
a third determining unit, configured to scan the host server to determine an expired session; and
and the session cleaning unit is used for cleaning the expired session.
According to an embodiment of the present disclosure, the second determination submodule includes an acquisition unit and a generation unit.
The system comprises an acquisition unit, a storage unit and a processing unit, wherein the acquisition unit is used for acquiring content information of an oversized session, and the content information comprises session data volume, server information and tenant identity information;
and the generating unit is used for generating an oversized session log according to the content information of the oversized session.
According to an embodiment of the present disclosure, further comprising: and the visualization module is used for responding to the server state monitoring query instruction and generating a visualization page according to the session data.
A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the spot analysis method of the micro-service architecture application described above.
A fourth aspect of the present disclosure also provides a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the above-described method of monitoring application server session data.
A fifth aspect of the present disclosure also provides a computer program product comprising a computer program which, when executed by a processor, implements the above-described method of monitoring application server session data.
According to the method for monitoring the session data of the application server, provided by the embodiment of the invention, the session data in the message queue are consumed in real time, the monitoring alarm threshold is set, when the session data exceeds the threshold, the abnormal alarm information is sent, and the corresponding session abnormal self-recovery operation is executed according to the abnormal alarm type.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be more apparent from the following description of embodiments of the disclosure with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates an application scenario diagram of a method, apparatus, device, storage medium, and program product for monitoring application server session data according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of a method for monitoring application server session data provided in accordance with an embodiment of the present disclosure;
FIG. 3 schematically illustrates a flow chart for performing a conversational anomaly self-recovery operation according to an anomaly alert type, provided in accordance with an embodiment of the present disclosure;
FIG. 4 schematically illustrates a flow diagram of an execution session cleanup thread provided in accordance with an embodiment of the present disclosure;
FIG. 5 schematically illustrates a flow diagram for executing a oversized session registration thread provided in accordance with an embodiment of the present disclosure;
FIG. 6 schematically illustrates a flow chart of a session data visualization method provided in accordance with an embodiment of the present disclosure;
FIG. 7 schematically illustrates a block diagram of a monitoring apparatus for application server session data according to an embodiment of the disclosure; and
fig. 8 schematically illustrates a block diagram of an electronic device adapted to implement a method of monitoring application server session data, according to an embodiment of the disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is only exemplary and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and/or the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It should be noted that the terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly formal manner.
Where expressions like at least one of "A, B and C, etc. are used, the expressions should generally be interpreted in accordance with the meaning as commonly understood by those skilled in the art (e.g.," a system having at least one of A, B and C "shall include, but not be limited to, a system having a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
The terms appearing in the embodiments of the present disclosure are explained first:
APP server: processing user dynamic requests, accessing databases and other application systems, and the like.
Kafka: kafka is a distributed zookeeper coordination-based distributed messaging system that can process large amounts of data in real time to meet various demand scenarios: such as Hadoop-based batch systems, low-latency real-time systems, messaging services, etc.
Session (Session): refers to a set of interactions (typically multiple requests) between a browser of a user/client and a server of a server.
Session data: refers to information data that needs to be shared among multiple request interactions stored in a server (typically an APP server) during the interaction.
Based on the technical problems described above, an embodiment of the present disclosure provides a method for monitoring session data of an application server, where the method includes: the method comprises the steps of consuming session data in a message queue in real time, wherein the session data are generated regularly for an application server and sent to the message queue, and the session data comprise session numbers and session data amounts; when the number of the conversations is determined to be larger than a first preset threshold value and/or the number of the conversations is determined to be larger than a second preset threshold value, abnormal alarm information is sent; and executing session anomaly self-recovery operation according to the anomaly alarm type.
Fig. 1 schematically illustrates an application scenario diagram of a method, apparatus, device, storage medium and program product for monitoring application server session data according to an embodiment of the present disclosure.
As shown in fig. 1, the application scenario 100 according to this embodiment may include an application server session data monitoring scenario. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or send messages or the like. Various communication client applications, such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only) may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 105 may be an operation and maintenance server, in which the method for monitoring session data of the application server provided by the embodiment of the present disclosure is executed, session data of the message queue is consumed in real time, the session data is compared with a preset threshold, and when it is determined that the number of sessions in the session data and the data size of each session are greater than the preset threshold, an alarm is triggered, alarm information is sent to the operation and maintenance platform, and an operation of automatic recovery is executed.
It should be noted that, the method for monitoring session data of an application server provided in the embodiments of the present disclosure may be generally performed by the server 105. Accordingly, the monitoring device for application server session data provided by the embodiments of the present disclosure may be generally disposed in the server 105. The method for monitoring application server session data provided by the embodiments of the present disclosure may also be performed by a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Accordingly, the monitoring apparatus for application server session data provided by the embodiments of the present disclosure may also be provided in a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and/or the server 105.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
It should be noted that, the method and the device for monitoring application server session data determined by the embodiments of the present disclosure may be used in the technical field of cloud computing, or may be used in the technical field of finance, or may be used in any field other than the financial field, and the application field of the method and the device for monitoring application server session data determined by the embodiments of the present disclosure is not limited.
The following will describe in detail the application scenario described in fig. 1 by the method for monitoring application server session data according to the embodiments of the disclosure in fig. 2 to 6.
Fig. 2 schematically illustrates a flowchart of a method for monitoring application server session data according to an embodiment of the present disclosure. As shown in fig. 2, the method for monitoring application server session data of this embodiment includes operations S210 to S230, which may be performed by a server or other computing device.
In operation S210, session data in the message queue is consumed in real time.
According to an embodiment of the disclosure, the session data is periodically generated for the application server to be sent to the message queue, and the session data includes the number of sessions and the session data volume.
In one example, the APP service at the server starts a timing task, detects the session establishment condition of the current server according to a preset period, and mainly includes the number of sessions and the size of the session data, and the application server uses the session data sender message middleware of the current server as a message producer to agree on the tenant, where the message middleware may be Kafka, for example. Kafka stores session data sent by all application servers in the provisioning tenant. The operation and maintenance platform is used as a consumer to consume the session data in the message queue in real time.
In operation S220, when it is determined that the number of sessions is greater than the first preset threshold and/or the number of sessions is greater than the second preset threshold, abnormality warning information is transmitted.
In one example, the operation and maintenance platform configures performance capacity monitoring indexes, including alarm threshold information, development operation and maintenance personnel information, where the alarm threshold is divided into a single session size threshold, that is, a second preset threshold, a session number threshold, that is, a first preset threshold, two dimensions, and determines whether the session data acquired in operation S210 is greater than the alarm threshold, specifically, when it is determined that the session number is greater than the first preset threshold or the session data size is greater than the second preset threshold or the session data size is greater than the first preset threshold and the session data size is greater than the second preset threshold, it is determined that the current session is abnormal, and after the alarm is triggered, the three conditions trigger an alarm, and after the alarm is triggered, alarm information is sent to the development operation and maintenance personnel to notify the operation and maintenance personnel to perform emergency treatment, for example, setting a session number current limit and the like.
In operation S230, a session abnormality self-recovery operation is performed according to the abnormality alert type.
In one example, after the alarm information is sent in operation S220, the automatic processing thread may be further triggered to execute the corresponding session anomaly self-recovery operation according to different anomaly alarm types. The specific process can refer to the operation steps shown in fig. 3 to 5, and will not be described herein.
According to the method for monitoring the session data of the application server, provided by the embodiment of the invention, the session data in the message queue are consumed in real time, the monitoring alarm threshold is set, when the session data exceeds the threshold, the abnormal alarm information is sent, and the corresponding session abnormal self-recovery operation is executed according to the abnormal alarm type.
The following will describe a technical solution for automatic recovery of session anomalies in an embodiment of the present disclosure with reference to fig. 3 to 5.
Fig. 3 schematically illustrates a flowchart provided according to an embodiment of the present disclosure for performing a session exception self-recovery operation according to an exception alarm type. Fig. 4 schematically illustrates a flow chart of an execution session cleaning thread provided in accordance with an embodiment of the present disclosure. Fig. 5 schematically illustrates a flow chart for executing a oversized session registration thread provided in accordance with an embodiment of the present disclosure.
As shown in fig. 3, operation S230 includes operations S231 to S232.
In operation S231, when it is determined that the number of sessions is greater than the first preset threshold, a session cleaning thread is executed.
According to an embodiment of the disclosure, the first preset threshold is set according to tenant identity information.
In an example, the same host may include multiple virtual portions, that is, the same host has multiple tenants, and at this time, a threshold of the number of sessions corresponding to the duplicate tenant may be further set, that is, the first preset threshold may be set according to identity information of the tenant, and in specific, when performing abnormal judgment on the session, the specific first preset threshold is determined according to the identity of the tenant to which the session belongs.
As shown in fig. 4, operation S231 includes operations S2311 through S2314.
In operation S2311, determining a session key value of an application to which the abnormal session belongs in the distributed cache; in operation S2312, determining the address and port information of the host server where the session is located according to the session key value; scanning the host server to determine an expired session in operation S2313; and cleaning up the expired session in operation S2314.
In one example, when the number of sessions is determined to be greater than a first preset threshold, executing a session cleaning thread specifically includes: firstly, determining a session key value of the current application in a distributed cache in a session list of the application, inquiring a host server and a corresponding port where the session is located according to the session key value (ID), and scanning the servers using the session one by one; if the latest updating time of the session in the distributed cache is longer than that of the current server, determining that the session is an expired session, cleaning the expired session, releasing the memory space and improving the performance of the server.
In operation S232, when it is determined that the session data amount is greater than the second preset threshold, an oversized session registration thread is executed.
As shown in fig. 5, operation S232 includes operations S2321 to S2322.
In operation S2321, obtaining content information of an oversized session, where the content information includes session data amount, server information, and tenant identity information; in operation S2322, an oversized session log is generated according to content information of the oversized session.
In one example, when the session data amount is determined to be greater than the second preset threshold, human intervention by an operation and maintenance personnel is required at this time, in order to facilitate the fault analysis by the operation and maintenance personnel, an oversized session registration thread is required to be executed, and content information of the oversized session is recorded to generate a corresponding log file, such as the session number, the session data amount, server information, tenant ID, and the like.
Fig. 6 schematically illustrates a flow chart of a session data visualization method provided in accordance with an embodiment of the present disclosure. As shown in fig. 6, operation S310 is included.
In operation S310, a visualization page is generated from the session data in response to a server status monitoring query instruction.
In one example, a developer/operator can actively query the session condition of the APP server, such as a service activity promotion period, and the like, and the operation and maintenance platform performs visual display on the acquired session data, and analyzes the influence of the service activity on the server according to the visual display condition of the operation and maintenance platform, and performs corresponding processing, such as setting a session number limit, and the like.
Based on the method for monitoring the session data of the application server, the invention also provides a device for monitoring the session data of the application server. The device will be described in detail below in connection with fig. 7.
Fig. 7 schematically illustrates a block diagram of a monitoring apparatus for application server session data according to an embodiment of the present disclosure.
As shown in fig. 7, the monitoring apparatus 700 of application server session data of this embodiment includes a session data acquisition block 710, an alarm module 720, and a self-recovery module 730.
The session data acquisition module 710 is configured to consume session data in the message queue in real time, where the session data is generated periodically for the application server and sent to the message queue, and the session data includes the number of sessions and the amount of session data. In an embodiment, the session data acquisition module 710 may be configured to perform the operation S210 described above, which is not described herein.
The alarm module 720 is configured to send abnormal alarm information when it is determined that the number of sessions is greater than a first preset threshold and/or the number of sessions is greater than a second preset threshold. In an embodiment, the alarm module 720 may be used to perform the operation S220 described above, which is not described herein.
The self-recovery module 730 is configured to perform a session anomaly self-recovery operation according to the anomaly alarm type. In an embodiment, the self-recovery module 730 may be used to perform the operation S230 described above, which is not described herein.
According to an embodiment of the present disclosure, the alarm module 220 includes: a first determination sub-module and a second determination sub-module.
And the first determining submodule is used for executing the session cleaning thread when the number of the sessions is determined to be larger than a first preset threshold value. In an embodiment, the first determining sub-module may be used to perform the operation S221 described above, which is not described herein.
And the second determining submodule is used for executing the oversized session registration thread when the session data volume is determined to be larger than a second preset threshold value. In an embodiment, the second determining sub-module may be used to perform the operation S222 described above, which is not described herein.
According to an embodiment of the present disclosure, the first determining submodule includes: the device comprises a first determining unit, a second determining unit, a third determining unit and a session cleaning unit.
And the first determining unit is used for determining a session key value of the application to which the abnormal session belongs in the distributed cache. In an embodiment, the first determining unit may be configured to perform the operation S2221 described above, which is not described herein.
And the second determining unit is used for determining the address and port information of the host server where the session is located according to the session key value. In an embodiment, the second determining unit may be configured to perform the operation S2222 described above, which is not described herein.
And the third determining unit is used for scanning the host server to determine an expired session. In an embodiment, the third determining unit may be configured to perform the operation S2223 described above, which is not described herein.
And the session cleaning unit is used for cleaning the expired session. In an embodiment, the second determining sub-module may be used to perform the operation S2224 described above, which is not described herein.
According to an embodiment of the present disclosure, the second determination submodule includes an acquisition unit and a generation unit.
The system comprises an acquisition unit, a storage unit and a processing unit, wherein the acquisition unit is used for acquiring content information of an oversized session, and the content information comprises session data volume, server information and tenant identity information. In an embodiment, the obtaining unit may be configured to perform the operation S2231 described above, which is not described herein.
And the generating unit is used for generating an oversized session log according to the content information of the oversized session. In an embodiment, the generating unit may be configured to perform the operation S2232 described above, which is not described herein.
According to an embodiment of the present disclosure, further comprising: and a visualization module.
The visualization is used for responding to the server state monitoring query instruction and generating a visualization page according to the session data. In an embodiment, the visualization module may be used to perform the operation S310 described above, which is not described herein.
Any of the plurality of modules of the session data acquisition block 710, the alarm module 720, and the self-recovery module 730 may be combined in one module to be implemented, or any of the plurality of modules may be split into a plurality of modules, according to embodiments of the present disclosure. Alternatively, at least some of the functionality of one or more of the modules may be combined with at least some of the functionality of other modules and implemented in one module. According to embodiments of the present disclosure, at least one of the session data acquisition block 710, the alarm module 720, and the self-recovery module 730 may be implemented at least in part as hardware circuitry, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system-on-chip, a system-on-substrate, a system-on-package, an Application Specific Integrated Circuit (ASIC), or in hardware or firmware, such as any other reasonable way of integrating or packaging the circuitry, or in any one of or a suitable combination of any of the three. Alternatively, at least one of the session data acquisition block 710, the alarm module 720 and the self-recovery module 730 may be at least partially implemented as computer program modules which, when executed, may perform the corresponding functions.
Fig. 8 schematically illustrates a block diagram of an electronic device adapted to implement a method of monitoring application server session data, according to an embodiment of the disclosure.
As shown in fig. 8, an electronic device 900 according to an embodiment of the present disclosure includes a processor 901 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 902 or a program loaded from a storage portion 908 into a Random Access Memory (RAM) 903. The processor 901 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or an associated chipset and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), or the like. Processor 901 may also include on-board memory for caching purposes. Processor 901 may include a single processing unit or multiple processing units for performing the different actions of the method flows according to embodiments of the present disclosure.
In the RAM 903, various programs and data necessary for the operation of the electronic device 900 are stored. The processor 901, the ROM 902, and the RAM 903 are connected to each other by a bus 904. The processor 901 performs various operations of the method flow according to the embodiments of the present disclosure by executing programs in the ROM 902 and/or the RAM 903. Note that the program may be stored in one or more memories other than the ROM 902 and the RAM 903. The processor 901 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in the one or more memories.
According to an embodiment of the disclosure, the electronic device 900 may also include an input/output (I/O) interface 905, the input/output (I/O) interface 905 also being connected to the bus 904. The electronic device 900 may also include one or more of the following components connected to the I/O interface 905: an input section 906 including a keyboard, a mouse, and the like; an output portion 907 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and a speaker; a storage portion 908 including a hard disk or the like; and a communication section 909 including a network interface card such as a LAN card, a modem, or the like. The communication section 909 performs communication processing via a network such as the internet. The drive 910 is also connected to the I/O interface 905 as needed. A removable medium 911 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed as needed on the drive 910 so that a computer program read out therefrom is installed into the storage section 908 as needed.
The present disclosure also provides a computer-readable storage medium that may be embodied in the apparatus/device/system described in the above embodiments; or may exist alone without being assembled into the apparatus/device/system. The computer-readable storage medium carries one or more programs that, when executed, implement a method of monitoring application server session data according to an embodiment of the present disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example, but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, the computer-readable storage medium may include ROM 902 and/or RAM 903 and/or one or more memories other than ROM 902 and RAM 903 described above.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the methods shown in the flowcharts. The program code, when executed in a computer system, causes the computer system to implement the method for monitoring application server session data provided by embodiments of the present disclosure.
The above-described functions defined in the system/apparatus of the embodiments of the present disclosure are performed when the computer program is executed by the processor 901. The systems, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
In one embodiment, the computer program may be based on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed, and downloaded and installed in the form of a signal on a network medium, via communication portion 909, and/or installed from removable medium 911. The computer program may include program code that may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program may be downloaded and installed from the network via the communication portion 909 and/or installed from the removable medium 911. The above-described functions defined in the system of the embodiments of the present disclosure are performed when the computer program is executed by the processor 901. The systems, devices, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
According to embodiments of the present disclosure, program code for performing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, such computer programs may be implemented in high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. Programming languages include, but are not limited to, such as Java, c++, python, "C" or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that the features recited in the various embodiments of the disclosure and/or in the claims may be provided in a variety of combinations and/or combinations, even if such combinations or combinations are not explicitly recited in the disclosure. In particular, the features recited in the various embodiments of the present disclosure and/or the claims may be variously combined and/or combined without departing from the spirit and teachings of the present disclosure. All such combinations and/or combinations fall within the scope of the present disclosure.
The embodiments of the present disclosure are described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the embodiments cannot be used advantageously in combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be made by those skilled in the art without departing from the scope of the disclosure, and such alternatives and modifications are intended to fall within the scope of the disclosure.

Claims (10)

1. A method for monitoring session data of an application server, the method comprising:
the method comprises the steps of consuming session data in a message queue in real time, wherein the session data are generated regularly for an application server and sent to the message queue, and the session data comprise session numbers and session data amounts;
when the number of the conversations is determined to be larger than a first preset threshold value and/or the number of the conversations is determined to be larger than a second preset threshold value, abnormal alarm information is sent; and
and executing session anomaly self-recovery operation according to the anomaly alarm type.
2. The monitoring method according to claim 1, wherein the performing a session anomaly self-recovery operation according to an anomaly alarm type includes:
when the number of the conversations is determined to be larger than a first preset threshold value, executing a conversation cleaning thread; and
and executing the oversized session registration thread when the session data amount is determined to be greater than a second preset threshold.
3. The monitoring method of claim 2, wherein the executing a session clean-up thread comprises:
determining a session key value of an application to which the abnormal session belongs in the distributed cache;
determining the address and port information of the host server where the session is located according to the session key value;
scanning the host server to determine an expired session; and
and cleaning the expired session.
4. The method of monitoring of claim 2, wherein the executing the oversized session registration thread comprises:
acquiring content information of an oversized session, wherein the content information comprises session data volume, server information and tenant identity information;
and generating an oversized session log according to the content information of the oversized session.
5. The monitoring method according to any one of claims 1 to 4, further comprising:
and responding to a server state monitoring query instruction, and generating a visual page according to the session data.
6. The monitoring method of claim 5, wherein the first preset threshold is set according to tenant identity information.
7. An apparatus for monitoring application server session data, the apparatus comprising:
the session data acquisition module is used for consuming session data in the message queue in real time, the session data is generated for the application server at fixed time and sent to the message queue, and the session data comprises session number and session data volume;
the alarm module is used for sending abnormal alarm information when the number of the conversations is determined to be larger than a first preset threshold value and/or the number of the conversations is determined to be larger than a second preset threshold value; and
and the self-recovery module is used for executing session abnormal self-recovery operation according to the abnormal alarm type.
8. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of monitoring application server session data according to any of claims 1-6.
9. A computer readable storage medium having stored thereon executable instructions which when executed by a processor cause the processor to perform the method of monitoring application server session data according to any of claims 1 to 6.
10. A computer program product comprising a computer program which, when executed by a processor, implements a method of monitoring application server session data according to any one of claims 1 to 6.
CN202310317993.4A 2023-03-28 2023-03-28 Method and device for monitoring session data of application server Pending CN116506316A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310317993.4A CN116506316A (en) 2023-03-28 2023-03-28 Method and device for monitoring session data of application server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310317993.4A CN116506316A (en) 2023-03-28 2023-03-28 Method and device for monitoring session data of application server

Publications (1)

Publication Number Publication Date
CN116506316A true CN116506316A (en) 2023-07-28

Family

ID=87320856

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310317993.4A Pending CN116506316A (en) 2023-03-28 2023-03-28 Method and device for monitoring session data of application server

Country Status (1)

Country Link
CN (1) CN116506316A (en)

Similar Documents

Publication Publication Date Title
US10785320B2 (en) Managing operation of instances
CN113900834B (en) Data processing method, device, equipment and storage medium based on Internet of things technology
CN113254445B (en) Real-time data storage method, device, computer equipment and storage medium
CN111917814B (en) Data publishing method, data subscribing method, data publishing device, data subscribing system and readable storage medium
CN113590437B (en) Alarm information processing method, device, equipment and medium
CN116302561A (en) State control method, device, equipment and storage medium for application instance
CN109445966B (en) Event processing method, device, medium and computing equipment
CN116506316A (en) Method and device for monitoring session data of application server
CN115550141A (en) Event processing method and device, electronic equipment and readable storage medium
CN115202973A (en) Application running state determining method and device, electronic equipment and medium
CN114356713A (en) Thread pool monitoring method and device, electronic equipment and storage medium
CN110928940B (en) Data writing method and device based on kafka cluster, electronic equipment and storage medium
CN113419887A (en) Method and device for processing abnormal online transaction of host
CN113487224A (en) Content processing method, apparatus, device, medium, and program product
CN113242148A (en) Method, device, medium and electronic equipment for generating monitoring alarm related information
US11706117B1 (en) Message-based monitoring and action system
CN115312208B (en) Method, device, equipment and medium for displaying treatment data
CN115484149B (en) Network switching method, network switching device, electronic equipment and storage medium
CN115987782B (en) Cloud hostname generation method, device, equipment, storage medium and program product
CN116450465B (en) Data processing method, device, equipment and medium
US20230305892A1 (en) Performance protected autonomous application management for distributed computing systems
CN113760899A (en) Data table change control method and device, electronic equipment and readable storage medium
CN114169929A (en) Object activation method, device, equipment, medium and program product
CN116975200A (en) Method, device, equipment and medium for controlling working state of server
CN116594968A (en) Method, system, equipment, medium and product for cleaning redundant files of server

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