Method, system, device and storage medium for java virtual machine garbage collection

A java virtual machine and garbage technology, applied in the field of java, can solve problems such as java application blockage, achieve the effect of improving user experience, improving usability, and avoiding timeout or blocking

Active Publication Date: 2021-02-02
携程旅游信息技术(上海)有限公司
View PDF12 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Therefore, it will hinder the java application during the running of the GC task

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
  • Method, system, device and storage medium for java virtual machine garbage collection
  • Method, system, device and storage medium for java virtual machine garbage collection
  • Method, system, device and storage medium for java virtual machine garbage collection

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The same reference numerals denote the same or similar structures in the drawings, and thus their repeated descriptions will be omitted.

[0028] One of the important factors that cause a large number of requests for java applications to time out or block is that in the prior art, GC can only be triggered passively, but cannot be executed actively, so the execution time of GC is uncontrollable, resulting in The GC task runs during the peak period of java application requests, causing a large number of request blocks, affecting user experience and affecting th...

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 present invention provides a method, system, device, and storage medium for java virtual machine garbage collection, including the step: S11, setting a planned task, the planned task is set to actively trigger the java virtual machine during the off-peak time period when the server cluster receives few requests. machine garbage collection; S12, the java application program initializes and loads the scheduled task; S13, reads the scheduled task to generate a scheduled task, and each server in multiple servers generates the execution time of the scheduled task through a random hash algorithm; S14, when executing When the time arrives, the server is triggered to perform garbage collection of the java virtual machine. The invention actively triggers garbage collection of the java virtual machine by setting scheduled tasks, thereby effectively avoiding a large number of java application program requests from timeout or blocking.

Description

technical field [0001] The invention relates to java technology, in particular to a method, system, device and storage medium for java virtual machine garbage collection. Background technique [0002] In recent years, as an object-oriented high-level programming language, java has been widely used because of its features such as ease of use, distribution, cross-platform and security. The java virtual machine is an abstract computer that runs all Java applications and is the operating environment of the java language. The java virtual machine has instructions for allocating memory, but not instructions for releasing memory. A notable feature of java is the introduction of garbage collection (GC), that is, the java virtual machine itself is responsible for deciding how to release and when to release the memory occupied by objects that are no longer referenced by the application system. The garbage collection task is not completed by the garbage collector in the java virtual ...

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/455
CPCG06F9/45558G06F2009/45583
Inventor 丁宜人余心宽陈雷
Owner 携程旅游信息技术(上海)有限公司
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