Unlock instant, AI-driven research and patent intelligence for your innovation.

JVM load quantification and optimization method

An optimization method and load value technology, applied in resource allocation, program control design, instrumentation, etc., can solve problems such as insufficient response, difficulty in effective recovery, and low real JVM load

Active Publication Date: 2020-07-17
帆软软件有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] 1. Polling to obtain memory usage, the response is not timely enough: JVM load changes are at the millisecond level in the time dimension, but polling to obtain memory usage generally only reaches the second level, and second-level polling is Insufficient response when the load changes drastically
But if you do millisecond-level polling, the overall performance is poor
[0004] 2. Due to the role of the GC (Garbage Collection, garbage collection) mechanism of the JVM (when the JVM memory is almost full, the system will automatically trigger garbage collection, clear some useless Java objects, and reclaim memory space), it is characterized by memory usage The level of JVM load does not reflect the real load of the JVM well
When the memory usage rate is high, it is likely that the Java objects in the JVM can be effectively recycled by the GC. In this case, the real situation of the JVM load is not high. If it is directly represented by the memory usage rate, it will be misjudged as high Load, and then make a series of unnecessary response measures, affecting the user experience (such as frequently sending risk warnings, frequently restricting user requests, etc.)
When the memory usage rate is not very high, it is possible that the active threads in the JVM are rapidly creating Java objects. According to the life cycle of Java objects, such objects are generally difficult to be effectively recycled by the GC in a short period of time. As a result, the JVM quickly enters an overloaded state. In this case, the real situation of the JVM load is very high. If it is directly represented by the memory usage rate, it will be misjudged as a low-to-medium load, so it misses a good opportunity to take effective operation and maintenance measures. affect the stable operation of the system

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
  • JVM load quantification and optimization method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] The present invention will be specifically introduced below in conjunction with the accompanying drawings and specific embodiments.

[0045] Such as figure 1 Shown is a JVM load quantification and optimization method of the present invention, including the following steps: S1: When the garbage collector executes GC, obtain GC data through GC callback. S2: Calculate metrics based on GC data. S3: Execute corresponding operation and maintenance operations according to the values ​​of the calculated metrics. Since GC will definitely occur when the JVM load changes, GC callback is the most timely and granular and accurate way to monitor JVM load changes. The GC data obtained through the GC callback can more accurately reflect the current JVM load situation, and is more timely in terms of timeliness.

[0046] In the present invention, take the PS (Parallel Scavenge) collector as an example. When the PS collector executes GC, GC data is obtained through GC callback. The GC ...

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 JVM load quantification and optimization method. The method comprises the steps that when a garbage collector executes GC, obtaining GC data through GC callback; calculatinga measurement index according to the GC data; and executing a corresponding operation and maintenance operation according to the calculated value of the measurement index. According to the JVM load quantification and optimization method, the measurement index for measuring the JVM load is constructed through the GC data, and related operation and maintenance operation is performed according to themeasurement index. On one hand, the real condition of the JVM load can be reflected more accurately through the measurement index constructed by the GC data, and meanwhile, GC is certainly generatedwhen the JVM load is changed, so that the JVM load condition is evaluated more timely through the GC callback data.

Description

technical field [0001] The invention relates to a JVM load quantification and optimization method. Background technique [0002] The quantification of JVM (Java Virtual Machine, Java virtual machine) load has always been a technical problem. It is rare to see Java software products on the market that include automatic load quantification mechanisms in built-in functions. In the prior art, the memory usage rate is generally obtained by polling to represent the level of JVM load. This approach has the following drawbacks: [0003] 1. Polling to obtain memory usage, the response is not timely enough: JVM load changes are at the millisecond level in the time dimension, but polling to obtain memory usage generally only reaches the second level, and second-level polling is Insufficient response to sudden load changes. But if you do millisecond-level polling, the overall performance is poor. [0004] 2. Due to the role of the GC (Garbage Collection, garbage collection) mechanis...

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): G06F9/455G06F9/50
CPCG06F9/45558G06F9/5016G06F9/5022G06F9/5077G06F2009/4557
Inventor 陈成陈亮靳博凯
Owner 帆软软件有限公司