Check patentability & draft patents in minutes with Patsnap Eureka AI!

Method, system and equipment for non-intrusive dynamic editing of JVM parameters

A non-intrusive, editing technology, applied in code compilation, program control design, electronic digital data processing, etc., can solve problems such as tight coupling, long application delivery time, and inability to dynamically edit JavaJVM parameters.

Pending Publication Date: 2022-03-25
SICHUAN XW BANK CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In the existing technology, when a Java application is deployed in Kubernetes, it is impossible to dynamically edit the parameters of the JavaJVM flexibly. Every time the JVM parameter is modified, it is necessary to modify the application, start the script, and rebuild the image, resulting in long application delivery time and slow startup scripts. and the issue of tight coupling between commands and container images

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, system and equipment for non-intrusive dynamic editing of JVM parameters
  • Method, system and equipment for non-intrusive dynamic editing of JVM parameters
  • Method, system and equipment for non-intrusive dynamic editing of JVM parameters

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0024] Please refer to figure 1 , the embodiment of the present invention provides a non-intrusive method for dynamically editing JVM parameters, comprising the following steps:

[0025] S101. Add a first environment variable to the image file, and the container reads the above first environment variable;

[0026] Specifically, a first environment variable is defined in the image construction file, and the key of the first environment variable is "JAVA_OPTS", that is, a JVM parameter whose value is an empty string as a hook for subsequent steps. The image build file startup command uses " / bin / bash-c" to execute the Java command, and add $JAVA_OPTS after the Java command. The Java command will be executed when the container starts, and the first environment variable "JAVA_OPTS" will be read.

[0027] S102. In the Kubernetes orchestration file, add a second environment variable for the container configuration, and mark the second environment variable that needs to be dynamical...

Embodiment 2

[0035] Please refer to figure 2 , some embodiments of the present invention provide a system for non-intrusive dynamic editing of JVM parameters applied to Kubernetes, including: a first environment variable definition module 100: used to add the first environment variable in the image file, and the container reads the above-mentioned The first environment variable; the second environment variable configuration module 200: for adding a second environment variable for container configuration in the Kubernetes arrangement file, and marking the second environment variable that needs to be dynamically edited; editing module 300: for Edit the marked second environment variable through the Kubernetes admission controller mechanism; start module 400: after the editing is completed, start the container, so that the above-mentioned second environment variable covers the above-mentioned first environment variable.

[0036] Wherein, the second environment variable configuration module 2...

Embodiment 3

[0040] An embodiment of the present invention provides an electronic device, including: at least one processor 1, at least one memory 2, and a data bus 3; wherein, the processor 1 and the memory 2 communicate with each other through the data bus 3; the memory 2 store program instructions that can be executed by the above-mentioned processor 1, and the above-mentioned processor 1 invokes the above-mentioned program instructions to execute the method in the above-mentioned embodiment 1, for example, execute: S101, add the first environment variable to the image file, and the container reads The above-mentioned first environment variable; S102, in the Kubernetes orchestration file, add a second environment variable for the container configuration, and mark the second environment variable that needs to be dynamically edited; S103, use the Kubernetes admission controller mechanism to mark the The second environment variable is edited; S104, after the editing is completed, start the ...

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 relates to the technical field of container and software development, in particular to a method, a system and equipment for non-intrusive dynamic editing of JVM parameters. A method for dynamically editing JVM parameters in a non-intrusive mode comprises the following steps that a first environment variable is added into a mirror image file, and a container reads the first environment variable; in the arrangement file, a second environment variable is added for container configuration, and the second environment variable needing to be dynamically edited is marked; editing the second environment variable with the mark through an access controller mechanism; after editing is completed, the container is started, and the second environment variable covers the first environment variable; the first environment variable and the second environment variable are JVM parameters of the same type. According to the method provided by the invention, the problem that the JVM parameters cannot be flexibly and dynamically edited in the Kubernetes deployment process of the Java type application is solved, and the operation convenience of development, operation and maintenance personnel is improved.

Description

technical field [0001] The invention relates to the technical field of container and software development, in particular to a method, system and equipment for non-intrusive dynamic editing of JVM parameters. Background technique [0002] In the existing technology, when a Java application is deployed in Kubernetes, it is impossible to dynamically edit the parameters of the JavaJVM flexibly. Every time the JVM parameter is modified, it is necessary to modify the application, start the script, and rebuild the image, resulting in long application delivery time and slow startup scripts. and the issue of tight coupling between commands and container images. Contents of the invention [0003] In order to overcome the above problems, the object of the present invention is to provide a method, system and equipment for non-intrusive dynamic editing of JVM parameters, which can realize non-intrusive dynamic editing of JVM parameters without rebuilding the mirror image. [0004] The...

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
IPC IPC(8): G06F8/41G06F9/455
CPCG06F8/41G06F9/45558
Inventor 刘凯朱涵颖黄勇梁骏
Owner SICHUAN XW BANK CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More