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

Method and device for dynamically tracking java virtual machine running

A java virtual machine and dynamic tracking technology, applied in the computer field, can solve problems affecting the normal operation of the JVM, reducing operating efficiency, and difficult implementation

Active Publication Date: 2020-11-24
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF12 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0010] When using the remote debugging method, the remote debugging port needs to be opened, and the thread needs to be suspended during debugging, which seriously affects the normal operation of the JVM and reduces the operating efficiency;
[0011] 3) There are hidden dangers in network security
[0012] When using the remote debugging method, the remote debugging port needs to be opened. This method is difficult to implement, and the remote debugging port provides an intrusive port for network attacks, which has potential security risks.

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 and device for dynamically tracking java virtual machine running
  • Method and device for dynamically tracking java virtual machine running
  • Method and device for dynamically tracking java virtual machine running

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0097] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0098] figure 1 is a schematic diagram of the main flow of the method for dynamically tracking the operation of a Java virtual machine according to an embodiment of the present invention, as figure 1 shown, including:

[0099] Step S101, in the class loading stage of the Java virtual machine, filter each loading class of the Java virtual machine being loaded according to...

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 method and device for dynamically tracking operation of a Java virtual machine, and relates to the technical field of computers. A specific embodiment of the method comprisesthe following steps: in a class loading stage of the Java virtual machine, filtering each loading class of the loaded Java virtual machine according to preset model data of a monitoring model; If theloading class is matched with the model data, log byte codes are woven into the loading class according to the model data; And dynamically tracking the operation of the Java virtual machine based onthe woven log byte code. Log byte codes are dynamically woven into a monitored class in the JVM class loading stage, so that source codes cannot be invaded, and JVM running conditions and possible abnormal problems can be quickly tracked and positioned; Deployment and on-line are not needed; A thread does not need to be suspended, and normal operation of the system is not affected; No extra port needs to be opened, and the possibility of network intrusion is eradicated; Log byte codes can be customized, and weaving of malicious byte codes is effectively avoided.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for dynamically tracking the running of a Java virtual machine. Background technique [0002] During the operation of Java Virtual Machine (JVM for short), some abnormal problems will inevitably occur due to illegal input or poor system structure design, so it is necessary to track and debug the program to troubleshoot and solve abnormal problems. [0003] In the prior art, JVM running is usually tracked in the following two ways: [0004] 1) Manually add logs, and observe the operation of the JVM by printing logs; [0005] 2) Remote debugging, tracking and observing JVM running by suspending threads. [0006] The inventor finds that there are at least the following problems in the prior art: [0007] 1) Source code intrusion needs to be released online: [0008] When using the method of adding logs manually, every time a log is added, it needs to be dep...

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/3636G06F2009/45591
Inventor 贺立强王英杰
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
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