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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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 ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com



