Memory prediction method and device suitable for dependency analysis tool

A technology of dependency analysis and prediction method, applied in the field of computer memory management, which can solve problems such as tool performance degradation, analysis failure, insufficient memory resources of dependency analysis tools, etc., and achieve the effect of ensuring stability

Active Publication Date: 2019-08-30
NANJING NARI GROUP CORP +3
View PDF2 Cites 3 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
  • Memory prediction method and device suitable for dependency analysis tool
  • Memory prediction method and device suitable for dependency analysis tool
  • Memory prediction method and device suitable for dependency analysis tool

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0056] The present invention will be further described below. The following examples are only used to illustrate the technical solution of the present invention more clearly, but not to limit the protection scope of the present invention.

[0057] The runtime data area of ​​the Java virtual machine is mainly divided into: the program counter, the Java virtual machine stack, the local method stack, the Java heap, and the method area. Among them, the object instance is stored in the Java heap. The memory occupied by a Java program can be expressed by the following formula:

[0058] Total RAM = Heap RAM + Other RAM (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] According to the characteristics of the memory when the Java program is running, the memory OtherRAM occupied by other areas can be regarded as constant when the program does no...

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, and the method specifically comprises the steps of extracting a source code file from a Java program package file; analyzing the extracted source code file, generating an abstract syntax tree, and obtaining the number of the instance objects of each type of node class in the abstract syntax treegenerated by each source code file; calculating the size of a memory occupied by each type of node type instance objects; calculating the memory occupied by the abstract syntax tree generated by eachsource code file; and calculating the memory size required by the whole Java program package. According to the method, the memory is predicted when the dependency analysis tool runs, so that the dependency analysis tool container can be allocated to the container running nodes with enough memory resources through the predicted memory every time, and the running stability of the dependency analysistool and the running stability of a distributed code detection system are ensured.

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. The container cloud mainly uses the container orchestration tool 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 resources on the node where the container is located. Remaining memory and CPU resources. [0003] At this stage, the subject's source file dependency analysis tool needs to be deployed and run in the container cloud environment. The dependency analysis tool analyze...

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 Applications(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 Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products