CN113590369B - Method and device for virtual machine diagnosis and electronic equipment - Google Patents

Method and device for virtual machine diagnosis and electronic equipment Download PDF

Info

Publication number
CN113590369B
CN113590369B CN202110842016.7A CN202110842016A CN113590369B CN 113590369 B CN113590369 B CN 113590369B CN 202110842016 A CN202110842016 A CN 202110842016A CN 113590369 B CN113590369 B CN 113590369B
Authority
CN
China
Prior art keywords
information
application type
starting
virtual machine
model
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110842016.7A
Other languages
Chinese (zh)
Other versions
CN113590369A (en
Inventor
曹德高
宋荣鑫
黄建庭
肖卫渭
倪思勇
王翔宇
郑�硕
谢银意
杨志豪
卫义超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Qiyue Information Technology Co Ltd
Original Assignee
Shanghai Qiyue Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Qiyue Information Technology Co Ltd filed Critical Shanghai Qiyue Information Technology Co Ltd
Priority to CN202110842016.7A priority Critical patent/CN113590369B/en
Publication of CN113590369A publication Critical patent/CN113590369A/en
Application granted granted Critical
Publication of CN113590369B publication Critical patent/CN113590369B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/079Root cause analysis, i.e. error or fault diagnosis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45591Monitoring or debugging support
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Quality & Reliability (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a method, a device and electronic equipment for virtual machine diagnosis, which relate to the technical field of Internet and comprise the steps of acquiring application types and IP information; establishing a mapping relation between the application type and the IP information; selecting a target application type through a proxy model; and starting a diagnosis tool to execute virtual machine diagnosis through the proxy model based on the target application type and the corresponding target IP information. The application can promote the diagnosis process of the virtual machine, and the authorized device can execute diagnosis when a single application can access the virtual machine.

Description

Method and device for virtual machine diagnosis and electronic equipment
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a method and an apparatus for virtual machine diagnosis, and an electronic device.
Background
A Virtual Machine (Virtual Machine) refers to a complete computer system that runs in a completely isolated environment with complete hardware system functionality through software emulation. Work that can be done in a physical computer can be done in a virtual machine. When creating a virtual machine in a computer, a part of hard disk and memory capacity of the physical machine are required to be used as the hard disk and memory capacity of the virtual machine. Each virtual machine has a separate CMOS, hard disk and operating system, and can operate as if it were a physical machine.
Currently, in the process of diagnosing a virtual machine, an application type and IP information need to be specified to start a diagnostic tool. However, it is not easy for the user to obtain IP information.
Therefore, a method, a device and an electronic device for virtual machine diagnosis are provided.
Disclosure of Invention
The present disclosure provides a method, an apparatus, and an electronic device for virtual machine diagnosis, which can promote a virtual machine diagnosis process, and enable an authorized device to perform diagnosis when a single application is accessible.
The method for diagnosing the virtual machine provided by the application adopts the following technical scheme that:
Acquiring application type and IP information;
establishing a mapping relation between the application type and the IP information;
selecting a target application type through a proxy model;
and starting a diagnosis tool to execute virtual machine diagnosis through the proxy model based on the target application type and the corresponding target IP information.
Optionally, the establishing a mapping relationship between the application type and the IP information includes:
Adding the application type and the IP information into the options of a selection list;
Establishing the association between the application type and the IP information to form a mapping relation between the application type and the IP information;
and adding the selection list into the proxy model.
Optionally, the starting the diagnostic tool to perform virtual machine diagnosis through the proxy model based on the target application type and the corresponding target IP information includes:
registering the target IP information through the proxy model;
Starting a diagnostic tool based on the proxy model specifying the target application type and the corresponding registered target IP information;
and starting a diagnosis tool to execute virtual machine diagnosis through the proxy model.
Optionally, the ports of the proxy model include 80 ports.
Optionally, the starting the diagnostic tool to perform virtual machine diagnosis through the proxy model includes:
Inputting a start command to the proxy model;
judging whether the starting command accords with a preset rule or not;
when the judgment result is in accordance, executing the starting command, and starting a diagnostic tool to execute virtual machine diagnosis through the proxy model;
and intercepting the starting command when the judging result is not in accordance.
The device for virtual machine diagnosis provided by the application adopts the following technical scheme that:
The acquisition module is used for acquiring the application type and the IP information;
The mapping relation module is used for establishing a mapping relation between the application type and the IP information;
the selection module is used for selecting a target application type through the proxy model;
and the starting module is used for starting a diagnostic tool to execute virtual machine diagnosis through the proxy model based on the target application type and the corresponding target IP information.
Optionally, the mapping relation module includes:
a selection list unit for adding the application type and the IP information into the selection items of the selection list;
the mapping relation unit is used for establishing the association between the application type and the IP information and forming a mapping relation between the application type and the IP information;
And the proxy unit is used for adding the selection list into the proxy model.
Optionally, the starting module includes:
a registration unit configured to register the target IP information through the proxy model;
a starting unit, configured to specify the target application type and the corresponding registered target IP information based on the proxy model, and start a diagnostic tool;
And the diagnosis unit is used for starting a diagnosis tool to execute virtual machine diagnosis through the proxy model.
Optionally, the ports of the proxy model include 80 ports.
Optionally, the starting module further includes:
An input unit for inputting a start command to the proxy model;
The judging unit is used for judging whether the starting command accords with a preset rule;
the execution unit is used for executing the starting command when the judging result is in accordance, and starting a diagnostic tool to execute virtual machine diagnosis through the proxy model;
and the interception unit is used for intercepting the starting command when the judging result is not in accordance.
The specification also provides an electronic device, wherein the electronic device includes:
A processor; and
A memory storing computer executable instructions that, when executed, cause the processor to perform any of the methods described above.
The present specification also provides a computer readable storage medium storing one or more programs which when executed by a processor implement any of the methods described above.
In the invention, the application type and the IP information are acquired, a one-to-one mapping relation or a one-to-many mapping relation is established between the application type and the IP information, the target application type is selected through the proxy model, then the corresponding IP information is determined according to the selected target application type, and a diagnostic tool is started to execute virtual machine diagnosis through the proxy model based on the target application type and the corresponding IP information. The process of virtual machine diagnostics may be enhanced where a single application is accessible so that the authorized device is performing diagnostics.
Drawings
Fig. 1 is a schematic diagram of a method for virtual machine diagnosis according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of an apparatus for virtual machine diagnosis according to an embodiment of the present disclosure;
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of a computer readable medium according to an embodiment of the present disclosure.
Detailed Description
The following description is presented to enable one of ordinary skill in the art to make and use the invention. The preferred embodiments in the following description are by way of example only and other obvious variations will occur to those skilled in the art. The basic principles of the invention defined in the following description may be applied to other embodiments, variations, modifications, equivalents, and other technical solutions without departing from the spirit and scope of the invention.
The application is described in further detail below with reference to fig. 1-4.
The embodiment of the specification provides a method for virtual machine diagnosis, which comprises the following steps:
Acquiring application type and IP information;
establishing a mapping relation between the application type and the IP information;
selecting a target application type through a proxy model;
and starting a diagnosis tool to execute virtual machine diagnosis through the proxy model based on the target application type and the corresponding target IP information.
In the embodiment of the specification, the application type and the IP information are acquired, a one-to-one mapping relation or a one-to-many mapping relation is established between the application type and the IP information, the target application type is selected through the proxy model, the corresponding IP information is determined according to the selected target application type, and a diagnostic tool is started to execute virtual machine diagnosis through the proxy model based on the target application type and the corresponding IP information. The process of virtual machine diagnostics may be enhanced where a single application is accessible so that the authorized device is performing diagnostics.
Exemplary embodiments of the present invention will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments can be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these exemplary embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the invention to those skilled in the art. The same reference numerals in the drawings denote the same or similar elements, components or portions, and thus a repetitive description thereof will be omitted.
The features, structures, characteristics or other details described in a particular embodiment do not exclude that may be combined in one or more other embodiments in a suitable manner, without departing from the technical idea of the invention.
In the description of specific embodiments, features, structures, characteristics, or other details described in the present invention are provided to enable one skilled in the art to fully understand the embodiments. It is not excluded that one skilled in the art may practice the present invention without one or more of the specific features, structures, characteristics, or other details.
The flow diagrams depicted in the figures are exemplary only, and do not necessarily include all of the elements and operations/steps, nor must they be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
The block diagrams depicted in the figures are merely functional entities and do not necessarily correspond to physically separate entities. That is, the functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The term "and/or" and/or "includes all combinations of any one or more of the associated listed items.
Fig. 1 is a schematic diagram of a method for virtual machine diagnosis according to an embodiment of the present disclosure, where the method may include:
s101: and acquiring the application type and the IP information.
In the embodiment of the present specification, the content such as the application type, the IP information, etc. is specified by statistics or a list.
S102: and establishing a mapping relation between the application type and the IP information.
In the embodiment of the present specification, a one-to-one mapping relationship or a one-to-many mapping relationship is established between application types and IP information.
In this embodiment of the present disclosure, the establishing a mapping relationship between the application type and the IP information includes:
Adding the application type and the IP information into the options of a selection list;
Establishing the association between the application type and the IP information to form a mapping relation between the application type and the IP information;
and adding the selection list into the proxy model.
In the embodiment of the specification, the application type and the IP information are added into the selection items of the selection list, the association between the application type and the IP information is established, the one-to-one mapping relation or the one-to-many mapping relation between the application type and the IP information is formed, and the selection list containing the application type and the IP information selection items is added into the proxy model. The proxy model includes Arthas model, jstat model, and the like. The Arthas model is a Java diagnostic tool in a command line interaction mode, and can directly download corresponding jar package operation because of Java writing. The Jstat model is a simple utility that exists in JDK (Java Development Ki, a software development kit for Java developers) for providing statistical information about virtual machine performance, such as garbage collection, compilation activities. The key advantage of the Jstat model is that it can dynamically capture these metrics while running the virtual machine and without any preconditions.
The application type and corresponding IP information are selected and started through Arthas model. In general, a user cannot concentrate IP information of each application type, and thus, the IP information is obtained, and a port corresponding to the IP information cannot be accessed unless the port of the IP information is opened, but does not meet the security specification. Therefore, the application type is selected, the corresponding IP information is locked, and the corresponding IP information is registered through the Web-Console (central application), so long as the Web-Console (central application) port is opened, all target IPs to be diagnosed do not need to be authorized again.
S103: the target application type is selected by the proxy model.
In the present embodiment, the proxy model includes Arthas model, jstat model, and the like. The Arthas model is a Java diagnostic tool in a command line interaction mode, and can directly download corresponding jar package operation because of Java writing. The Jstat model is a simple utility that exists in JDK (Java Development Ki, a software development kit for Java developers) for providing statistical information about virtual machine performance, such as garbage collection, compilation activities. The key advantage of the Jstat model is that it can dynamically capture these metrics while running the virtual machine and without any preconditions.
S104: and starting a diagnosis tool to execute virtual machine diagnosis through the proxy model based on the target application type and the corresponding target IP information.
In the embodiment of the present disclosure, a target application is selected from the selection list, and according to the selected target application, corresponding target IP information is locked, and virtual machine diagnosis is started through a Arthas model.
In the embodiment of the present specification, the ports of the proxy model include 80 ports.
In an embodiment of the present disclosure, the starting a diagnostic tool to perform virtual machine diagnosis through the proxy model includes:
Inputting a start command to the proxy model;
judging whether the starting command accords with a preset rule or not;
when the judgment result is in accordance, executing the starting command, and starting a diagnostic tool to execute virtual machine diagnosis through the proxy model;
and intercepting the starting command when the judging result is not in accordance.
In the embodiment of the present specification, the Arthas model may execute the function of the bytecode replacement, and the direct opening of the function of the bytecode replacement may be directly operated by a user, so that a command input box is set in the Web-Console (central application), and only commands of the Arthas model can be used through the command input box. When the start command is input to the Arthas model, it is determined whether the start command meets a preset rule, the preset rule includes no dangerous command, and the dangerous command includes Redefine command. And when the judging result does not contain the dangerous command, executing the starting command, and starting the virtual machine diagnosis through the Arthas model. When the judging result contains a dangerous command, intercepting a starting command.
Fig. 2 is a schematic structural diagram of an apparatus for virtual machine diagnosis according to an embodiment of the present disclosure, where the apparatus may include:
The acquisition module is used for acquiring the application type and the IP information;
The mapping relation module is used for establishing a mapping relation between the application type and the IP information;
the selection module is used for selecting a target application type through the proxy model;
and the starting module is used for starting a diagnostic tool to execute virtual machine diagnosis through the proxy model based on the target application type and the corresponding target IP information.
In an embodiment of the present disclosure, the mapping relation module includes:
a selection list unit for adding the application type and the IP information into the selection items of the selection list;
the mapping relation unit is used for establishing the association between the application type and the IP information and forming a mapping relation between the application type and the IP information;
And the proxy unit is used for adding the selection list into the proxy model.
In an embodiment of the present disclosure, the starting module includes:
a registration unit configured to register the target IP information through the proxy model;
a starting unit, configured to specify the target application type and the corresponding registered target IP information based on the proxy model, and start a diagnostic tool;
And the diagnosis unit is used for starting a diagnosis tool to execute virtual machine diagnosis through the proxy model.
In the embodiment of the present specification, the ports of the proxy model include 80 ports.
In an embodiment of the present disclosure, the starting module further includes:
An input unit for inputting a start command to the proxy model;
The judging unit is used for judging whether the starting command accords with a preset rule;
the execution unit is used for executing the starting command when the judging result is in accordance, and starting a diagnostic tool to execute virtual machine diagnosis through the proxy model;
and the interception unit is used for intercepting the starting command when the judging result is not in accordance.
The functions of the apparatus according to the embodiments of the present invention have been described in the foregoing method embodiments, so that the descriptions of the embodiments are not exhaustive, and reference may be made to the related descriptions in the foregoing embodiments, which are not repeated herein.
Based on the same inventive concept, the embodiments of the present specification also provide an electronic device.
The following describes an embodiment of an electronic device according to the present invention, which may be regarded as a specific physical implementation of the above-described embodiment of the method and apparatus according to the present invention. Details described in relation to the embodiments of the electronic device of the present invention should be considered as additions to the embodiments of the method or apparatus described above; for details not disclosed in the embodiments of the electronic device of the present invention, reference may be made to the above-described method or apparatus embodiments.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. An electronic device 300 according to this embodiment of the present invention is described below with reference to fig. 3. The electronic device 300 shown in fig. 3 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 3, the electronic device 300 is embodied in the form of a general purpose computing device. Components of electronic device 300 may include, but are not limited to: at least one processing unit 310, at least one memory unit 320, a bus 330 connecting the different system components (including the memory unit 320 and the processing unit 310), a display unit 340, and the like.
Wherein the storage unit stores program code that is executable by the processing unit 310 such that the processing unit 310 performs the steps according to various exemplary embodiments of the invention described in the above processing method section of the present specification. For example, the processing unit 310 may perform the steps shown in fig. 1.
The memory unit 320 may include readable media in the form of volatile memory units, such as Random Access Memory (RAM) 3201 and/or cache memory 3202, and may further include Read Only Memory (ROM) 3203.
The storage unit 320 may also include a program/utility 3204 having a set (at least one) of program modules 3205, such program modules 3205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 330 may be one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 300 may also communicate with one or more external devices 400 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 300, and/or any device (e.g., router, modem, etc.) that enables the electronic device 300 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 350. Also, electronic device 300 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 360. The network adapter 360 may communicate with other modules of the electronic device 300 via the bus 330. It should be appreciated that although not shown in fig. 3, other hardware and/or software modules may be used in connection with electronic device 300, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the exemplary embodiments described herein may be implemented in software, or may be implemented in software in combination with necessary hardware. Thus, the technical solution according to the embodiments of the present invention may be embodied in the form of a software product, which may be stored in a computer readable storage medium (may be a CD-ROM, a usb disk, a mobile hard disk, etc.) or on a network, and includes several instructions to cause a computing device (may be a personal computer, a server, or a network device, etc.) to perform the above-mentioned method according to the present invention. The computer program, when executed by a data processing device, enables the computer readable medium to carry out the above-described method of the present invention, namely: such as the method shown in fig. 1.
Fig. 4 is a schematic diagram of a computer readable medium according to an embodiment of the present disclosure.
A computer program implementing the method shown in fig. 1 may be stored on one or more computer readable media. The computer readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable storage medium may also be any readable medium that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
In summary, the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that some or all of the functionality of some or all of the components in accordance with embodiments of the present invention may be implemented in practice using a general purpose data processing device such as a microprocessor or Digital Signal Processor (DSP). The present invention can also be implemented as an apparatus or device program (e.g., a computer program and a computer program product) for performing a portion or all of the methods described herein. Such a program embodying the present invention may be stored on a computer readable medium, or may have the form of one or more signals. Such signals may be downloaded from an internet website, provided on a carrier signal, or provided in any other form.
The above-described specific embodiments further describe the objects, technical solutions and advantageous effects of the present invention in detail, and it should be understood that the present invention is not inherently related to any particular computer, virtual device or electronic apparatus, and various general-purpose devices may also implement the present invention. The foregoing description of the embodiments of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, alternatives, and improvements that fall within the spirit and scope of the invention.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.

Claims (5)

1. A method for virtual machine diagnostics, comprising:
Acquiring application type and IP information;
Adding the application type and the IP information into the options of a selection list; establishing association between the application type and the IP information to form a one-to-one mapping relation between the application type and the IP information; adding the selection list into a proxy model; the proxy model includes Arthas models;
selecting a target application type through the Arthas model;
Starting the Arthas model, locking corresponding target IP information based on the target application type, and registering the target IP information through Web-Console; setting a command input box in the Web-Console, and inputting a starting command to the Arthas model through the command input box; judging whether the starting command comprises Redefine commands or not; executing the start command when the start command does not include Redefine commands, and starting a diagnostic tool to execute virtual machine diagnosis through the Arthas model; and intercepting the starting command when the judging result is not in accordance.
2. The method for virtual machine diagnostics of claim 1, wherein the ports of the proxy model comprise 80 ports.
3. An apparatus for virtual machine diagnostics, comprising:
The acquisition module is used for acquiring the application type and the IP information;
Adding the application type and the IP information into the options of a selection list; establishing association between the application type and the IP information to form a one-to-one mapping relation between the application type and the IP information; adding the selection list into a proxy model; the proxy model includes Arthas models;
A selection module for selecting a target application type through the Arthas model;
The starting module is used for starting the Arthas model and locking corresponding target IP information based on the target application type, and registering the target IP information through Web-Console; setting a command input box in the Web-Console, and inputting a starting command to the Arthas model through the command input box; judging whether the starting command comprises Redefine commands or not; executing the start command when the start command does not include Redefine commands, and starting a diagnostic tool to execute virtual machine diagnosis through the Arthas model; and intercepting the starting command when the judging result is not in accordance.
4. An electronic device, wherein the electronic device comprises:
A processor; and
A memory storing computer executable instructions that, when executed, cause the processor to perform the method of any of claims 1-2.
5. A computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement the method of any of claims 1-2.
CN202110842016.7A 2021-07-23 2021-07-23 Method and device for virtual machine diagnosis and electronic equipment Active CN113590369B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110842016.7A CN113590369B (en) 2021-07-23 2021-07-23 Method and device for virtual machine diagnosis and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110842016.7A CN113590369B (en) 2021-07-23 2021-07-23 Method and device for virtual machine diagnosis and electronic equipment

Publications (2)

Publication Number Publication Date
CN113590369A CN113590369A (en) 2021-11-02
CN113590369B true CN113590369B (en) 2024-05-28

Family

ID=78249889

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110842016.7A Active CN113590369B (en) 2021-07-23 2021-07-23 Method and device for virtual machine diagnosis and electronic equipment

Country Status (1)

Country Link
CN (1) CN113590369B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108023970A (en) * 2016-11-02 2018-05-11 阿里巴巴集团控股有限公司 Information acquisition method and device, server
WO2019169765A1 (en) * 2018-03-06 2019-09-12 平安科技(深圳)有限公司 Electronic device, method for acquiring state information in cluster environment, system, and storage medium
CN111752741A (en) * 2020-06-30 2020-10-09 深圳前海微众银行股份有限公司 System performance detection method and device
CN113132364A (en) * 2021-04-07 2021-07-16 中国联合网络通信集团有限公司 ARP (Address resolution protocol) draft table item generation method and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108023970A (en) * 2016-11-02 2018-05-11 阿里巴巴集团控股有限公司 Information acquisition method and device, server
WO2019169765A1 (en) * 2018-03-06 2019-09-12 平安科技(深圳)有限公司 Electronic device, method for acquiring state information in cluster environment, system, and storage medium
CN111752741A (en) * 2020-06-30 2020-10-09 深圳前海微众银行股份有限公司 System performance detection method and device
CN113132364A (en) * 2021-04-07 2021-07-16 中国联合网络通信集团有限公司 ARP (Address resolution protocol) draft table item generation method and electronic equipment

Also Published As

Publication number Publication date
CN113590369A (en) 2021-11-02

Similar Documents

Publication Publication Date Title
CN110096338B (en) Intelligent contract execution method, device, equipment and medium
US7975257B2 (en) Iterative static and dynamic software analysis
CN101233485B (en) Method and system for integrating late bound functions and languages into an external program environment
CN110032392B (en) Service management method and device, storage medium and electronic equipment
CN103294598B (en) A kind of source code inspection method and device
CN110059456B (en) Code protection method, code protection device, storage medium and electronic equipment
CN110058861B (en) Source code processing method and device, storage medium and electronic equipment
CN111316232A (en) Providing optimization using annotations of programs
WO2023103712A1 (en) Ecu upgrade method and device, and readable storage medium
CN110221840B (en) Function implementation method and device of application program, equipment and storage medium
CN115292058A (en) Service scene level service topology generation method and device and electronic equipment
US11288044B1 (en) System and method for interprocedural analysis
US20160371061A1 (en) Read-only communication operator
CN113590369B (en) Method and device for virtual machine diagnosis and electronic equipment
US10642714B2 (en) Mapping dynamic analysis data to source code
CN113238739A (en) Plug-in development and data acquisition method, device, electronic equipment and medium
CN110704766A (en) Interface rendering optimization method and device based on real-time snapshot and electronic equipment
US11182272B2 (en) Application state monitoring
CN111681093B (en) Method and device for displaying resource page and electronic equipment
CN115080113A (en) Item code detection method and device, readable storage medium and electronic equipment
CN111813383B (en) Comprehensive front-end system of bank based on RAP technology
CN114816672A (en) Virtual machine creation method and device, electronic equipment and storage medium
Kleine et al. Llvm2csp: Extracting csp models from concurrent programs
CN113835914B (en) Debugging system, method, device and equipment of firmware support package
US11847448B2 (en) Automatic generation of exporter configuration rules

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant