[go: up one dir, main page]

CN117707704B - Java virtual machine configuration method and system - Google Patents

Java virtual machine configuration method and system Download PDF

Info

Publication number
CN117707704B
CN117707704B CN202311760604.1A CN202311760604A CN117707704B CN 117707704 B CN117707704 B CN 117707704B CN 202311760604 A CN202311760604 A CN 202311760604A CN 117707704 B CN117707704 B CN 117707704B
Authority
CN
China
Prior art keywords
virtual machine
data
target
target virtual
text
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
CN202311760604.1A
Other languages
Chinese (zh)
Other versions
CN117707704A (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.)
China Standard Intelligent Security Technology Co Ltd
Original Assignee
China Standard Intelligent Security 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 China Standard Intelligent Security Technology Co Ltd filed Critical China Standard Intelligent Security Technology Co Ltd
Priority to CN202311760604.1A priority Critical patent/CN117707704B/en
Publication of CN117707704A publication Critical patent/CN117707704A/en
Application granted granted Critical
Publication of CN117707704B publication Critical patent/CN117707704B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 OR CALCULATING; 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
    • G06F9/4451User profiles; Roaming
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/45562Creating, deleting, cloning virtual machine instances
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Devices For Executing Special Programs (AREA)

Abstract

本发明提供了一种Java虚拟机配置方法及系统,其中,所述方法包括:获取虚拟机的环境描述文本,并生成所述环境描述文本对应的虚拟机配置文件;识别当前的操作系统,并按照所述虚拟机配置文件,生成与所述操作系统的类型相匹配的目标虚拟机;为所述目标虚拟机配置内存参数,并在接收到指向所述目标虚拟机的启动请求时,判断当前系统的空闲内存是否满足所述内存参数;若所述当前系统的空闲内存满足所述内存参数,启动所述目标虚拟机。本发明提供的技术方案,能够便捷地生成虚拟机。

The present invention provides a Java virtual machine configuration method and system, wherein the method includes: obtaining a virtual machine environment description text, and generating a virtual machine configuration file corresponding to the environment description text; identifying the current operating system, and generating a target virtual machine matching the type of the operating system according to the virtual machine configuration file; configuring memory parameters for the target virtual machine, and upon receiving a start request directed to the target virtual machine, determining whether the free memory of the current system meets the memory parameters; and if the free memory of the current system meets the memory parameters, starting the target virtual machine. The technical solution provided by the present invention can generate a virtual machine conveniently.

Description

Java virtual machine configuration method and system
Technical Field
The invention relates to the technical field of computers, in particular to a Java virtual machine configuration method and system.
Background
Currently, when configuring virtual machines in a computer, it is often necessary to prepare different configuration files in advance for different virtual machines. However, in many application scenarios, a person configuring a virtual machine does not have specialized virtual machine knowledge, so that an accurate configuration file cannot be provided, and thus, a configuration process of the virtual machine cannot be independently completed.
In view of this, there is a need for a simpler virtual machine configuration method.
Disclosure of Invention
The invention provides a Java virtual machine configuration method and a Java virtual machine configuration system, which can conveniently configure a virtual machine.
In view of this, an aspect of the present invention provides a Java virtual machine configuration method, the method including:
acquiring an environment description text of a virtual machine, and generating a virtual machine configuration file corresponding to the environment description text;
identifying a current operating system, and generating a target virtual machine matched with the type of the operating system according to the virtual machine configuration file;
Configuring memory parameters for the target virtual machine, and judging whether the idle memory of the current system meets the memory parameters when receiving a starting request pointing to the target virtual machine;
and if the idle memory of the current system meets the memory parameters, starting the target virtual machine.
In one embodiment, generating a target virtual machine that matches the type of the operating system includes:
generating a target virtual machine by using a Docker and KVM based virtualization technology aiming at a Windows operating system;
and generating a target virtual machine by using a Docker Stream technology aiming at the Linux operating system.
In one embodiment, generating the virtual machine configuration file corresponding to the environment description text includes:
Extracting text features corresponding to the environment description text, and generating configuration index information by taking the text features as priori conditions;
and fusing the configuration index information with the text features, and generating a virtual machine configuration file based on the fused feature data.
In one embodiment, generating configuration index information using the text feature as a priori condition includes:
acquiring an index coding table after training, and identifying a target index code with highest similarity with the text characteristics in the index coding table;
taking the target index code as an initial code of index information, and predicting a subsequent code after the initial code under the condition that the text characteristic is taken as a priori condition;
and continuously predicting undetermined subsequent codes based on the currently determined initial codes and the subsequent codes until complete coded data is generated, and taking the complete coded data as generated configuration index information.
In one embodiment, after starting the target virtual machine, the method further comprises:
After receiving an update instruction, sending a call request to a monitor of the target virtual machine, so that the monitor configures a target storage space for the target virtual machine;
and if the target storage space is configured, loading an updating program corresponding to the updating instruction into the target storage space, and updating the target virtual machine by utilizing the updating program.
The invention also provides a Java virtual machine configuration system, which comprises:
The configuration file generation unit is used for acquiring an environment description text of the virtual machine and generating a virtual machine configuration file corresponding to the environment description text;
The virtual machine generating unit is used for identifying the current operating system and generating a target virtual machine matched with the type of the operating system according to the virtual machine configuration file;
the judging unit is used for configuring memory parameters for the target virtual machine and judging whether the idle memory of the current system meets the memory parameters or not when receiving a starting request pointing to the target virtual machine;
And the starting unit is used for starting the target virtual machine if the idle memory of the current system meets the memory parameters.
In one embodiment, the virtual machine generating unit is specifically configured to generate, for a Windows operating system, a target virtual machine using a virtualization technology based on Docker and KVM; and generating a target virtual machine by using a Docker Stream technology aiming at the Linux operating system.
In one embodiment, the configuration file generating unit is specifically configured to extract a text feature corresponding to the environment description text, and generate configuration index information by using the text feature as a priori condition; and fusing the configuration index information with the text features, and generating a virtual machine configuration file based on the fused feature data.
In one embodiment, the configuration file generating unit is specifically further configured to obtain an index code table after training is completed, and identify a target index code with highest similarity to the text feature in the index code table; taking the target index code as an initial code of index information, and predicting a subsequent code after the initial code under the condition that the text characteristic is taken as a priori condition; and continuously predicting undetermined subsequent codes based on the currently determined initial codes and the subsequent codes until complete coded data is generated, and taking the complete coded data as generated configuration index information.
In one embodiment, the system further comprises:
The updating unit is used for sending a call request to a monitor of the target virtual machine after receiving an updating instruction so that the monitor configures a target storage space for the target virtual machine; and if the target storage space is configured, loading an updating program corresponding to the updating instruction into the target storage space, and updating the target virtual machine by utilizing the updating program.
According to the technical scheme provided by the invention, the corresponding virtual machine configuration file can be automatically generated based on the environment description text conforming to the natural language rule. In this way, the generation of the configuration file can be completed without having specialized virtual machine knowledge. Subsequently, for the generated virtual machine configuration file, a corresponding target virtual machine can be generated in different operating systems. In order to ensure that the target virtual machine can be started normally, the memory parameters can be verified in advance, and the target virtual machine can be started after the verification is passed. Obviously, the virtual machine configuration method greatly reduces the threshold of virtual machine configuration, thereby improving the efficiency of virtual machine configuration.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims thereof as well as the appended drawings.
The technical scheme of the invention is further described in detail through the drawings and the embodiments.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate the invention and together with the embodiments of the invention, serve to explain the invention. In the drawings:
FIG. 1 is a schematic diagram illustrating steps of a configuration method of a Java virtual machine according to an embodiment of the present invention;
Fig. 2 is a schematic diagram of a functional module of a Java virtual machine configuration system according to an embodiment of the present invention.
Detailed Description
The preferred embodiments of the present invention will be described below with reference to the accompanying drawings, it being understood that the preferred embodiments described herein are for illustration and explanation of the present invention only, and are not intended to limit the present invention.
Referring to fig. 1, one embodiment of the present application provides a Java virtual machine configuration method, which includes:
S1: acquiring an environment description text of a virtual machine, and generating a virtual machine configuration file corresponding to the environment description text;
s2: identifying a current operating system, and generating a target virtual machine matched with the type of the operating system according to the virtual machine configuration file;
S3: configuring memory parameters for the target virtual machine, and judging whether the idle memory of the current system meets the memory parameters when receiving a starting request pointing to the target virtual machine;
s4: and if the idle memory of the current system meets the memory parameters, starting the target virtual machine.
In one embodiment, generating a target virtual machine that matches the type of the operating system includes:
generating a target virtual machine by using a Docker and KVM based virtualization technology aiming at a Windows operating system;
and generating a target virtual machine by using a Docker Stream technology aiming at the Linux operating system.
In one embodiment, generating the virtual machine configuration file corresponding to the environment description text includes:
Extracting text features corresponding to the environment description text, and generating configuration index information by taking the text features as priori conditions;
and fusing the configuration index information with the text features, and generating a virtual machine configuration file based on the fused feature data.
In this embodiment, a transformer architecture may be used to process the environment description text to derive the virtual machine configuration file. The environment description text may be text conforming to a natural language rule, for example, may be a sentence provided by a user for describing a virtual machine. By identifying the environment description text, the characteristics required by the virtual machine to be created can be clarified, and the target virtual machine can be accurately created based on the characteristics.
The transducer architecture can provide a text sample and a configuration file matched with the text sample in the training process. In a transducer architecture, an initial index encoding table may be provided that characterizes the mapping between text features and index encodings. In the initial stage of training, the mapping relationship is often inaccurate, and the mapping relationship can be gradually corrected in the training process of the configuration file and the text sample, so that index codes in the index code table can correspond to text features. Wherein the index code may be part of the configuration index information. Each index code is predicted one by one according to the sequence, and the index codes can be formed into configuration index information.
In one embodiment, generating configuration index information using the text feature as a priori condition includes:
acquiring an index coding table after training, and identifying a target index code with highest similarity with the text characteristics in the index coding table;
taking the target index code as an initial code of index information, and predicting a subsequent code after the initial code under the condition that the text characteristic is taken as a priori condition;
and continuously predicting undetermined subsequent codes based on the currently determined initial codes and the subsequent codes until complete coded data is generated, and taking the complete coded data as generated configuration index information.
For example, the initial code predicted from the text feature may be a, for example, and then the text feature+a may be used as input data, so as to predict a subsequent code B after a; the text feature +a+b may then be taken as input data, continuing with the subsequent encoding C after prediction B, and so on, until the last encoding is predicted. Finally, each predicted code can be spliced, so that complete configuration index information is obtained.
After the configuration index information and the text features are fused, the features of the virtual machine to be created can be more accurately represented, and based on the fused feature data, a neural network model which is trained can be adopted to generate a corresponding virtual machine configuration file.
In one embodiment, after starting the target virtual machine, the method further comprises:
After receiving an update instruction, sending a call request to a monitor of the target virtual machine, so that the monitor configures a target storage space for the target virtual machine;
and if the target storage space is configured, loading an updating program corresponding to the updating instruction into the target storage space, and updating the target virtual machine by utilizing the updating program.
Updating the target virtual machine with the update program includes:
Step A1: before loading the update program corresponding to the update instruction into the target storage space, performing data decomposition on the update program corresponding to the update instruction, and performing data decomposition on the update program corresponding to the update instruction by using formula (1) to decompose the update program into a plurality of sub-program data
Wherein Z 16- a represents the 16-ary form of the broken-down a-th subroutine data; k 16 represents a 16-ary form of the update program corresponding to the update instruction; n represents the maximum number of data bits of the decomposed subroutine data; a represents an integer variable; len (), len [ ] each represent the total number of bits of the data in brackets; Representing a downward rounding; k 16 [ a×n+1 ] → (a+1) ×n ] represents 16-ary data on the a×n+1-th bit to (a+1) ×n-th bit of the data K 16; k 16[a×n+1→len(K16) ] represents 16-ary data on the a×n+1 th bit to the len (K 16) th bit of data K 16;
Step A2: performing data calibration on the plurality of subprogram data according to the positions of the plurality of subprogram data in the update program by using a formula (2)
Wherein B 16- a represents 16-ary form data after data calibration of the first sub-program data; () 16 denotes converting the value in brackets into a 16-ary number; Representing an upward rounding; representing a left shift;
loading the subroutine data into the target storage space in parallel;
Step A3: after the target storage space receives a plurality of data, carrying out data combination on the data according to the calibration data on each data by using a formula (3)
Wherein a_i represents the number of merging positions of the ith data received by the target storage space; b 16- i represents the 16 th form of the i-th data received by the target storage space;
the received data is first right shifted And then merging the bits according to the corresponding merging position number, thereby obtaining the original updating program corresponding to the updating instruction.
The beneficial effects of the technical scheme are as follows: utilizing the formula (1) in the step A1 to decompose the data of the update program corresponding to the update instruction into a plurality of subprogram data, thereby transmitting the data in parallel and improving the data transmission efficiency; and then carrying out data calibration on the plurality of subprogram data according to the positions of the plurality of subprogram data in the updating program by utilizing the formula (2) in the step A2, thereby ensuring the reliability of data merging after data transmission; and then, after receiving a plurality of data by utilizing the formula (3) in the step A3, carrying out data combination on the data by utilizing the formula (3) according to the calibration data on each data, thereby completely restoring the original data and ensuring the accuracy of the data.
Referring to fig. 2, the present invention further provides a Java virtual machine configuration system, which includes:
The configuration file generation unit is used for acquiring an environment description text of the virtual machine and generating a virtual machine configuration file corresponding to the environment description text;
The virtual machine generating unit is used for identifying the current operating system and generating a target virtual machine matched with the type of the operating system according to the virtual machine configuration file;
the judging unit is used for configuring memory parameters for the target virtual machine and judging whether the idle memory of the current system meets the memory parameters or not when receiving a starting request pointing to the target virtual machine;
And the starting unit is used for starting the target virtual machine if the idle memory of the current system meets the memory parameters.
In one embodiment, the virtual machine generating unit is specifically configured to generate, for a Windows operating system, a target virtual machine using a virtualization technology based on Docker and KVM; and generating a target virtual machine by using a Docker Stream technology aiming at the Linux operating system.
In one embodiment, the configuration file generating unit is specifically configured to extract a text feature corresponding to the environment description text, and generate configuration index information by using the text feature as a priori condition; and fusing the configuration index information with the text features, and generating a virtual machine configuration file based on the fused feature data.
In one embodiment, the configuration file generating unit is specifically further configured to obtain an index code table after training is completed, and identify a target index code with highest similarity to the text feature in the index code table; taking the target index code as an initial code of index information, and predicting a subsequent code after the initial code under the condition that the text characteristic is taken as a priori condition; and continuously predicting undetermined subsequent codes based on the currently determined initial codes and the subsequent codes until complete coded data is generated, and taking the complete coded data as generated configuration index information.
In one embodiment, the system further comprises:
The updating unit is used for sending a call request to a monitor of the target virtual machine after receiving an updating instruction so that the monitor configures a target storage space for the target virtual machine; and if the target storage space is configured, loading an updating program corresponding to the updating instruction into the target storage space, and updating the target virtual machine by utilizing the updating program.
According to the technical scheme provided by the invention, the corresponding virtual machine configuration file can be automatically generated based on the environment description text conforming to the natural language rule. In this way, the generation of the configuration file can be completed without having specialized virtual machine knowledge. Subsequently, for the generated virtual machine configuration file, a corresponding target virtual machine can be generated in different operating systems. In order to ensure that the target virtual machine can be started normally, the memory parameters can be verified in advance, and the target virtual machine can be started after the verification is passed. Obviously, the virtual machine configuration method greatly reduces the threshold of virtual machine configuration, thereby improving the efficiency of virtual machine configuration.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (8)

1.一种Java虚拟机配置方法,其特征在于,所述方法包括:1. A Java virtual machine configuration method, characterized in that the method comprises: 获取虚拟机的环境描述文本,并生成所述环境描述文本对应的虚拟机配置文件;Obtaining an environment description text of the virtual machine, and generating a virtual machine configuration file corresponding to the environment description text; 识别当前的操作系统,并按照所述虚拟机配置文件,生成与所述操作系统的类型相匹配的目标虚拟机;Identify the current operating system and generate a target virtual machine matching the type of the operating system according to the virtual machine configuration file; 为所述目标虚拟机配置内存参数,并在接收到指向所述目标虚拟机的启动请求时,判断当前系统的空闲内存是否满足所述内存参数;configuring memory parameters for the target virtual machine, and upon receiving a start request directed to the target virtual machine, determining whether the free memory of the current system satisfies the memory parameters; 若所述当前系统的空闲内存满足所述内存参数,启动所述目标虚拟机;If the free memory of the current system meets the memory parameter, starting the target virtual machine; 生成所述环境描述文本对应的虚拟机配置文件包括:Generating a virtual machine configuration file corresponding to the environment description text includes: 提取所述环境描述文本对应的文本特征,并将所述文本特征作为先验条件,生成配置索引信息;Extracting text features corresponding to the environment description text, and using the text features as a priori conditions to generate configuration index information; 将所述配置索引信息与所述文本特征进行融合,并基于融合后的特征数据生成虚拟机配置文件。The configuration index information is fused with the text feature, and a virtual machine configuration file is generated based on the fused feature data. 2.根据权利要求1所述的方法,其特征在于,生成与所述操作系统的类型相匹配的目标虚拟机包括:2. The method according to claim 1, wherein generating a target virtual machine matching the type of the operating system comprises: 针对Windows操作系统,使用基于Docker和KVM的虚拟化技术生成目标虚拟机;For Windows operating system, use Docker and KVM-based virtualization technology to generate target virtual machines; 针对Linux操作系统,使用Docker Stream技术生成目标虚拟机。For the Linux operating system, use Docker Stream technology to generate a target virtual machine. 3.根据权利要求1所述的方法,其特征在于,将所述文本特征作为先验条件,生成配置索引信息包括:3. The method according to claim 1, wherein taking the text feature as a priori condition and generating configuration index information comprises: 获取完成训练的索引编码表,并在所述索引编码表中识别与所述文本特征的相似度最高的目标索引编码;Obtaining a trained index coding table, and identifying a target index coding having the highest similarity to the text feature in the index coding table; 将所述目标索引编码作为索引信息的初始编码,并在所述文本特征作为先验条件的情况下,预测位于所述初始编码之后的后续编码;Using the target index code as the initial code of the index information, and predicting the subsequent code after the initial code with the text feature as a priori condition; 基于当前已确定的初始编码和后续编码,继续预测未确定的后续编码,直至生成完整的编码数据,并将所述完整的编码数据作为生成的配置索引信息。Based on the currently determined initial encoding and subsequent encoding, continue to predict the undetermined subsequent encoding until complete encoding data is generated, and use the complete encoding data as the generated configuration index information. 4.根据权利要求1所述的方法,其特征在于,在启动所述目标虚拟机之后,所述方法还包括:4. The method according to claim 1, characterized in that after starting the target virtual machine, the method further comprises: 在接收到更新指令后,向所述目标虚拟机的监视器发送调用请求,以使得所述监视器为所述目标虚拟机配置目标存储空间;After receiving the update instruction, sending a call request to the monitor of the target virtual machine so that the monitor configures a target storage space for the target virtual machine; 若所述目标存储空间被配置完成,将所述更新指令对应的更新程序加载至所述目标存储空间中,并利用所述更新程序对所述目标虚拟机进行更新。If the target storage space is configured, the update program corresponding to the update instruction is loaded into the target storage space, and the target virtual machine is updated using the update program. 5.根据权利要求4所述的方法,其特征在于,利用所述更新程序对所述目标虚拟机进行更新包括:5. The method according to claim 4, wherein updating the target virtual machine using the update program comprises: 步骤A1:将所述更新指令对应的更新程序加载至所述目标存储空间前会将所述更新指令对应的更新程序进行数据分解,利用公式(1)将所述更新指令对应的更新程序进行数据分解,分解成多个子程序数据Step A1: Before loading the update program corresponding to the update instruction into the target storage space, the update program corresponding to the update instruction is decomposed into data. Formula (1) is used to decompose the update program corresponding to the update instruction into multiple subprogram data. 其中Z16_a表示分解成的第a个子程序数据的16进制形式;K16表示所述更新指令对应的更新程序的16进制形式;n表示分解成的子程序数据的最大数据位数;a表示整数变量;len()均表示求取括号内数据总位数;表示向下取整;K16[a×n+1→(a+1)×n]表示数据K16的第a×n+1位至第(a+1)×n位上的16进制数据;K16[a×n+1→len(K16)]表示数据K16的第a×n+1位至第len(K16)位上的16进制数据;Wherein Z 16 _a represents the hexadecimal form of the ath subroutine data decomposed; K 16 represents the hexadecimal form of the update program corresponding to the update instruction; n represents the maximum number of bits of the decomposed subroutine data; a represents an integer variable; len() represents the total number of bits of the data in the brackets; Indicates rounding down; K 16 [a×n+1→(a+1)×n] indicates the hexadecimal data from the a×n+1th to the (a+1)×nth positions of the data K 16 ; K 16 [a×n+1→len(K 16 )] indicates the hexadecimal data from the a×n+1th to the len(K 16 )th positions of the data K 16 ; 步骤A2:利用公式(2)按照多个子程序数据在更新程序中的位置对多个子程序数据进行数据标定Step A2: Using formula (2), calibrate the data of the multiple subprograms according to their positions in the update program. 其中B16_a表示对第个子程序数据进行数据标定后的16进制形式数据;()16表示将括号内的数值转换为16进制数;表示向上取整;<<表示左移;Wherein B 16 _a represents the hexadecimal data after the data calibration of the th subroutine data; () 16 represents converting the value in the brackets into a hexadecimal number; Indicates rounding up; << indicates left shift; 将所述子程序数据进行并行加载至所述目标存储空间中;Loading the subroutine data into the target storage space in parallel; 步骤A3:所述目标存储空间接收到多个数据后利用公式(3)根据每个数据上的标定数据对数据进行数据合并Step A3: After receiving multiple data, the target storage space uses formula (3) to merge the data according to the calibration data on each data. 其中A_i表示所述目标存储空间接收到的第i个数据的合并位置数;b16_i表示所述目标存储空间接收到的第i个数据的16进制形式;Wherein A_i represents the number of merged positions of the i-th data received by the target storage space; b 16 _i represents the hexadecimal form of the i-th data received by the target storage space; 所述接收到的数据首先进行右移位然后再按照对应的合并位置数进行合并,进而得到原始的所述更新指令对应的更新程序。The received data is first right-shifted The bits are then merged according to the corresponding number of merge positions to obtain the update program corresponding to the original update instruction. 6.一种Java虚拟机配置系统,其特征在于,所述系统包括:6. A Java virtual machine configuration system, characterized in that the system comprises: 配置文件生成单元,用于获取虚拟机的环境描述文本,并生成所述环境描述文本对应的虚拟机配置文件;A configuration file generating unit, used to obtain an environment description text of a virtual machine and generate a virtual machine configuration file corresponding to the environment description text; 虚拟机生成单元,用于识别当前的操作系统,并按照所述虚拟机配置文件,生成与所述操作系统的类型相匹配的目标虚拟机;A virtual machine generation unit, used to identify the current operating system and generate a target virtual machine matching the type of the operating system according to the virtual machine configuration file; 判断单元,用于为所述目标虚拟机配置内存参数,并在接收到指向所述目标虚拟机的启动请求时,判断当前系统的空闲内存是否满足所述内存参数;A determination unit, configured to configure memory parameters for the target virtual machine, and upon receiving a start request directed to the target virtual machine, determine whether the free memory of the current system satisfies the memory parameters; 启动单元,用于若所述当前系统的空闲内存满足所述内存参数,启动所述目标虚拟机;A starting unit, configured to start the target virtual machine if the free memory of the current system satisfies the memory parameter; 其中,所述配置文件生成单元具体用于,提取所述环境描述文本对应的文本特征,并将所述文本特征作为先验条件,生成配置索引信息;将所述配置索引信息与所述文本特征进行融合,并基于融合后的特征数据生成虚拟机配置文件。The configuration file generation unit is specifically used to extract text features corresponding to the environment description text, and use the text features as a priori conditions to generate configuration index information; fuse the configuration index information with the text features, and generate a virtual machine configuration file based on the fused feature data. 7.根据权利要求6所述的系统,其特征在于,所述虚拟机生成单元具体用于,针对Windows操作系统,使用基于Docker和KVM的虚拟化技术生成目标虚拟机;针对Linux操作系统,使用Docker Stream技术生成目标虚拟机。7. The system according to claim 6 is characterized in that the virtual machine generation unit is specifically used to generate a target virtual machine using a virtualization technology based on Docker and KVM for a Windows operating system; and to generate a target virtual machine using Docker Stream technology for a Linux operating system. 8.根据权利要求6所述的系统,其特征在于,所述配置文件生成单元具体还用于,获取完成训练的索引编码表,并在所述索引编码表中识别与所述文本特征的相似度最高的目标索引编码;将所述目标索引编码作为索引信息的初始编码,并在所述文本特征作为先验条件的情况下,预测位于所述初始编码之后的后续编码;基于当前已确定的初始编码和后续编码,继续预测未确定的后续编码,直至生成完整的编码数据,并将所述完整的编码数据作为生成的配置索引信息。8. The system according to claim 6 is characterized in that the configuration file generation unit is specifically used to obtain a trained index coding table, and identify a target index coding with the highest similarity to the text feature in the index coding table; use the target index coding as the initial coding of the index information, and predict the subsequent coding after the initial coding with the text feature as a priori condition; based on the currently determined initial coding and subsequent coding, continue to predict the undetermined subsequent coding until complete coding data is generated, and use the complete coding data as the generated configuration index information.
CN202311760604.1A 2023-12-20 2023-12-20 Java virtual machine configuration method and system Active CN117707704B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311760604.1A CN117707704B (en) 2023-12-20 2023-12-20 Java virtual machine configuration method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311760604.1A CN117707704B (en) 2023-12-20 2023-12-20 Java virtual machine configuration method and system

Publications (2)

Publication Number Publication Date
CN117707704A CN117707704A (en) 2024-03-15
CN117707704B true CN117707704B (en) 2024-08-06

Family

ID=90158615

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311760604.1A Active CN117707704B (en) 2023-12-20 2023-12-20 Java virtual machine configuration method and system

Country Status (1)

Country Link
CN (1) CN117707704B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843670A (en) * 2016-03-22 2016-08-10 浙江大学 Cloud platform based virtual cluster deployment and integration method
CN107729117A (en) * 2016-08-10 2018-02-23 中国移动通信集团重庆有限公司 A kind of virtual machine generation method and system
CN110941440A (en) * 2019-10-31 2020-03-31 北京浪潮数据技术有限公司 Batch updating method, device and equipment for virtual machines and readable storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8370835B2 (en) * 2009-03-12 2013-02-05 Arend Erich Dittmer Method for dynamically generating a configuration for a virtual machine with a virtual hard disk in an external storage device
CN103064723B (en) * 2011-10-18 2016-01-20 财团法人工业技术研究院 Method and computer system for identifying virtual machine memory
CN108984268A (en) * 2018-07-13 2018-12-11 郑州云海信息技术有限公司 The method and apparatus of Container Management in Docker system
CN112463296B (en) * 2020-11-25 2022-06-03 苏州浪潮智能科技有限公司 Method and device for creating virtual machine
CN113791873B (en) * 2021-11-16 2022-12-30 统信软件技术有限公司 Virtual machine creating method, computing device and storage medium
CN116107690B (en) * 2022-12-13 2025-04-18 超聚变数字技术有限公司 Virtual machine memory management method and computing device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843670A (en) * 2016-03-22 2016-08-10 浙江大学 Cloud platform based virtual cluster deployment and integration method
CN107729117A (en) * 2016-08-10 2018-02-23 中国移动通信集团重庆有限公司 A kind of virtual machine generation method and system
CN110941440A (en) * 2019-10-31 2020-03-31 北京浪潮数据技术有限公司 Batch updating method, device and equipment for virtual machines and readable storage medium

Also Published As

Publication number Publication date
CN117707704A (en) 2024-03-15

Similar Documents

Publication Publication Date Title
CN111814466B (en) Information extraction method based on machine reading understanding and related equipment thereof
CN113642316B (en) Chinese text error correction method and device, electronic equipment and storage medium
Ron et al. The power of amnesia: Learning probabilistic automata with variable memory length
CN111310436B (en) Text processing method and device based on artificial intelligence and electronic equipment
CN112860919B (en) Data labeling method, device, equipment and storage medium based on generation model
CN111310440B (en) Text error correction method, device and system
CN113961768B (en) Sensitive word detection method and device, computer equipment and storage medium
CN113190675A (en) Text abstract generation method and device, computer equipment and storage medium
CN114842473A (en) Text recognition method and device, storage medium and electronic equipment
CN116166236A (en) Code recommendation method, device, computer equipment and storage medium
CN116484867A (en) Named entity recognition method and device, storage medium and computer equipment
CN115099359A (en) Address recognition method, device, device and storage medium based on artificial intelligence
CN117707704B (en) Java virtual machine configuration method and system
CN112395880B (en) Error correction method and device for structured triples, computer equipment and storage medium
WO2025111531A1 (en) Predicting a therapeutic response to a disease using a large language model
US12248758B2 (en) Generation device and normalization model
US20240419898A1 (en) Training data augmentation device
CN113076089A (en) API completion method based on object type
JP2019021037A (en) Source code evaluation device, source code evaluation method and source code evaluation program
US12293169B2 (en) Self-creating, self-improving, and self-simulating artificial intelligence
CN117348907A (en) Firmware upgrading method, device, equipment and storage medium of system bus
JP7536722B2 (en) Change measurement device, method and program
CN109710927B (en) Named entity identification method and device, readable storage medium and electronic equipment
CN115730567A (en) Method and device for generating data to text based on dynamic division and electronic equipment
CN113704561A (en) Data processing method, data processing device, computer equipment and storage medium

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
GR01 Patent grant