Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

JAVA virtual machine memory leak detection method and device

A JAVA virtual machine and memory leak technology, applied in the computer field, can solve the problems of unavailability, low detection efficiency, high requirements on experience and ability of operation and maintenance personnel, and achieve the effect of high accuracy

Pending Publication Date: 2020-01-17
北京宝兰德软件股份有限公司
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the current method of using third-party tools to obtain memory usage based on the heap dump file, judging the points where memory leaks may occur based on the experience of operation and maintenance personnel, and combining the code to check whether memory leaks occur requires manual analysis. The experience and ability of operation and maintenance personnel are high, and the detection efficiency is low; due to the randomness of memory leaks, this method is not easy to find the crux of the problem, and the application is in an unavailable state when using this method

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • JAVA virtual machine memory leak detection method and device
  • JAVA virtual machine memory leak detection method and device
  • JAVA virtual machine memory leak detection method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0039] figure 1 A schematic flow diagram of a JAVA virtual machine memory leak detection method provided by an embodiment of the present invention is shown, as figure 1 As shown, the JAVA virtual machine memory leak detection method of the present embodiment includes:

[0040] S1. Every first preset time period, acquire memory block information ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention provides a JAVA virtual machine memory leak detection method and device, and the method comprises the steps: obtaining the memory block information of a JAVA virtual machine after each garbage collection GC in a first preset time period at intervals of the first preset time period; judging whether the memory block information of the JAVA virtual machine after garbage collection GC each time in the first preset time period conforms to a preset memory leakage rule or not; and if the memory block information of the JAVA virtual machine after all garbage collectionGC in the first preset time period conforms to a preset memory leakage rule, determining that memory leakage occurs in the JAVA virtual machine. According to the embodiment of the invention, the memory leakage condition of the JAVA virtual machine can be discovered in advance to give an alarm and solve the problem in advance, so that the downtime probability of the application is greatly reduced,and the detection accuracy is high.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a method and device for detecting memory leaks of a JAVA virtual machine. Background technique [0002] With the increasing demand for computer applications, the design and development of application programs have also become increasingly complex, and the number of variables that developers deal with in the process of program implementation has also increased significantly. How to effectively allocate and release memory and prevent memory leaks becomes a problem. become more and more prominent. For example, the server application software needs to run for a long time and continuously process the requests sent by the client. If there is no effective memory management, there will be a certain memory leak every time the request information is processed. This not only affects the performance of the server, but may also cause the entire system to crash. During the operation of JVM...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F11/36G06F9/455
CPCG06F11/366G06F9/45558G06F2009/45591Y02D10/00
Inventor 易存道
Owner 北京宝兰德软件股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products