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

Method, device, and computer equipment for preheating when java virtual machine starts

A java virtual machine and method function technology, applied in the field of JAVA, can solve problems such as equipment load surge, cluster failure, business traffic processing timeout, etc., and achieve the effect of saving manpower and material resources and precise preheating

Active Publication Date: 2021-08-17
ADVANCED NEW TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] The running process of the Java program includes two steps, which are as follows: compile the Java source code into bytecode through the compiler, and interpret the bytecode into machine instructions line by line through the JVM (Java Virtual Machine, Java Virtual Machine) interpreter and execute them. However, for some method functions or code blocks that need to be run frequently, that is, hot spot code (Hot Spot Code), the time cost of line-by-line interpretation is relatively high. Based on this, the JIT compiler (Just-In-Time Compiler) is introduced , just-in-time compiler), when the hot code is executed for the first time, the hot code is directly compiled into machine instructions by the JIT compiler, and stored in the cache area, and the directly compiled machine instructions are executed at the next execution
[0003] At present, in a distributed system, high-concurrency single-machine requests occur more and more suddenly, and the duration is longer and longer, while the JVM does not enable the JIT compiler for compilation until after the device is started, that is, after a large amount of business traffic flows in. Yes, the process of compiling a large amount of business traffic by the JIT compiler is likely to cause the device load to soar and the CPU usage to soar, which will cause the device to process some business traffic overtime, which may further cause the device to be unavailable, and what is even worse. The entire cluster fails due to the unavailability of a single device

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, device, and computer equipment for preheating when java virtual machine starts
  • Method, device, and computer equipment for preheating when java virtual machine starts
  • Method, device, and computer equipment for preheating when java virtual machine starts

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] In order for those skilled in the art to better understand the technical solutions in the embodiments of this specification, the technical solutions in the embodiments of this specification will be described in detail below in conjunction with the drawings in the embodiments of this specification. Obviously, the described implementation Examples are only some of the embodiments in this specification, not all of them. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in this specification shall fall within the scope of protection.

[0026] The running process of a Java program includes two steps, which are: compile the Java source code into bytecode through the compiler, compile the bytecode into machine instructions and execute it through the JVM, where the JVM compiles the bytecode into machine instructions and executes The process can be divided into two ways, one: for the hot code, when the hot code is executed for the fi...

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

Disclosed is a method, device and computer equipment for preheating when a Java virtual machine is started. The method includes: performing the following steps during the startup of the Java virtual machine: determining the time to be preheated according to preset system keywords and historical compilation logs. A method function; obtaining a unit test case corresponding to the method function to be preheated; and executing the unit test case.

Description

technical field [0001] The embodiment of this specification relates to the technical field of JAVA, and in particular to a method, a device, and a method for preheating a Java virtual machine when starting. Background technique [0002] The Java program running process includes two steps, which are as follows: compile the Java source code into bytecode through the compiler, and interpret the bytecode into machine instructions line by line through the JVM (Java Virtual Machine, Java Virtual Machine) interpreter and execute them. However, for some method functions or code blocks that need to be run frequently, that is, hot spot code (Hot Spot Code), the time cost of line-by-line interpretation is relatively high. Based on this, the JIT compiler (Just-In-Time Compiler) is introduced , just-in-time compiler), when the hot code is executed for the first time, the hot code is directly compiled into machine instructions by the JIT compiler, and stored in the cache area, and the dir...

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/455G06F11/36
CPCG06F9/45558G06F11/3688G06F2009/45575
Inventor 魏亚文
Owner ADVANCED NEW TECH CO LTD