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

A memory prediction method and device suitable for dependency analysis tools

A technology that relies on analysis and prediction methods, applied in the field of computer memory management, it can solve problems such as analysis failure, insufficient memory resources of dependency analysis tools, and tool performance degradation, and achieve the effect of ensuring operating stability.

Active Publication Date: 2022-08-05
NANJING NARI GROUP CORP +3
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

During the analysis process, these syntax tree structures are stored in memory. If you do not set enough memory resources for the dependency analysis tool container, there may be insufficient memory resources required by the dependency analysis tool during the analysis process. Will lead to a sharp decline in tool performance or even cause analysis failure

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
  • A memory prediction method and device suitable for dependency analysis tools
  • A memory prediction method and device suitable for dependency analysis tools
  • A memory prediction method and device suitable for dependency analysis tools

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0056] The present invention is further described below. The following examples are only used to illustrate the technical solutions of the present invention more clearly, and cannot be used to limit the protection scope of the present invention.

[0057] The Java virtual machine runtime data area is mainly divided into: a program counter, a Java virtual machine stack, a native method stack, a Java heap, and a method area, where the Java heap stores object instances. The memory occupied by a Java program can be represented by the following formula:

[0058] TotalRAM=HeapRAM+OtherRAM (1)

[0059] In the formula, TotalRAM is the memory occupied by the Java program, HeapRAM is the memory occupied by the Java heap, and OtherRAM is the memory occupied by other areas.

[0060] It can be seen from the characteristics of the Java program's runtime memory that the memory OtherRAM occupied by other areas can be regarded as constant when the program does not change. The memory HeapRAM ...

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 invention discloses a memory prediction method and device suitable for a dependency analysis tool. The method is specifically: extracting a source code file from a Java program package file; analyzing the extracted source code file, generating an abstract syntax tree, and Obtain the number of instance objects of each type of node class in the abstract syntax tree generated by each source code file; calculate the memory size of each type of node class instance objects; calculate the memory size of the abstract syntax tree generated by each source code file ; Calculate the memory size required for the entire Java package. The present invention predicts the running memory of the dependency analysis tool, so that each time the dependency analysis tool container can be allocated to the container running node with sufficient memory resources through the predicted memory, which ensures the running stability of the dependency analysis tool, and the distributed Code detection system running stability.

Description

technical field [0001] The invention relates to a memory prediction method and device suitable for dependency analysis tools, belonging to the technical field of computer memory management. Background technique [0002] With the maturity of container technology and the continuous improvement of container orchestration tools, deploying and developing systems in the cloud has become the choice of more and more enterprises. Container Cloud mainly uses container orchestration tools to provide users with an automatic deployment method for automatically deploying containers to nodes. However, if the user does not specify the required CPU and memory resources for the container, the container can get at most the node where the container is located. Remaining memory and CPU resources. [0003] At this stage, the subject source file dependency analysis tool needs to be deployed and run in the container cloud environment. The dependency analysis tool mainly analyzes the dependencies ...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/50
CPCG06F9/5016
Inventor 韩承锋唐云善邹旎彬陈皓立张帆杨林赵燕
Owner NANJING NARI GROUP CORP
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