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

Method and device for obtaining running state of java virtual machine

A Java virtual machine and running state technology, applied in the computer field, can solve the problem of inability to obtain the running state of the Java virtual machine.

Active Publication Date: 2021-03-05
ALIBABA CLOUD COMPUTING LTD
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, the present application provides a method and device for obtaining the running state of the Java virtual machine, so as to solve the problem that the monitoring data acquisition script in the host machine cannot obtain the running state of the Java virtual machine in the LXC container

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 obtaining running state of java virtual machine
  • Method and device for obtaining running state of java virtual machine
  • Method and device for obtaining running state of java virtual machine

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0014] The implementation of the present application will be described in detail below with reference to the accompanying drawings and examples, so as to fully understand and implement the implementation process of how the present application uses technical means to solve technical problems and achieve technical effects.

[0015] When the Java virtual machine starts, it will record the Java virtual machine process in the directory used to store temporary files and name a file with its process identification (Process Identification, PID), and record the real-time running status of the Java instance through this file.

[0016] When the Java virtual machine is started under the LXC container, the process will also be recorded in the directory for storing temporary files and a file will be named with the PID of the Java virtual machine inside the LXC container. At this time, the PID naming the file is not the PID of the process under the host machine, so that the agent (agent) in t...

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 application discloses a method and device for obtaining the running state of a Java virtual machine, the method comprising: obtaining the process identification of the Java virtual machine running in the LXC container in the host machine, and the running state of the Java virtual machine is recorded In the first file; create a second file according to the process identification, the second file refers to the inode number of the first file in the file system; obtain the Java virtual machine from the second file Operating status. Make the host machine obtain the running state of the Java virtual machine running in the LXC container.

Description

technical field [0001] The present application belongs to the technical field of computers, and in particular relates to a method and a device for acquiring the running state of a Java virtual machine. Background technique [0002] The Linux Container (LXC) container is a kernel virtualization technology that can provide lightweight virtualization to isolate processes and resources without providing instruction interpretation mechanisms and other complexities of full virtualization. The LXC container provides a mechanism to support simultaneous execution of multiple isolated server containers on a single controllable host node. The Linux Container container is a bit like chroot, providing a virtual environment with its own process and network space, but it is different from a virtual machine because the LXC container is a virtualization of resources at the operating system level. [0003] Multiple Java virtual machines will be enabled on the host machine at the same time, w...

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/45591
Inventor 茆亮亮
Owner ALIBABA CLOUD COMPUTING LTD