CN103645935A - Device and method for adjusting JVM (java virtual machine) parameters in domestic environment - Google Patents
Device and method for adjusting JVM (java virtual machine) parameters in domestic environment Download PDFInfo
- Publication number
- CN103645935A CN103645935A CN201310693467.4A CN201310693467A CN103645935A CN 103645935 A CN103645935 A CN 103645935A CN 201310693467 A CN201310693467 A CN 201310693467A CN 103645935 A CN103645935 A CN 103645935A
- Authority
- CN
- China
- Prior art keywords
- jvm
- information
- server
- initial
- configuration
- 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.)
- Granted
Links
Images
Abstract
The invention discloses a device and a method for adjusting JVM (java virtual machine) parameters in a domestic environment. The device comprises an acquisition module, a data analysis module, a comparison module and a parameter adjustment module, wherein the data analysis module analyzes hardware server information acquired by the acquisition module and obtains a configuration standard which should be up to by JVM parameter setting information when an application server can be normally started and a JVM can normally operate in the domestic environment; the comparison module compares acquired initial JVM configuration information with the configuration standard and judges whether the initial JVM configuration information is up to the configuration standard; and the parameter adjustment module adjusts corresponding parameter information configured by the JVM when the initial JVM configuration information is not up to the configuration standard, so that the initial JVM configuration information is up to the configuration standard. When the JVM configuration is not matched with the application server, the device can adjust JVM parameters, manual adjustment is not required, and time and labor are saved.
Description
Technical field
The invention belongs to virtual machine configuring technical field, relate in particular to JVM(Java Virtual Machine under a kind of domestic environment, Java Virtual Machine) parameter adjustment controls and method.
Background technology
Under domestic environment, in application server when operation, is often improper due to the configuration of the JVM of its use, and causes application server to start occurring in failure or operational process the JVM machine phenomenon of delaying.
Current, at the CPU(Central Processing Unit that soars, central processing unit), under the domestic environment such as kylin operating system or Godson platform, the JVM configuration of application server is all fixed, and it can not mate and adjust voluntarily because of the environmental aspects such as hardware of the application server with place.Therefore, when JVM configuration is not mated with the hardware server at its place, can only adopt manual type to adjust the relevant parameter information of JVM configuration, waste time and energy.
Summary of the invention
In view of this, the object of the present invention is to provide a kind of JVM parameter adjustment controls and method under domestic environment, above-mentioned owing to adopting manual type to adjust the problem wasting time and energy that JVM parameter is brought to overcome.
For this reason, the open following technical scheme of the present invention:
JVM parameter adjustment controls under domestic environment, comprise acquisition module, data analysis module, comparison module and parameter adjustment module, wherein:
Described acquisition module, for the hardware server information of acquisition applications server, and the initial JVM configuration information of acquisition applications server;
Described data analysis module, for described hardware server information is analyzed, draw when described application server under domestic environment can normally start and described JVM can normally move described in the parameter setting information of JVM should be satisfied configuration baseline;
Described comparison module, for initial JVM configuration information and the described configuration baseline of application server are compared, and judges whether described initial JVM configuration information meets described configuration baseline;
Described parameter adjustment module, for when the described initial JVM configuration information of judgment result is that of described judgement does not meet described configuration baseline, adjusts the JVM parameter setting of described application server, makes it meet described configuration baseline.
Preferably, described hardware server information comprises jdk information in hardware server system architecture information, server system memory size, server OS information and server.
Preferably, described JVM configuration information comprises initial memory value, maximum memory value, the maximal value of at every turn adjusting internal memory and the minimum value of JVM.
Preferably, described acquisition module specifically comprises the first collecting unit and the second collecting unit, wherein:
Described the first collecting unit, for hardware server system architecture information, server system memory size, server OS information and the server jdk information at acquisition applications server place;
Described the second collecting unit, the initial JVM configuration information for acquisition applications server, comprising: initial memory value, maximum memory value, the maximal value of at every turn adjusting internal memory and minimum value.
Preferably, described domestic environment comprises the CPU that soars, kylin operating system and Godson platform.
A JVM parameter regulation means under domestic environment, comprising:
The hardware server information of acquisition applications server, and the initial JVM configuration information of acquisition applications server;
Described hardware server information is analyzed, draw when described application server under domestic environment can normally start and described JVM can normally move described in the parameter setting information of JVM should be satisfied configuration baseline;
Initial JVM configuration information and the described configuration baseline of application server are compared, and judge whether described initial JVM configuration information meets described configuration baseline;
When the described initial JVM configuration information of judgment result is that of described judgement does not meet described configuration baseline, the JVM parameter setting of described application server is adjusted, make it meet described configuration baseline.
Preferably, the hardware server information of described acquisition applications server, and the initial JVM configuration information of acquisition applications server, comprising:
Jdk information in hardware server system architecture information, server system memory size, server OS information and the server at acquisition applications server place;
The initial JVM configuration information of acquisition applications server, comprising: initial memory value, maximum memory value, the maximal value of at every turn adjusting internal memory and minimum value.
In the JVM parameter adjustment controls that provide due to the embodiment of the present invention, data analysis module is analyzed by the hardware server information of application server that acquisition module is gathered, draw when application server under domestic environment can normally start and JVM can normally move described in the parameter setting information of JVM should be satisfied configuration baseline; Afterwards, comparison module compares initial JVM configuration information and this configuration baseline of acquisition module collection, judges whether initial JVM configuration information meets this configuration baseline; Finally, parameter adjustment module is not when initial JVM configuration information meets this configuration baseline, and the JVM parameter setting of application server adjusts accordingly, and makes it meet described configuration baseline.Visible, the modules that device of the present invention comprises by it has been realized when JVM configuration is not mated with the application server at its place, the object that JVM configuration information is adjusted accordingly, without the artificial parameter information of adjusting JVM configuration, overcome existing owing to adopting manual type to adjust the problem wasting time and energy that JVM parameter causes.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the structural representation of JVM parameter adjustment controls under the domestic environment that provides of the embodiment of the present invention one;
Fig. 2 is the course of work process flow diagram of the data analysis module that provides of the embodiment of the present invention one;
Fig. 3 is JVM parameter regulation means process flow diagram under the domestic environment that provides of the embodiment of the present invention three.
Embodiment
For quote and know for the purpose of, the technical term hereinafter using, write a Chinese character in simplified form or abridge to sum up and be explained as follows:
JVM: be Java Virtual Machine(Java virtual machine) abbreviation, JVM is a kind of standard for computing equipment, it is a computing machine of fabricating out, is to realize by the various computer functions of analogue simulation on actual computing machine.Java Virtual Machine comprises a set of byte code instruction collection, one group of register, a stack, a garbage reclamation heap and a storage means territory.JVM has shielded the information relevant to specific operating system platform, and the object code (bytecode) that java applet only need be created on move on Java Virtual Machine just can not add modification and moves in kinds of platform, and JVM is that the operation of JEE application server relies on.
JVM internal memory: the amount of memory of distributing to JVM.
Domestic environment: the CPU that soars, kylin operating system and Godson platform.
The JVM machine of delaying: because the unstable java program of internal memory is closed by force.
For making object, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The present invention discloses a kind of JVM parameter adjustment controls and method under domestic environment, while being applicable under domestic environment that application server does not mate with the configuration of the JVM of its use, parameter setting to JVM adjusts accordingly, and below will to apparatus and method of the present invention, be elaborated by each embodiment.
Embodiment mono-
The embodiment of the present invention one discloses JVM parameter adjustment controls under a kind of domestic environment, refers to Fig. 1, and this device comprises acquisition module 100, data analysis module 200, comparison module 300 and parameter adjustment module 400.
Wherein, acquisition module 100 comprises the first collecting unit and the second collecting unit.The first collecting unit, for hardware server system architecture information, server system memory size, server OS information and the server jdk information at acquisition applications server place; The second collecting unit, for initial memory value, maximum memory value, the maximal value of adjusting internal memory and the minimum value of the initial JVM configuration information of acquisition applications server at every turn.
Particularly, the hardware server system architecture information at acquisition module 100 acquisition applications server places, acquisition system memory size, such as Installed System Memory is 16G or 8G, acquisition operations system information, obtain the title of operating system, such as operating system specifically get the bid kylin operating system or kylin operating system, operating system is 32 or 64, and collection jdk(Java Development Kit) information, for example, gather jdk version number, and it is 32 or 64, that which manufacturer provides, jdk providing as Godson etc. information.
Wherein, the hardware server information of the application servers such as the system architecture that this module gathers based on acquisition module 100, Installed System Memory, operation system information, jdk information, obtain the configuration baseline of JVM parameter, the reference frame that this configuration baseline arranges as JVM parameter, particularly, refer to Fig. 2, the course of work of this module is as follows:
S201: analytic system Schema information, and judge that whether current application server is the domestic system architectures such as CPU or Godson platform or kylin operating system of soaring, and if the determination result is YES, performs step S202; Otherwise, if the determination result is NO, finish.
S202: according to the Installed System Memory of application server, initial analysis is also calculated the assignable maximum memory value size of JVM.
Wherein, the assignable maximum memory value of JVM is no more than 80% of Installed System Memory.
S203: according to the operation system information gathering, the version of analysis operation system, and analyze and should be the memory size that the operating system of this version reserves, and then integrating step S202 finally determines the assignable maximum memory value of JVM.
S204: judge whether to have installed jdk, if the determination result is YES, perform step S205; Otherwise, if the determination result is NO, finish.
S205: according to jdk version, the minimum value of the internal memory that analysis JVM should distribute.
S206: according to the assignable maximum memory value of JVM, and JVM answers the minimum value of storage allocation, determines the reference range of the initial memory value of JVM.
It should be noted that, in the present embodiment, the initial memory value of JVM is the memory size of the current configuration of JVM.
This module compares the initial memory value of the JVM of collection and said reference scope, judges that it is whether in this reference range, and the maximum memory value of the JVM of collection and the assignable maximum memory value of JVM calculating are compared.
In the time of in the reference range that this parameter adjustment module 400 is not calculating at the initial memory value that judgment result is that JVM of comparison module 300, the initial memory value of JVM is adjusted in this reference range; The maximum memory value of JVM is adjusted into the assignable maximum memory value of the JVM calculating simultaneously, and according to the initial memory value of JVM and the maximum memory value adjusted, determines, arrange maximal value and the minimum value of each adjustment internal memory.
In sum, in the device providing due to the embodiment of the present invention, data analysis module 200 is analyzed by the hardware server information of application server that acquisition module 100 is gathered, draw when application server under domestic environment can normally start and JVM can normally move described in the parameter setting information of JVM should be satisfied configuration baseline; Afterwards, comparison module 300 compares initial JVM configuration information and this configuration baseline of acquisition module collection, judges whether initial JVM configuration information meets this configuration baseline; Finally, parameter adjustment module 400 is not when initial JVM configuration information meets this configuration baseline, and the JVM parameter setting of application server adjusts accordingly, and makes it meet described configuration baseline.Visible, the modules that device of the present invention comprises by it has been realized when JVM configuration is not mated with the application server at its place, the object that JVM configuration information is adjusted accordingly, avoided application server to start the delay generation of machine phenomenon of JVM in failure or operational process, without the artificial parameter information of adjusting JVM configuration, overcome existing owing to adopting manual type to adjust the problem wasting time and energy that JVM parameter causes.
Embodiment bis-
The embodiment of the present invention two discloses JVM parameter regulation means under a kind of domestic environment, refers to Fig. 3, and the method comprises:
S301: the hardware server information of acquisition applications server, and the initial JVM configuration information of acquisition applications server.
Wherein, this step S301 specifically comprises: jdk information in hardware server system architecture information, server system memory size, server OS information and the server at acquisition applications server place; The initial JVM configuration information of acquisition applications server, comprising: initial memory value, maximum memory value, the maximal value of at every turn adjusting internal memory and minimum value.
S302: described hardware server information is analyzed, draw when described application server under domestic environment can normally start and described JVM can normally move described in the parameter setting information of JVM should be satisfied configuration baseline;
S303: initial JVM configuration information and the described configuration baseline of application server are compared, and judge whether described initial JVM configuration information meets described configuration baseline.
S304: when the described initial JVM configuration information of judgment result is that of described judgement does not meet described configuration baseline, the JVM parameter setting of described application server is adjusted, made it meet described configuration baseline.
For JVM parameter regulation means under the disclosed domestic environment of the embodiment of the present invention two, because it is corresponding with JVM parameter adjustment controls under the disclosed domestic environment of above embodiment mono-, so that describes is fairly simple, relevant similarity refers to the explanation of device part in embodiment mono-, no longer describes in detail herein.
In sum, the modules that the present invention comprises by it has been realized when application server does not mate with the JVM of its use, the object that JVM relevant parameter is adjusted, in actual applications, only need to start device of the present invention, apparatus of the present invention complete the process of collection, analysis, comparison and JVM parameter adjustment in succession afterwards, have avoided application server to start the delay generation of machine phenomenon of failure or JVM, whole process is without artificial participation, time saving and energy saving.
It should be noted that, each embodiment in this instructions all adopts the mode of going forward one by one to describe, and each embodiment stresses is the difference with other embodiment, between each embodiment identical similar part mutually referring to.
While for convenience of description, describing above device, system, with function, be divided into various modules or unit is described respectively.Certainly, when implementing the application, the function of each module or unit can be realized in same or a plurality of software and/or hardware.
As seen through the above description of the embodiments, those skilled in the art can be well understood to the mode that the application can add essential general hardware platform by software and realizes.Understanding based on such, the part that the application's technical scheme contributes to prior art in essence in other words can embody with the form of software product, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are with so that a computer equipment (can be personal computer, server, or the network equipment etc.) carry out the method described in some part of each embodiment of the application or embodiment.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.
Claims (7)
1. JVM parameter adjustment controls under domestic environment, is characterized in that, comprise acquisition module, data analysis module, comparison module and parameter adjustment module, wherein:
Described acquisition module, for the hardware server information of acquisition applications server, and the initial JVM configuration information of acquisition applications server;
Described data analysis module, for described hardware server information is analyzed, draw when described application server under domestic environment can normally start and described JVM can normally move described in the parameter setting information of JVM should be satisfied configuration baseline;
Described comparison module, for initial JVM configuration information and the described configuration baseline of application server are compared, and judges whether described initial JVM configuration information meets described configuration baseline;
Described parameter adjustment module, for when the described initial JVM configuration information of judgment result is that of described judgement does not meet described configuration baseline, adjusts the JVM parameter setting of described application server, makes it meet described configuration baseline.
2. device according to claim 1, is characterized in that, described hardware server information comprises jdk information in hardware server system architecture information, server system memory size, server OS information and server.
3. device according to claim 2, is characterized in that, described JVM configuration information comprises initial memory value, maximum memory value, the maximal value of at every turn adjusting internal memory and the minimum value of JVM.
4. device according to claim 3, is characterized in that, described acquisition module specifically comprises the first collecting unit and the second collecting unit, wherein:
Described the first collecting unit, for hardware server system architecture information, server system memory size, server OS information and the server jdk information at acquisition applications server place;
Described the second collecting unit, the initial JVM configuration information for acquisition applications server, comprising: initial memory value, maximum memory value, the maximal value of at every turn adjusting internal memory and minimum value.
5. according to the device described in claim 1-4 any one, it is characterized in that, described domestic environment comprises the CPU that soars, kylin operating system and Godson platform.
6. a JVM parameter regulation means under domestic environment, is characterized in that, comprising:
The hardware server information of acquisition applications server, and the initial JVM configuration information of acquisition applications server;
Described hardware server information is analyzed, draw when described application server under domestic environment can normally start and described JVM can normally move described in the parameter setting information of JVM should be satisfied configuration baseline;
Initial JVM configuration information and the described configuration baseline of application server are compared, and judge whether described initial JVM configuration information meets described configuration baseline;
When the described initial JVM configuration information of judgment result is that of described judgement does not meet described configuration baseline, the JVM parameter setting of described application server is adjusted, make it meet described configuration baseline.
7. method according to claim 6, is characterized in that, the hardware server information of described acquisition applications server, and the initial JVM configuration information of acquisition applications server, comprising:
Jdk information in hardware server system architecture information, server system memory size, server OS information and the server at acquisition applications server place;
The initial JVM configuration information of acquisition applications server, comprising: initial memory value, maximum memory value, the maximal value of at every turn adjusting internal memory and minimum value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310693467.4A CN103645935B (en) | 2013-12-17 | 2013-12-17 | Device and method for adjusting JVM (java virtual machine) parameters in domestic environment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310693467.4A CN103645935B (en) | 2013-12-17 | 2013-12-17 | Device and method for adjusting JVM (java virtual machine) parameters in domestic environment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103645935A true CN103645935A (en) | 2014-03-19 |
CN103645935B CN103645935B (en) | 2017-01-18 |
Family
ID=50251158
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310693467.4A Active CN103645935B (en) | 2013-12-17 | 2013-12-17 | Device and method for adjusting JVM (java virtual machine) parameters in domestic environment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103645935B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107085516A (en) * | 2017-03-31 | 2017-08-22 | 北京奇艺世纪科技有限公司 | A kind of method and device for changing configuration |
CN110134454A (en) * | 2018-02-09 | 2019-08-16 | 聚好看科技股份有限公司 | A kind of method and device thereof starting application program |
CN111949377A (en) * | 2020-08-25 | 2020-11-17 | 深圳市广通软件有限公司 | JVM parameter optimization method, device, server and storage medium for WEB middleware |
CN112905410A (en) * | 2021-01-19 | 2021-06-04 | 中国人民解放军32039部队 | Equipment state monitoring system and method |
CN113946377A (en) * | 2021-10-29 | 2022-01-18 | 苏州浪潮智能科技有限公司 | Server parameter configuration method, device and storage medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB0416259D0 (en) * | 2004-07-21 | 2004-08-25 | Ibm | A method and system for enabling a server application to be executed in the same virtual machine as a client application using direct object oriented |
CN101706743B (en) * | 2009-12-07 | 2012-09-05 | 北京航空航天大学 | Dispatching method of virtual machine under multi-core environment |
CN103226493B (en) * | 2013-05-15 | 2017-08-18 | 百度在线网络技术(北京)有限公司 | The dispositions method and system of multi-operation system service |
-
2013
- 2013-12-17 CN CN201310693467.4A patent/CN103645935B/en active Active
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107085516A (en) * | 2017-03-31 | 2017-08-22 | 北京奇艺世纪科技有限公司 | A kind of method and device for changing configuration |
CN110134454A (en) * | 2018-02-09 | 2019-08-16 | 聚好看科技股份有限公司 | A kind of method and device thereof starting application program |
CN111949377A (en) * | 2020-08-25 | 2020-11-17 | 深圳市广通软件有限公司 | JVM parameter optimization method, device, server and storage medium for WEB middleware |
CN112905410A (en) * | 2021-01-19 | 2021-06-04 | 中国人民解放军32039部队 | Equipment state monitoring system and method |
CN112905410B (en) * | 2021-01-19 | 2021-11-30 | 中国人民解放军32039部队 | Equipment state monitoring system and method |
CN113946377A (en) * | 2021-10-29 | 2022-01-18 | 苏州浪潮智能科技有限公司 | Server parameter configuration method, device and storage medium |
CN113946377B (en) * | 2021-10-29 | 2024-02-13 | 苏州浪潮智能科技有限公司 | Server parameter configuration method, device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN103645935B (en) | 2017-01-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103514023B (en) | The method and system that a kind of virtual machine off-line automatic software is installed | |
US8694574B2 (en) | Optimized settings in a configuration database with boundaries | |
CN103645935A (en) | Device and method for adjusting JVM (java virtual machine) parameters in domestic environment | |
CN104281520B (en) | Tracking and method, the apparatus and system of debugging | |
CN103279353B (en) | A kind of optimizing application strategy determines method, Apparatus and system | |
DE102016214786A1 (en) | Application profiling job management system, program and method | |
WO2014074170A1 (en) | Optimized memory configuration deployed prior to execution | |
CN105224458A (en) | A kind of database method of testing and system | |
CN103312850A (en) | Mobile phone automation testing system and work method | |
CN103235725A (en) | Linux-based rapid deployment method for Oracle database in cloud computing | |
CN103984612A (en) | Unattended stress testing method based on HPL tool | |
DE112018004660T5 (en) | USE COMMENTS TO PROVIDE OPTIMIZATION | |
CN110750298B (en) | AI model compiling method, equipment and storage medium | |
CN105608382A (en) | Software maintenance method, software problem judgment method and corresponding apparatuses | |
CN106202100A (en) | The loading method of the page and device | |
CN104809246A (en) | Method and device for processing charging data | |
CN104462943A (en) | Non-intrusive performance monitoring device and method for service system | |
CN103810092A (en) | Application system testing method and device | |
CN105743677A (en) | Resource configuration method and apparatus | |
CN103699435A (en) | Load balancing method and device | |
CN113643113A (en) | Automatic electric charge auditing method, system, medium and electronic equipment | |
CN104008046A (en) | Method and device for testing programs | |
DE102011055276A1 (en) | Status exchange between a base unit and a removable device | |
CN104462955A (en) | Host behavior active detection system and method based on virtualization | |
CN102831230A (en) | Component type selection method and system of mixed power assembly |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20211202 Address after: 250014 No. 41-1 Qianfo Shandong Road, Lixia District, Jinan City, Shandong Province Patentee after: SHANDONG CIVIC SE COMMERCIAL MIDDLEWARE Co.,Ltd. Address before: 250014 No. 41-1 Qianfo Shandong Road, Lixia District, Jinan City, Shandong Province Patentee before: SHANDONG CVIC SOFTWARE ENGINEERING Co.,Ltd. |
|
TR01 | Transfer of patent right |