Intelligent memory management system and management method based on Java virtual machine

Through an intelligent memory management system based on Java virtual machines, combining memory monitoring and manual intervention to dynamically optimize memory usage, memory leaks and performance bottlenecks in Java applications are solved, and efficient memory utilization and application performance improvements are achieved.

CN119248418AInactive Publication Date: 2025-01-03DEQING ALPHA INNOVATION RES INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411240050.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-05
Publication Date
2025-01-03
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Java applications have memory leaks, excessive memory footprints, and performance bottlenecks in memory management, and existing solutions such as manual memory management and third-party memory optimization tools have human errors and memory leaks.

Method used

Design an intelligent memory management system based on Java virtual machine. Through the combination of memory monitoring, intelligent management and manual intervention systems, it monitors and optimizes memory usage in real time, dynamically adjusts memory allocation and garbage collection mechanisms, and uses machine learning algorithms to identify potential problems and Automatic repair.

Benefits of technology

Improve memory utilization, prevent memory leaks, optimize application performance, reduce operation and maintenance costs, reduce human errors, and realize automated memory management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119248418A_ABST
    Figure CN119248418A_ABST
Patent Text Reader

Abstract

The invention relates to an intelligent memory management system and management method based on a Java virtual machine, the system comprises a memory monitoring system, an intelligent memory management system and a manual intervention management system, the memory monitoring system is respectively connected with the intelligent memory management system and the manual intervention management system; the detected memory problem is given to a manual intervention management system, and the memory without the problem is managed by a memory intelligent management system. By dynamically monitoring, optimizing and managing the memory use of the Java application program, the purposes of efficiently utilizing the memory, reducing the memory leakage risk, improving the application performance and the like are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of large models and programming technology, and in particular to an intelligent memory management system and a management method based on a Java virtual machine. Background Art

[0002] Current Java applications have some problems in memory management, such as memory leaks, excessive memory usage, and performance bottlenecks. Existing solutions mainly include manual memory management, automatic garbage collection mechanisms, and third-party memory optimization tools. Manual memory management is prone to human errors, while conventional third-party memory optimization tools have problems such as memory leaks and increased memory usage.

[0003] Therefore, an intelligent memory management system and management method based on Java virtual machine are designed to overcome the above problems. Summary of the invention

[0004] The purpose of the present invention is to overcome the shortcomings of the prior art and to provide an intelligent memory management system and management method based on a Java virtual machine, which dynamically monitors, optimizes and manages the memory usage of Java applications to achieve efficient memory utilization, reduce the risk of memory leakage, and improve application performance.

[0005] The present invention is implemented through the following technical scheme: an intelligent memory management system based on a Java virtual machine, the system includes a memory monitoring system, a memory intelligent management system, and a manual intervention management system, wherein the memory monitoring system is connected to the memory intelligent management system and the manual intervention management system respectively, and memory problems detected are given to the manual intervention management system, while memory without problems is managed by the memory intelligent management system.

[0006] Preferably, the intelligent memory management system includes a memory optimization system and a storage data system, wherein the memory optimization system is provided with a performance evaluation system to process the evaluated data, connect the good data with the storage data system, and process the problematic data with the manual intervention management system.

[0007] Preferably, the data storage system is composed of a data generation system and a data display system. The stored data is used to generate an excellent report through the data generation system. The report is then displayed and output through the data display system. After output, it is customized and modified by the user and then transmitted to the memory intelligent management system or directly to the memory optimization system for optimization, thereby forming a loop.

[0008] Preferably, the manual intervention management system is also connected to the memory optimization system to transmit the data after manual intervention to the memory optimization system for intelligent management.

[0009] A management method for an intelligent memory management system based on a Java virtual machine, the method comprising the following steps: Step 1: Real-time monitoring of the memory monitoring system: By monitoring the memory usage of the Java application, including object creation, memory allocation, object reference relationship, etc., the memory status can be monitored in real time; Step 2: Evaluate the data detected in step 1). The problematic memory data will be directly sent to the manual intervention management system for manual intervention and learning, while the non-problematic memory data will be directly sent to the memory intelligent management system for intelligent management. Step 3 optimizes and further monitors the memory data that is intelligently managed in step 2), and finally gives performance evaluation and issues performance reports. Data that is poor after performance evaluation enters the repair program, and data that is repaired and has no problems enters the memory intelligent management system. Data that is poorly repaired and data that is found to have memory problems during the monitoring process directly enters the manual intervention management system. Step 4: The memory intelligent management system in step 3 can subsequently generate a report and display the report. The user can modify the report according to the report. The modified data is then transmitted to the memory intelligent management system or directly to the memory optimization system for optimization cycle. Step 5: For the manual intervention management system in step 3 and step 2, the data processed manually by the system is returned to the memory optimization system for optimization cycle.

[0010] The beneficial effects of the present invention are as follows: 1) Improve memory utilization: Reduce memory fragmentation, reduce memory usage, and improve memory utilization through intelligent optimization strategies. For example, this can be achieved by dynamically adjusting the heap memory size and optimizing the garbage collection mechanism.

[0011] 2) Prevent memory leaks: timely identify and fix potential memory leaks to reduce the risk of application crashes. Use automated detection and repair mechanisms to clean up useless objects in memory in a timely manner.

[0012] 3) Optimize application performance: Reduce application response time, increase system throughput, and improve user experience through memory management optimization. For example, optimize memory access efficiency through caching strategies and object pooling technologies.

[0013] 4) Automated management: Reduce manual intervention, improve the automation of memory management, and reduce operation and maintenance costs and risks. Implement automated memory monitoring, optimization, and repair to reduce the incidence of human errors. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1It is a flow chart of the present invention. DETAILED DESCRIPTION

[0015] In order to enable those skilled in the art to more clearly understand the objectives, technical solutions and advantages of the present invention, the present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0016] In the description of the present invention, it is necessary to understand that the orientation or position relationship indicated by the terms such as "up", "down", "left", "right", "inside", "outside", "horizontal" and "vertical" is based on the orientation or position relationship shown in the accompanying drawings, and is only for the convenience of describing the present invention, rather than indicating or implying that the device or original referred to must have a specific orientation, and therefore cannot be understood as a limitation on the present invention.

[0017] The present invention will be described in detail below with reference to the accompanying drawings: Figure 1 As shown, an intelligent memory management system based on a Java virtual machine includes a memory monitoring system 1, a memory intelligent management system 2, and a manual intervention management system 3, wherein the memory monitoring system 1 is connected to the memory intelligent management system 2 and the manual intervention management system 3 respectively, and the memory problems detected are given to the manual intervention management system 2, while the memory without problems is managed by the memory intelligent management system 2.

[0018] The memory intelligent management system 2 includes a memory optimization system 4 and a storage data system 5, wherein the memory optimization system 4 is provided with a performance evaluation system 6, which processes the evaluated data, connects the good data to the storage data system 5, and processes the problematic data to the manual intervention management system 3. The storage data system 5 is composed of a data generation system 7 and a data display system 8, and generates a good report from the stored data through the data generation system 7, which is then displayed and output through the data display system 8, and after being output, it is customized and modified by the user and then transmitted to the memory intelligent management system 2 or directly optimized to the memory optimization system 4, so that it forms a cycle.

[0019] The manual intervention management system 3 is also connected to the memory optimization system 4 to transmit the data after manual intervention to the memory optimization system 4 for intelligent management.

[0020] A management method for an intelligent memory management system based on a Java virtual machine, the method comprising the following steps: Step 1: Real-time monitoring of memory monitoring system 1: By monitoring the memory usage of Java applications, including object creation, memory allocation, object reference relationships, etc., real-time monitoring of memory status is achieved; Step 2: Evaluate the data detected in step 1), and directly enter the manual intervention management system 3 for manual intervention and learning for the problematic memory data, while directly enter the memory intelligent management system 2 for intelligent management for the memory data without problems; Step 3 optimizes and further monitors the memory data that is intelligently managed in step 2), and finally gives a performance evaluation and issues a performance report. The data that is poor after the performance evaluation enters the repair program, and the repaired data and the data without problems enter the memory intelligent management system 2, while the data that is poorly repaired and the data found to have memory problems during the monitoring process directly enter the manual intervention management system 3; Step 4: The memory intelligent management system 2 in step 3 can subsequently generate a report and display the report. The user can modify the report according to the report. The modified data is then transmitted to the memory intelligent management system 2 or directly to the memory optimization system 4 for optimization cycle. Step 5: For the manual intervention management system 3 in step 3 and step 2, the data after manual processing of the system is returned to the memory optimization system 4 for optimization cycle.

[0021] The functional features of the present invention are as follows: Real-time monitoring: By monitoring the memory usage of Java applications, including object creation, memory allocation, object reference relationships, etc., real-time monitoring of memory status is achieved. The technologies used include but are not limited to Java Management Extensions (JMX), Java Flight Recorder (JFR), etc.

[0022] Memory analysis: Based on monitoring data, use machine learning algorithms or rule engines to analyze and model memory usage patterns to identify potential memory problems and optimization space. For example, machine learning models such as neural networks and decision trees can be used to classify and predict memory usage patterns.

[0023] Intelligent optimization: Based on the results of memory analysis, intelligent memory optimization strategies are adopted, including but not limited to dynamic adjustment of memory allocation, optimization of object life cycle management, automatic repair of memory leaks, etc. Dynamic proxy technology and AOP (aspect-oriented programming) can be used to intercept and optimize the internal behavior of Java applications.

[0024] Statistics and Reports: Generate memory usage statistics reports for developers and system administrators to help them understand and optimize the memory performance of Java applications. Statistics can be displayed using technologies such as chart libraries and report generation tools, and export reports are supported.

[0025] Security considerations: In the memory management process, data security and privacy protection are taken into consideration, and encryption algorithms, access control mechanisms and other technologies are used to protect sensitive data and manage permissions.

[0026] The key technical points and tools of the present invention are as follows: Java programming language and its related frameworks (such as Spring, Hibernate, etc.).

[0027] The memory management mechanism and tuning parameters of the Java Virtual Machine (JVM), for example, the tuning of parameters such as the heap memory size, the ratio of the new generation to the old generation, and the garbage collector selection.

[0028] Machine learning algorithms or rule engines are used for memory analysis and optimization strategy generation. For example, neural networks, decision trees, genetic algorithms, etc. are used to analyze and predict memory usage patterns.

[0029] Monitoring tools and statistical report generation tools are used for real-time monitoring and performance evaluation. For example, use monitoring tools such as JMX and JFR to obtain memory usage data, and combine them with report generation tools to generate statistical reports.

[0030] Automated testing tools are used to verify optimization effects and system stability. For example, tools such as Junit and TestNG are used.

[0031] Figure 1 The flowchart of the present invention is shown in the figure. The flowchart is based on the steps and technology stack mentioned in the embodiment, covering Java application memory monitoring, machine learning model training, memory analysis and optimization strategy generation, intelligent memory management, performance evaluation and reporting, repair effect evaluation and other aspects.

[0032] Anyone familiar with the technology may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.

Claims

1. An intelligent memory management system based on a Java virtual machine, characterized in that: The system includes a memory monitoring system, a memory intelligent management system, and a manual intervention management system, wherein the memory monitoring system is connected to the memory intelligent management system and the manual intervention management system respectively, and memory problems detected are given to the manual intervention management system, while memory without problems is managed by the memory intelligent management system.

2. The intelligent memory management system based on Java virtual machine according to claim 1, characterized in that: The intelligent memory management system includes a memory optimization system and a storage data system, wherein the memory optimization system is provided with a performance evaluation system to process the evaluated data, connect the good data with the storage data system, and process the problematic data with the manual intervention management system.

3. The intelligent memory management system based on Java virtual machine according to claim 2, characterized in that: The data storage system is composed of a data generation system and a data display system. The stored data is used to generate an excellent report through the data generation system. The report is then displayed and output through the data display system. After output, it is customized and modified by the user and then transmitted to the memory intelligent management system or directly to the memory optimization system for optimization, thereby forming a cycle.

4. The intelligent memory management system based on Java virtual machine according to claim 2, characterized in that: The manual intervention management system is also connected to the memory optimization system to transmit the data after manual intervention to the memory optimization system for intelligent management.

5. The management method of the intelligent memory management system based on the Java virtual machine according to any one of claims 1 to 4, characterized in that: The method comprises the following steps: Step 1: Real-time monitoring of the memory monitoring system: By monitoring the memory usage of the Java application, including object creation, memory allocation, and object reference relationships, real-time monitoring of the memory status is achieved; Step 2: Evaluate the data detected in step 1). The problematic memory data will be directly sent to the manual intervention management system for manual intervention and learning, while the non-problematic memory data will be directly sent to the memory intelligent management system for intelligent management. Step 3 optimizes and further monitors the memory data that is intelligently managed in step 2), and finally gives performance evaluation and issues performance reports. Data that is poor after performance evaluation enters the repair program, and data that is repaired and has no problems enters the memory intelligent management system. Data that is poorly repaired and data that is found to have memory problems during the monitoring process directly enters the manual intervention management system. Step 4: The memory intelligent management system in step 3 can subsequently generate a report and display the report. The user can modify the report according to the report. The modified data is then transmitted to the memory intelligent management system or directly to the memory optimization system for optimization cycle. Step 5: For the manual intervention management system in step 3 and step 2, the data processed manually by the system is returned to the memory optimization system for optimization cycle.