JAVA virtual machine memory usage analysis method and device based on data warehouse
Through the JAVA virtual machine memory usage analysis method based on data warehouse, data analysis and data mining algorithms are used to analyze multi-source heterogeneous data, which solves the problem of limited memory usage analysis effect in the existing technology and realizes the detection of memory anomalies and leaks. Efficient identification and positioning of risks.
Patent Information
- Application Number
- CN202410696265.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-08-27
AI Technical Summary
Existing JAVA virtual machine memory usage analysis methods rely on the JVM's own statistical data, with limited dimensions and data granularity, and cannot effectively correlate and process multi-dimensional heterogeneous data. The analysis results are limited, rely on manual experience, and require technical experts to make judgments.
Using an analysis method based on data warehouse, the initial query plan is generated by parsing user query instructions, optimizing the query plan, and combining data analysis and data mining algorithms to analyze multi-source heterogeneous data to determine abnormal memory usage and locate code components.
It achieves efficient analysis of JAVA virtual machine memory usage, identifies memory anomalies and potential leak risks, improves analysis efficiency, and reduces reliance on manual experience.
Smart Images

Figure CN118550648A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of big data technology, specifically to the field of data analysis technology, and more specifically to a JAVA virtual machine memory usage analysis method, device, equipment, storage medium and program product based on a data warehouse. Background Art
[0002] In an actual production environment, it is necessary to monitor the memory usage of the JAVA virtual machine JVM (JAVA Virtual Machine), including the usage of in-heap and out-of-heap memory, to play a role in operation analysis, abnormal situation identification, problem location analysis, etc. Existing JAVA virtual machine memory usage analysis methods are often implemented by collecting memory usage statistics returned by the JVM itself. When analyzing memory usage or troubleshooting environmental operation problems involving memory usage, technical experts are required to make judgments and obtain analysis results. Since only the memory usage statistics from the JVM itself are used, the dimensions and data granularity are limited, and the analysis program cannot associate and process multi-dimensional heterogeneous data. The analysis effect is limited and relies on manual experience, which places high demands on business personnel.
[0003] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0004] In view of the above problems, the present disclosure provides a JAVA virtual machine memory usage analysis method, apparatus, device, storage medium and program product based on a data warehouse to improve the effect and efficiency of JVM memory usage analysis.
[0005] According to a first aspect of the present disclosure, a method for analyzing memory usage of a JAVA virtual machine based on a data warehouse is provided, the method comprising:
[0006] In response to a query instruction input by a user, parsing the query statement to generate an initial query plan;
[0007] Optimizing the initial query plan based on a query optimization algorithm to generate a query execution plan; and
[0008] According to the query execution plan, the data analysis algorithm engine and the data mining algorithm engine are executed to mine and analyze the data warehouse data to determine the abnormal memory usage and the location of the code component of the abnormal memory usage.
[0009] The data warehouse data is pre-processed multi-source heterogeneous data.
[0010] According to an embodiment of the present disclosure, parsing the query statement to generate an initial query plan includes:
[0011] Extract data logic operations and data access targets from SQL task definitions through a syntax analyzer and perform operator parsing;
[0012] Convert query statements into internal data structure representations; and
[0013] Performs join processing, table scanning, and index access steps to generate an initial query plan.
[0014] According to an embodiment of the present disclosure, executing the data analysis algorithm engine and the data mining algorithm engine according to the query execution plan to perform mining analysis on the data warehouse data to determine abnormal memory usage and the location of the code component of the abnormal memory usage includes:
[0015] Performing data analysis on the data warehouse data by a data analysis algorithm engine to determine abnormal memory usage, wherein the data analysis algorithm engine includes a numerical statistical analysis model, a time series analysis model, a supervised outlier detection model, a binary classification model, and a cluster analysis model; and
[0016] The data warehouse data is mined and analyzed by a data mining algorithm engine to determine the location of the code component used by the memory anomaly. The data mining algorithm engine includes a frequent item set Apriori algorithm executor, a frequent pattern analyzer and a sequence data mining model.
[0017] According to an embodiment of the present disclosure, before parsing the query statement to generate an initial query plan, the process further includes:
[0018] Collect memory usage data based on the data collection policy; and
[0019] The memory usage data is pre-processed and stored in a data warehouse.
[0020] According to an embodiment of the present disclosure, the memory usage data is multi-source heterogeneous data, and collecting the memory usage data based on the data collection strategy includes:
[0021] Collect basic data of server cluster operation;
[0022] Collect JAVA service program group operation data;
[0023] Collect log-type file data; and
[0024] Collect monitoring data from external monitoring systems.
[0025] According to an embodiment of the present disclosure, the preprocessing and storing the memory usage data in a data warehouse includes:
[0026] Perform data cleaning and outlier removal operations on the collected memory usage data to ensure data consistency and availability;
[0027] Convert and normalize memory usage data according to data type;
[0028] Building a multidimensional data model based on the preprocessed memory usage data; and
[0029] Based on the data update strategy, the multidimensional data model is stored in the data warehouse in the form of serialized interface calls.
[0030] According to an embodiment of the present disclosure, the operations of converting and normalizing memory usage data according to data types include:
[0031] Parsing the JVM heap memory snapshot binary information into data in the form of a relational table; and
[0032] Perform text parsing on log-type data to extract data information in the corresponding time interval.
[0033] According to an embodiment of the present disclosure, storing the multidimensional data model into the data warehouse in a serialized interface call manner based on the data update strategy includes:
[0034] Provide corresponding data storage types for different data formats, and route data read and write operations to the corresponding underlying data storage system in the data warehouse; and
[0035] Design corresponding index strategies and index structures for different types of storage systems based on query patterns and access patterns.
[0036] A second aspect of the present disclosure provides a JAVA virtual machine memory usage analysis device based on a data warehouse, the device comprising:
[0037] A parsing module, for parsing a query statement to generate an initial query plan in response to a query instruction input by a user;
[0038] A query optimization module, configured to optimize the initial query plan based on a query optimization algorithm to generate a query execution plan; and
[0039] A data analysis module is used to execute a data analysis algorithm engine and a data mining algorithm engine to perform mining analysis on data warehouse data according to the query execution plan to determine abnormal memory usage and the location of code components for abnormal memory usage.
[0040] The data warehouse data is pre-processed multi-source heterogeneous data.
[0041] According to an embodiment of the present disclosure, the parsing module includes: an extraction submodule, a conversion submodule and a generation submodule.
[0042] The extraction submodule is used to extract data logic operations and data access targets from the SQL task definition through a syntax analyzer and perform operator parsing;
[0043] A conversion submodule, used to convert the query statement into an internal data structure representation; and
[0044] The generation submodule is used to perform association processing, table scanning, and index access steps to generate an initial query plan.
[0045] According to an embodiment of the present disclosure, the data analysis module includes a data analysis submodule and a data mining submodule.
[0046] A data analysis submodule, configured to perform data analysis on data warehouse data through a data analysis algorithm engine to determine abnormal memory usage, wherein the data analysis algorithm engine includes a numerical statistical analysis model, a time series analysis model, a supervised outlier detection model, a binary classification model, and a cluster analysis model; and
[0047] The data mining submodule is used to mine and analyze the data warehouse data through a data mining algorithm engine to determine the location of the code component used by the memory anomaly. The data mining algorithm engine includes a frequent item set Apriori algorithm executor, a frequent pattern analyzer and a sequence data mining model.
[0048] According to an embodiment of the present disclosure, the device further includes: a collection module and a storage module.
[0049] A collection module, used to collect memory usage data based on a data collection strategy; and
[0050] The storage module is used to pre-process the memory usage data and store it in a data warehouse.
[0051] According to an embodiment of the present disclosure, the memory usage data is multi-source heterogeneous data, and the acquisition module includes: a first acquisition submodule, a second acquisition submodule, a third acquisition submodule and a fourth acquisition submodule.
[0052] The first collection submodule is used to collect basic data of server cluster operation;
[0053] The second collection submodule is used to collect the running data of the JAVA service program group;
[0054] A third collection submodule is used to collect log type file data; and
[0055] The fourth acquisition submodule is used to acquire monitoring data from an external monitoring system.
[0056] According to an embodiment of the present disclosure, the storage module includes: a data cleaning submodule, a data conversion submodule, a multidimensional data model building submodule and a storage submodule.
[0057] The data cleaning submodule is used to clean the collected memory usage data and remove outliers to determine the consistency and availability of the data;
[0058] A data conversion submodule is used to convert and normalize memory usage data according to data types;
[0059] A multidimensional data construction sub-model, used to construct a multidimensional data model based on the preprocessed memory usage data; and
[0060] The storage submodule stores the multidimensional data model into the data warehouse in a serialized interface call manner based on the data update strategy.
[0061] According to an embodiment of the present disclosure, the data conversion submodule includes: a parsing unit and an extraction unit.
[0062] A parsing unit, used for parsing the JVM heap memory snapshot binary information into data in the form of a relational table; and
[0063] The extraction unit is used to perform text parsing on log-type data to extract data information in a corresponding time interval.
[0064] According to an embodiment of the present disclosure, the storage submodule includes a data routing unit and an index design unit.
[0065] A data routing unit, used to provide corresponding data storage types for different data formats and route data read and write operations to the corresponding underlying data storage system in the data warehouse; and
[0066] The index design unit is used to design corresponding index strategies and index structures for different types of storage systems based on query patterns and access patterns.
[0067] The third aspect of the present disclosure provides an electronic device, comprising: one or more processors; a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors execute the above-mentioned data warehouse-based JAVA virtual machine memory usage analysis method.
[0068] A fourth aspect of the present disclosure further provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the above-mentioned JAVA virtual machine memory usage analysis method based on a data warehouse.
[0069] A fifth aspect of the present disclosure further provides a computer program product, including a computer program, which implements the above-mentioned JAVA virtual machine memory usage analysis method based on a data warehouse when executed by a processor.
[0070] A JAVA virtual machine memory usage analysis method based on a data warehouse provided by an embodiment of the present disclosure, in response to a query instruction input by a user, parses the query statement to generate an initial query plan; optimizes the initial query plan based on a query optimization algorithm to generate a query execution plan; executes a data analysis algorithm engine and a data mining algorithm engine according to the query execution plan to mine and analyze the data warehouse data to determine abnormal memory usage and the location of the code component of the abnormal memory usage, wherein the data warehouse data is pre-processed multi-source heterogeneous data. Compared with the related art, the JAVA virtual machine memory usage analysis method based on a data warehouse provided by an embodiment of the present disclosure can make full use of multi-source heterogeneous JVM memory usage data for mining and analysis, realize the statistics of memory usage data between different program iteration versions and various module components of the analyzed application, analyze and identify abnormal memory usage; identify potential memory leakage risks in the operation of JAVA programs, analyze the code locations where memory leakage occurs, and improve analysis efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0071] The above contents and other purposes, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0072] Figure 1 The application scenario diagram of the JAVA virtual machine memory usage analysis method, device, equipment, storage medium and program product based on the data warehouse according to the embodiment of the present disclosure is schematically shown;
[0073] Figure 2 The following schematically shows the architecture of the JAVA virtual machine memory usage analysis system provided by the embodiment of the present disclosure;
[0074] Figure 3 A flowchart of a JAVA virtual machine memory usage analysis method based on a data warehouse is schematically shown according to an embodiment of the present disclosure;
[0075] Figure 4 A flowchart of a JAVA virtual machine memory usage analysis method based on a data warehouse is schematically shown according to another embodiment of the present disclosure;
[0076] Figure 5a One of the flowcharts of a JAVA virtual machine memory usage analysis method based on a data warehouse provided according to another embodiment of the present disclosure is schematically shown;
[0077] Figure 5b The second flowchart of a method for analyzing JAVA virtual machine memory usage based on a data warehouse is schematically shown according to another embodiment of the present disclosure;
[0078] Figure 5c The third flowchart of a method for analyzing JAVA virtual machine memory usage based on a data warehouse according to another embodiment of the present disclosure is schematically shown;
[0079] Figure 6 A flowchart of a JAVA virtual machine memory usage analysis method based on a data warehouse is schematically shown according to another embodiment of the present disclosure;
[0080] Figure 7 A structural block diagram of a JAVA virtual machine memory usage analysis device based on a data warehouse according to an embodiment of the present disclosure is schematically shown; and
[0081] Figure 8 A block diagram of an electronic device suitable for implementing a JAVA virtual machine memory usage analysis method based on a data warehouse according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0082] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0083] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0084] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.
[0085] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0086] First, the terms that appear in the embodiments of the present disclosure are explained:
[0087] Data warehouse: A data storage system architecture used to store and manage large amounts of structured and unstructured data, integrating multiple heterogeneous data sources into a unified, consistent data store to support structured and customized query, analysis, and decision support.
[0088] JVM: JVM is a specification for computing devices. It is a fictional computer that is implemented by simulating various computer functions on an actual computer.
[0089] Apriori algorithm: It is a classic algorithm for association rule mining, mainly used to discover frequent item sets in large data sets. It uses a layer-by-layer iterative method to find the relationship between item sets in the database to form rules. Its process consists of connection (matrix-like operation) and pruning.
[0090] Based on the above technical problems, an embodiment of the present disclosure provides a JAVA virtual machine memory usage analysis method based on a data warehouse, the method comprising: in response to a query instruction input by a user, parsing the query statement to generate an initial query plan; optimizing the initial query plan based on a query optimization algorithm to generate a query execution plan; executing a data analysis algorithm engine and a data mining algorithm engine according to the query execution plan to perform mining and analysis on the data warehouse data to determine abnormal memory usage and the location of the code components that cause the abnormal memory usage, wherein the data warehouse data is pre-processed multi-source heterogeneous data.
[0091] Figure 1 The application scenario diagram of the JAVA virtual machine memory usage analysis method, apparatus, device, storage medium and program product based on a data warehouse according to an embodiment of the present disclosure is schematically shown.
[0092] like Figure 1 As shown, the application scenario 100 according to this embodiment may include a JAVA virtual machine memory usage analysis scenario based on a data warehouse. The network 104 is used to provide a medium for a communication link 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 optical fiber cables, etc.
[0093] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only examples).
[0094] The terminal devices 101 , 102 , and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.
[0095] Server 105 may be a back-end server, which may execute the JAVA virtual machine memory usage analysis method based on a data warehouse provided in an embodiment of the present disclosure, and in response to a query instruction input by a user, parse the query statement to generate an initial query plan; optimize the initial query plan based on a query optimization algorithm to generate a query execution plan; execute a data analysis algorithm engine and a data mining algorithm engine according to the query execution plan to perform mining and analysis on the data warehouse data to determine abnormal memory usage and the location of the code components causing the abnormal memory usage, wherein the data warehouse data is pre-processed multi-source heterogeneous data.
[0096] It should be noted that the JAVA virtual machine memory usage analysis method based on the data warehouse provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the JAVA virtual machine memory usage analysis device based on the data warehouse provided in the embodiment of the present disclosure can generally be set in the server 105. The JAVA virtual machine memory usage analysis method based on the data warehouse provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105. Accordingly, the JAVA virtual machine memory usage analysis device based on the data warehouse provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105.
[0097] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0098] It should be noted that the JAVA virtual machine memory usage analysis method and device based on a data warehouse determined in the embodiments of the present disclosure can be used in the field of Internet technology, the field of financial technology, and any field other than the financial field. The application field of the JAVA virtual machine memory usage analysis method and device based on a data warehouse determined in the embodiments of the present disclosure is not limited.
[0099] Figure 2 The following schematically shows the architecture of the JAVA virtual machine memory usage analysis system provided by the embodiment of the present disclosure. Figure 2 As shown, the JAVA virtual machine memory usage analysis device 11 includes: a data collection module 121, a data preprocessing module 131, a data storage module 141, a memory usage analysis service module 151 and a data analysis and mining module 161. Among them, the data source used by the JAVA virtual machine memory usage analysis device is composed of basic data of server cluster operation, mbean monitoring data of each node of the JAVA program group operation, data in log file format, and collection interfaces of other external monitoring systems.
[0100] The data acquisition module 121 is responsible for data acquisition and processing of different data sources in 101 to ensure that the required memory usage data can be collected and obtained; it includes an acquisition and extraction unit 122 and a data stream processing framework 123. The acquisition and extraction unit 122 is responsible for acquiring data according to the docking mode of different data sources; the data stream processing framework 123 is responsible for continuous and real-time processing of the collected data, supporting distributed deployment and concurrent processing, and marking the environmental data of the original collected data, and as a unified entry for data aggregation, submitting the data to the data preprocessing module 131 for processing. The data preprocessing module 131 is responsible for preprocessing the collected heterogeneous data such as shaping and transformation, and storing it in the data warehouse. It includes a data cleaning and shaping unit 132, a heterogeneous data transformation unit 133, and a data modeling and loading unit 134.
[0101] The data storage module 141 is responsible for storing and preserving historical data and for sending data read and write requests to a specific type of underlying storage system. The module includes: data routing index unit 142, relational data system 143, time series data system 144, unstructured data system 145, and metadata system 146. Data routing index unit 142: provides suitable data storage types for different data formats, and routes data read and write operations to the appropriate underlying data storage system in the data warehouse. Data is divided into relational, time series, and unstructured types, corresponding to relational data metadata system 143, time series data system 144, and unstructured data system 145, respectively. In terms of data indexing, a multidimensional index structure is used to accelerate the execution of multidimensional queries. Multidimensional indexes can support efficient data dimension constraints and aggregation operations, reduce the amount of data scanning access and search and positioning calculations. In terms of index design and optimization, according to the query mode and access mode, corresponding index strategies and index structures are designed for different types of storage systems to improve query performance. For example, relational data system indexes include single-column indexes, combined indexes, bitmap indexes, etc. The metadata system 146 stores metadata information required for the operation of the system, including operation strategy configuration, data collection strategy, data write update window control information, data source data preprocessing method and configuration, etc.
[0102] The memory usage analysis service module 151, as the front-end service of the system's external services, provides JVM memory analysis services to the outside world. It includes a query service unit 152, a report generation unit 153, an analysis and mining unit 154, and a system management and maintenance unit 155. Query service unit 152: provides data query services to the outside world, and can query JVM memory-related usage data within the required time period. Report generation unit 153: generates reports according to preset themes, and helps users better understand and discover patterns and associations in the data by providing charts, tables, and interactive visualization interfaces. Analysis and mining unit 154: provides users with a task submission interface for customized data analysis and mining. Users can customize data analysis rules and tasks for the data of interest in addition to the preset data processing templates in the system. System management and maintenance unit 155: provides an interactive interface for configuring analysis system settings.
[0103] The data analysis and mining module 161 completes the data analysis and mining functions. It includes a parsing unit 162, a query optimization unit 163, a data analysis algorithm engine unit 164, and a data mining algorithm engine unit 165. The JVM memory usage analysis system is designed based on the data warehouse model. The subtasks of data query and flow in the system are defined by using SQL syntax. When processing analysis and mining tasks, the data analysis and mining module must first parse the submitted task SQL. Parsing unit 162: extracts data logic operations and data access targets from the SQL task definition through a syntax analyzer and performs operator parsing, converts query statements into internal data structure representations, such as query trees or query graphs, and further performs association processing, table scanning and index access steps. For multi-level queries, it is also necessary to further decompose them into a series of executable operation sequences to generate a query plan. The execution engine compiles the query plan into executable code and performs corresponding operations. Query optimization unit 163: optimizes online analytical query OLAP statements through query optimization technology and algorithms to generate efficient query execution plans. Optimization techniques include query rewriting, access path optimization, join order and operation order tuning, as well as using strategies such as index optimization, data slicing and partitioning to improve query performance.
[0104] Data analysis algorithm engine unit 164: Analyzes the collected data through data analysis and data statistical methods. The engine includes a variety of general data statistical analysis algorithm executors. It includes numerical statistical analysis models, time series analysis, and supervised outlier detection models. It uses multi-level models such as binary classification models, supervised outlier detection models, and cluster analysis in supervised learning to distinguish normal memory usage from potential abnormal memory usage based on features such as memory usage, garbage collection times, and object reference relationships.
[0105] Data mining algorithm engine unit 165: The engine includes a variety of general data mining algorithm executors, including frequent item set Apriori algorithm executor, frequent pattern analyzer, sequence data mining model, etc. By analyzing the correlation relationship of the collected data, the frequent patterns of memory usage application and recovery are found, the correlation relationship and correlation of each component in the use of memory resources are analyzed, and pattern mining is performed to analyze the correlation of memory usage abnormal data, and the code component location that may have potential memory usage abnormalities is given.
[0106] The following will be based on Figure 1 Describe the application scenarios and Figure 2 The system architecture described by Figure 3 to Figure 6 The JAVA virtual machine memory usage analysis method based on a data warehouse in an embodiment of the present disclosure is described in detail.
[0107] Figure 3The flowchart of a method for analyzing JAVA virtual machine memory usage based on a data warehouse according to an embodiment of the present disclosure is schematically shown. Figure 3 As shown, the JAVA virtual machine memory usage analysis method based on the data warehouse of this embodiment includes operations S210 to S240, and the method can be executed by a server or other computing devices.
[0108] In operation S210 , in response to a query instruction input by a user, a query statement is parsed to generate an initial query plan.
[0109] In operation S220, the initial query plan is optimized based on a query optimization algorithm to generate a query execution plan.
[0110] In operation S230, a data analysis algorithm engine and a data mining algorithm engine are executed according to the query execution plan to perform mining analysis on the data warehouse data to determine abnormal memory usage and the location of code components for the abnormal memory usage.
[0111] According to an embodiment of the present disclosure, the data warehouse data is pre-processed multi-source heterogeneous data.
[0112] In one example, the JAVA virtual machine memory usage analysis device of the disclosed embodiment is built based on a data warehouse system. It collects multi-dimensional heterogeneous JVM operation data, stores the data in a data warehouse after data preprocessing, and when memory usage analysis is required, the data analysis and mining module processes external analysis requests according to the query instructions input by the user, and completes the analysis of relevant operation data in the data warehouse through methods such as data analysis and data mining, providing external services such as JVM memory operation data query, report generation, and data analysis and mining. Specifically, the user completes the use of the system in a visual interface, including memory usage data query service, memory usage analysis report generation service, and completes analysis and mining of the data. Users can select pre-made analysis strategies in the system to perform fast and accurate memory usage analysis.
[0113] In one example, the parser extracts data logic operations and data access targets from the SQL task definition and performs operator parsing to convert query statements into internal data structure representations, such as query trees or query graphs; query optimization techniques and algorithms are used to optimize online analytical query (OLAP) statements to generate efficient query execution plans. Optimization techniques include query rewriting, access path optimization, connection order and operation order tuning, as well as using strategies such as index optimization, data slicing and partitioning to improve query performance.
[0114] A JAVA virtual machine memory usage analysis method based on a data warehouse provided by an embodiment of the present disclosure, in response to a query instruction input by a user, parses the query statement to generate an initial query plan; optimizes the initial query plan based on a query optimization algorithm to generate a query execution plan; executes a data analysis algorithm engine and a data mining algorithm engine according to the query execution plan to mine and analyze the data warehouse data to determine abnormal memory usage and the location of the code component of the abnormal memory usage, wherein the data warehouse data is pre-processed multi-source heterogeneous data. Compared with the related art, the JAVA virtual machine memory usage analysis method based on a data warehouse provided by an embodiment of the present disclosure can make full use of multi-source heterogeneous JVM memory usage data for mining and analysis, realize the statistics of memory usage data between different program iteration versions and various module components of the analyzed application, analyze and identify abnormal memory usage; identify potential memory leakage risks in the operation of JAVA programs, analyze the code locations where memory leakage occurs, and improve analysis efficiency.
[0115] Since the JAVA virtual machine memory usage analysis device of the embodiment of the present disclosure is built based on the data warehouse system, Figures 4 to 6 This chapter introduces the process of building a data warehouse. Figure 5a to 5c The process of data processing for data warehouse.
[0116] Figure 4 The flowchart of a JAVA virtual machine memory usage analysis method based on a data warehouse according to another embodiment of the present disclosure is schematically shown. Figure 4 As shown, operations S310 to S360 are included.
[0117] In operation S310, memory usage data is collected based on a data collection strategy;
[0118] According to the embodiments of the present disclosure, basic data of server cluster operation is collected; JAVA service program group operation data is collected; log type file data is collected; and external monitoring system monitoring data is collected.
[0119] In one example, the data collection module collects and obtains the required memory usage data, which is heterogeneous data. The data formats collected from different data sources include text files, interface api message returns, binary snapshot files and other different formats. Among them, the basic data of server cluster operation includes memory usage data at the operating system level, such as meminfo of the overall memory usage of the system, memory subsystem management data, system memory allocation requests and release operations, etc.; JVM process memory allocation requests and other usage data at the operating system level, such as pmap memory segmentation details, maps, smaps, Java program mbean monitoring data collection JVM heap memory partition memory usage data, file type data, including garbage collection logs, JVM heap memory snapshots, Java program stack information, application output logs, etc. External collection monitoring system data interface, including docking async-profiler system monitoring data, docking jfr monitoring data. The collected data is continuously processed in real time through the data stream processing framework, supporting distributed deployment and concurrent processing, and environmental data identification of the original collected data, and as a unified entry for data aggregation, the data is submitted to the data preprocessing module for processing.
[0120] In operation S320, the memory usage data is pre-processed and stored in a data warehouse.
[0121] Figure 5a One of the flowcharts of a JAVA virtual machine memory usage analysis method based on a data warehouse provided according to yet another embodiment of the present disclosure is schematically shown. Figure 5b The second flowchart of a method for analyzing JAVA virtual machine memory usage based on a data warehouse according to another embodiment of the present disclosure is schematically shown. Figure 5c The third flowchart of a JAVA virtual machine memory usage analysis method based on a data warehouse provided according to another embodiment of the present disclosure is schematically shown.
[0122] like Figure 5a As shown, operation S320 includes operations S321 to S324.
[0123] In operation S321, data cleaning and outlier removal operations are performed on the collected memory usage data to determine the consistency and availability of the data.
[0124] In operation S322, the memory usage data is converted and normalized according to the data type;
[0125] like Figure 5b As shown, operation S322 includes operation S3221 and operation S3222.
[0126] In operation S3221, the JVM heap memory snapshot binary information is parsed into data in the form of a relational table.
[0127] In operation S3222, text parsing is performed on the log-type data to extract data information in a corresponding time interval.
[0128] In one example, the data cleaning and shaping unit performs preprocessing steps such as cleaning and removing outliers on the collected data to ensure the accuracy and consistency of the data. According to different data collection methods and data source types, the data label information is checked and the data availability is checked to ensure that the data contains necessary and valid information. The heterogeneous data transformation unit converts and normalizes the data to make it suitable for subsequent data mining and analysis. For example, the binary information of the JVM heap memory snapshot is parsed into data in the form of a relational table; for the collected data of the log type, the data information in the corresponding time interval is extracted after being processed by various text parsing templates.
[0129] In operation S323, a multidimensional data model is constructed based on the preprocessed memory usage data.
[0130] In operation S324, the multidimensional data model is stored in the data warehouse in a serialized interface call manner based on the data update strategy.
[0131] like Figure 5c As shown, operation S324 includes operation S3241 and operation S3242.
[0132] In operation S3241, corresponding data storage types are provided for different data formats, and data read and write operations are routed to corresponding underlying data storage systems in the data warehouse; and
[0133] In operation S3242, corresponding index strategies and index structures are designed for different types of storage systems according to query patterns and access patterns.
[0134] In one example, the data model construction work is completed by the data that has been regularized by the data cleaning and shaping unit and the heterogeneous data transformation unit. According to different types of data sources, a multidimensional data model suitable for OLAP operations such as a star model or a snowflake model is used to represent and store data logical relationships to support flexible multidimensional analysis queries. Multidimensional data models usually include fact tables and dimension tables, and provide fast multidimensional data analysis capabilities through the relationship between dimensions and facts. After the data model is established, it is stored in the storage module through serialized interface calls according to data writing and update strategies such as batch settings and data update windows. Through the data storage module, the data warehouse data model required by the system and the multidimensional data contained therein are persistently stored, and the metadata and configuration data required during the system analysis operation are saved. Specifically, it includes operation strategy configuration, data collection strategy, data writing and update window control information, data source data preprocessing methods and configurations, etc.
[0135] In operation S330 , the query statement is parsed to generate an initial query plan.
[0136] Figure 6 A flowchart of a JAVA virtual machine memory usage analysis method based on a data warehouse provided according to yet another embodiment of the present disclosure is schematically shown.
[0137] like Figure 6 As shown, operation S330 includes operations S331 to S333.
[0138] In operation S331, a parser is used to extract data logic operations and data access targets from the SQL task definition and perform operator parsing.
[0139] In operation S332, the query statement is converted into an internal data structure representation; and
[0140] In operation S333, association relationship processing, table scanning and index access steps are performed to generate an initial query plan.
[0141] In one example, the data storage module stores and preserves historical data and is responsible for requesting data read and write to a specific type of underlying storage system. Suitable data storage types are provided for different data formats, and data read and write operations are routed to the appropriate underlying data storage system in the data warehouse. Data is divided into relational, time series, and unstructured types, corresponding to relational data element systems, time series data systems, and unstructured data systems, respectively. In terms of data indexing, a multidimensional index structure is used to accelerate the execution of multidimensional queries. Multidimensional indexes can support efficient data dimension constraints and aggregation operations, reduce the amount of data scanning access and search and positioning calculations. In terms of index design and optimization, corresponding index strategies and index structures are designed for different types of storage systems based on query patterns and access patterns to improve query performance. For example, relational data system indexes include single-column indexes, combined indexes, bitmap indexes, and the like.
[0142] In operation S340, the initial query plan is optimized based on a query optimization algorithm to generate a query execution plan.
[0143] In one example, the parser extracts data logic operations and data access targets from the SQL task definition and performs operator parsing, converting the query statement into an internal data structure representation, such as a query tree or query graph, and further performs association processing, table scanning, and index access steps. For multi-level queries, it is also necessary to further decompose them into a series of executable operation sequences to generate a query plan. The execution engine compiles the query plan into executable code and performs the corresponding operations. Through query optimization techniques and algorithms, online analytical query OLAP statements are optimized to generate efficient query execution plans. Optimization techniques include query rewriting, access path optimization, connection order and operation order tuning, as well as using strategies such as index optimization, data slicing and partitioning to improve query performance.
[0144] In operation S350, a data analysis algorithm engine performs data analysis on the data warehouse data to determine abnormal memory usage.
[0145] According to an embodiment of the present disclosure, the data analysis algorithm engine includes a numerical statistical analysis model, a time series analysis model, a supervised outlier detection model, a binary classification model and a cluster analysis model.
[0146] In one example, the collected data is analyzed through data analysis and data statistics methods. The engine contains a variety of general data statistical analysis algorithm executors. It includes numerical statistical analysis models, time series analysis, and supervised outlier detection models. It uses multi-level models such as binary classification models, supervised outlier detection models, and cluster analysis in supervised learning to distinguish normal memory usage from potential abnormal memory usage based on features such as memory usage, garbage collection times, and object reference relationships.
[0147] In operation S360, a data mining algorithm engine is used to perform mining analysis on the data warehouse data to determine the location of the code component used by the memory exception.
[0148] According to an embodiment of the present disclosure, the data mining algorithm engine includes a frequent itemset Apriori algorithm executor, a frequent pattern analyzer and a sequence data mining model.
[0149] In one example, the engine includes multiple general data mining algorithm executors, including frequent item set Apriori algorithm executor, frequent pattern analyzer, sequence data mining model, etc. By analyzing the correlation of collected data, the frequent patterns of memory application and recovery are found, the correlation and correlation of each component in memory resource usage are analyzed, and pattern mining is performed to analyze the correlation of abnormal memory usage data, and the code components that may have potential memory usage anomalies are located.
[0150] Based on the above-mentioned JAVA virtual machine memory usage analysis method based on data warehouse, the present disclosure also provides a JAVA virtual machine memory usage analysis device based on data warehouse. Figure 7 The device is described in detail.
[0151] Figure 7 The structure diagram of a JAVA virtual machine memory usage analysis device based on a data warehouse according to an embodiment of the present disclosure is schematically shown. Figure 7 As shown, the data warehouse-based JAVA virtual machine memory usage analysis device 700 of this embodiment includes a parsing module 710 , a query optimization module 720 and a data analysis module 730 .
[0152] The parsing module 710 is used to parse the query statement in response to the query instruction input by the user to generate an initial query plan. In one embodiment, the parsing module 710 can be used to perform the operation S210 described above, which will not be described in detail here.
[0153] The query optimization module 720 is used to optimize the initial query plan based on a query optimization algorithm to generate a query execution plan. In one embodiment, the query optimization module 720 can be used to perform the operation S220 described above, which will not be described in detail here.
[0154] The data analysis module 730 is used to execute the data analysis algorithm engine and the data mining algorithm engine to perform mining analysis on the data warehouse data according to the query execution plan to determine the abnormal use of memory and the location of the code component of the abnormal use of memory, wherein the data warehouse data is pre-processed multi-source heterogeneous data. In one embodiment, the verification module 730 can be used to perform the operation S230 described above, which will not be repeated here.
[0155] According to an embodiment of the present disclosure, the parsing module includes: an extraction submodule, a conversion submodule and a generation submodule.
[0156] The extraction submodule is used to extract data logic operations and data access targets from the SQL task definition through a syntax analyzer and perform operator parsing. In one embodiment, the extraction submodule can be used to perform the operation S331 described above, which will not be repeated here.
[0157] The conversion submodule is used to convert the query statement into an internal data structure representation. In one embodiment, the conversion submodule can be used to perform the operation S332 described above, which will not be described in detail here.
[0158] The generation submodule is used to perform association relationship processing, table scanning and index access steps to generate an initial query plan. In one embodiment, the generation submodule can be used to perform the operation S333 described above, which will not be described in detail here.
[0159] According to an embodiment of the present disclosure, the data analysis module includes a data analysis submodule and a data mining submodule.
[0160] The data analysis submodule is used to perform data analysis on the data warehouse data through a data analysis algorithm engine to determine abnormal memory usage, and the data analysis algorithm engine includes a numerical statistical analysis model, a time series analysis model, a supervised outlier detection model, a binary classification model, and a cluster analysis model. In one embodiment, the data analysis submodule can be used to perform the operation S350 described above, which will not be repeated here.
[0161] The data mining submodule is used to mine and analyze the data warehouse data through a data mining algorithm engine to determine the location of the code component used by the memory anomaly, and the data mining algorithm engine includes a frequent item set Apriori algorithm executor, a frequent pattern analyzer, and a sequence data mining model. In one embodiment, the data mining submodule can be used to perform the operation S360 described above, which will not be repeated here.
[0162] According to an embodiment of the present disclosure, the device further includes: a collection module and a storage module.
[0163] The collection module is used to collect memory usage data based on the data collection strategy. In one embodiment, the collection module can be used to perform the operation S310 described above, which will not be described in detail here.
[0164] The storage module is used to pre-process the memory usage data and store it in a data warehouse. In one embodiment, the storage module can be used to perform the operation S320 described above, which will not be described in detail here.
[0165] According to an embodiment of the present disclosure, the memory usage data is multi-source heterogeneous data, and the acquisition module includes: a first acquisition submodule, a second acquisition submodule, a third acquisition submodule and a fourth acquisition submodule.
[0166] The first collection submodule is used to collect basic data of the server cluster operation. In one embodiment, the first collection submodule can be used to perform the operation S320 described above, which will not be repeated here.
[0167] The second collection submodule is used to collect the JAVA service program group running data; in one embodiment, the second collection submodule can be used to perform the operation S320 described above, which will not be repeated here.
[0168] The third collection submodule is used to collect log type file data; and in one embodiment, the third collection submodule can be used to perform the operation S320 described above, which will not be repeated here.
[0169] The fourth acquisition submodule is used to acquire monitoring data of the external monitoring system. In one embodiment, the fourth acquisition submodule can be used to perform the operation S320 described above, which will not be described in detail here.
[0170] According to an embodiment of the present disclosure, the storage module includes: a data cleaning submodule, a data conversion submodule, a multidimensional data model building submodule and a storage submodule.
[0171] The data cleaning submodule is used to clean the collected memory usage data and remove outliers to determine the consistency and availability of the data. In one embodiment, the data cleaning submodule can be used to perform the operation S321 described above, which will not be repeated here.
[0172] The data conversion submodule is used to convert and normalize the memory usage data according to the data type; in one embodiment, the data conversion submodule can be used to perform the operation S322 described above, which will not be repeated here.
[0173] The multidimensional data construction sub-model is used to construct a multidimensional data model based on the preprocessed memory usage data; in one embodiment, the multidimensional data construction sub-model can be used to perform the operation S323 described above, which will not be repeated here.
[0174] The storage submodule stores the multidimensional data model into the data warehouse in a serialized interface call manner based on the data update strategy. In one embodiment, the storage submodule can be used to perform the operation S324 described above, which will not be described in detail here.
[0175] According to an embodiment of the present disclosure, the data conversion submodule includes: a parsing unit and an extraction unit.
[0176] The parsing unit is used to parse the JVM heap memory snapshot binary information into data in the form of a relational table; in one embodiment, the parsing unit can be used to perform the operation S3221 described above, which will not be repeated here.
[0177] The extraction unit is used to perform text analysis on the log type data to extract the data information in the corresponding time interval. In one embodiment, the extraction unit can be used to perform the operation S3222 described above, which will not be described in detail here.
[0178] According to an embodiment of the present disclosure, the storage submodule includes a data routing unit and an index design unit.
[0179] The data routing unit is used to provide corresponding data storage types for different data formats and route data read and write operations to the corresponding underlying data storage system in the data warehouse; in one embodiment, the data routing unit can be used to perform the operation S3241 described above, which will not be repeated here.
[0180] The index design unit is used to design corresponding index strategies and index structures for different types of storage systems according to query modes and access modes. In one embodiment, the index design unit can be used to perform the operation S3242 described above, which will not be described in detail here.
[0181] According to an embodiment of the present disclosure, any multiple modules in the parsing module 710, the query optimization module 720 and the data analysis module 730 can be combined in one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the parsing module 710, the query optimization module 720 and the data analysis module 730 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in any appropriate combination of any of them. Alternatively, at least one of the parsing module 710, the query optimization module 720 and the data analysis module 730 can be at least partially implemented as a computer program module, and when the computer program module is run, the corresponding function can be performed.
[0182] Figure 8 A block diagram of an electronic device suitable for implementing a JAVA virtual machine memory usage analysis method based on a data warehouse according to an embodiment of the present disclosure is schematically shown.
[0183] like Figure 8 As shown, the electronic device 900 according to an embodiment of the present disclosure includes a processor 901, which 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 part 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 a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 901 may also include an onboard memory for caching purposes. The processor 901 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0184] In RAM 903, various programs and data required for the operation of electronic device 900 are stored. Processor 901, ROM 902 and RAM 903 are connected to each other via bus 904. Processor 901 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 902 and / or RAM 903. It should be noted that the program can also be stored in one or more memories other than ROM 902 and RAM 903. Processor 901 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.
[0185] According to an embodiment of the present disclosure, the electronic device 900 may further include an input / output (I / O) interface 905, which is also connected to the bus 904. The electronic device 900 may further include one or more of the following components connected to the I / O interface 905: an input portion 906 including a keyboard, a mouse, etc.; an output portion 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 908 including a hard disk, etc.; and a communication portion 909 including a network interface card such as a LAN card, a modem, etc. The communication portion 909 performs communication processing via a network such as the Internet. A drive 909 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, etc., is installed on the drive 909 as needed, so that a computer program read therefrom is installed into the storage portion 908 as needed.
[0186] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiment; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the JAVA virtual machine memory usage analysis method based on the data warehouse according to the embodiment of the present disclosure is implemented.
[0187] According to an embodiment of the present disclosure, a computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus, or a device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include the ROM 902 and / or RAM 903 described above and / or one or more memories other than ROM 902 and RAM 903.
[0188] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the JAVA virtual machine memory usage analysis method based on a data warehouse provided in the embodiment of the present disclosure.
[0189] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 901. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0190] In one embodiment, the computer program may be based on a tangible storage medium such as an optical storage device, a magnetic storage device, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of a signal on a network medium, and downloaded and installed through the communication part 909, and / or installed from a removable medium 911. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0191] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 909, and / or installed from the removable medium 911. When the computer program is executed by the processor 901, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.
[0192] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process 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" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).
[0193] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0194] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0195] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes 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 various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. A JAVA virtual machine memory usage analysis method based on a data warehouse, characterized in that: The method comprises: In response to a query instruction input by a user, parsing the query statement to generate an initial query plan; Optimizing the initial query plan based on a query optimization algorithm to generate a query execution plan; and According to the query execution plan, the data analysis algorithm engine and the data mining algorithm engine are executed to mine and analyze the data warehouse data to determine the abnormal memory usage and the location of the code component of the abnormal memory usage. The data warehouse data is pre-processed multi-source heterogeneous data.
2. The method according to claim 1, characterized in that: The parsing of the query statement to generate an initial query plan includes: Extract data logic operations and data access targets from SQL task definitions through a syntax analyzer and perform operator parsing; Convert query statements into internal data structure representations; and Performs join processing, table scanning, and index access steps to generate an initial query plan.
3. The method according to claim 2, characterized in that The executing of the data analysis algorithm engine and the data mining algorithm engine according to the query execution plan to mine and analyze the data warehouse data to determine abnormal memory usage and the location of the code component of the abnormal memory usage includes: Performing data analysis on the data warehouse data by a data analysis algorithm engine to determine abnormal memory usage, wherein the data analysis algorithm engine includes a numerical statistical analysis model, a time series analysis model, a supervised outlier detection model, a binary classification model, and a cluster analysis model; and The data warehouse data is mined and analyzed by a data mining algorithm engine to determine the location of the code component used by the memory anomaly. The data mining algorithm engine includes a frequent item set Apriori algorithm executor, a frequent pattern analyzer and a sequence data mining model.
4. The method according to any one of claims 1 to 3, characterized in that Before parsing the query statement to generate the initial query plan, it also includes: Collect memory usage data based on the data collection policy; and The memory usage data is pre-processed and stored in a data warehouse.
5. The method according to claim 4, characterized in that The memory usage data is multi-source heterogeneous data, and collecting the memory usage data based on the data collection strategy includes: Collect basic data of server cluster operation; Collect JAVA service program group operation data; Collect log-type file data; and Collect monitoring data from external monitoring systems.
6. The method according to claim 4, characterized in that The preprocessing and storing the memory usage data in the data warehouse comprises: Perform data cleaning and outlier removal operations on the collected memory usage data to ensure data consistency and availability; Convert and normalize memory usage data according to data type; Building a multidimensional data model based on the preprocessed memory usage data; and Based on the data update strategy, the multidimensional data model is stored in the data warehouse in the form of serialized interface calls.
7. The method according to claim 6, characterized in that The operations of converting and normalizing the memory usage data according to the data type include: Parsing the JVM heap memory snapshot binary information into data in the form of a relational table; and Perform text parsing on log-type data to extract data information in the corresponding time interval.
8. The method according to claim 6, characterized in that The storing of the multidimensional data model into the data warehouse in a serialized interface call manner based on the data update strategy comprises: Provide corresponding data storage types for different data formats, and route data read and write operations to the corresponding underlying data storage system in the data warehouse; and Design corresponding index strategies and index structures for different types of storage systems based on query patterns and access patterns.
9. A JAVA virtual machine memory usage analysis device based on a data warehouse, characterized in that: The device comprises: A parsing module, for parsing a query statement to generate an initial query plan in response to a query instruction input by a user; A query optimization module, configured to optimize the initial query plan based on a query optimization algorithm to generate a query execution plan; and A data analysis module is used to execute a data analysis algorithm engine and a data mining algorithm engine to perform mining analysis on data warehouse data according to the query execution plan to determine abnormal memory usage and the location of code components for abnormal memory usage. The data warehouse data is pre-processed multi-source heterogeneous data.
10. An electronic device comprising: one or more processors; a storage device for storing one or more computer programs, The method is characterized in that the one or more processors execute the one or more computer programs to implement the steps of the method according to any one of claims 1 to 8.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
