CN108566314A - The acquisition methods and storage medium of status information under electronic device, cluster environment - Google Patents

The acquisition methods and storage medium of status information under electronic device, cluster environment Download PDF

Info

Publication number
CN108566314A
CN108566314A CN201810183495.4A CN201810183495A CN108566314A CN 108566314 A CN108566314 A CN 108566314A CN 201810183495 A CN201810183495 A CN 201810183495A CN 108566314 A CN108566314 A CN 108566314A
Authority
CN
China
Prior art keywords
status information
virtual machine
database
server
java virtual
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.)
Pending
Application number
CN201810183495.4A
Other languages
Chinese (zh)
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201810183495.4A priority Critical patent/CN108566314A/en
Priority to PCT/CN2018/089459 priority patent/WO2019169765A1/en
Publication of CN108566314A publication Critical patent/CN108566314A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • H04L43/045Processing captured monitoring data, e.g. for logfile generation for graphical visualisation of monitoring data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/20Arrangements for monitoring or testing data switching networks the monitoring system or the monitored elements being virtualised, abstracted or software-defined entities, e.g. SDN or NFV
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/22Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks comprising specially adapted graphical user interfaces [GUI]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/40Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks using virtualisation of network functions or resources, e.g. SDN or NFV entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Environmental & Geological Engineering (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention relates to the acquisition methods and storage medium of status information under a kind of electronic device, cluster environment, this method includes:After client connects one or more servers, each server, database and/or the JAVA virtual machine selected for user is shown on client end interface;Determine server, database and/or JAVA virtual machine that user selects on client end interface, scheduled corresponding tool is called based on data selected library and/or JAVA virtual machine, based on the scheduled corresponding order of selected server calls, based on the tool and/or order, the status information of server, the status information of the status information of database and/or JAVA virtual machine are obtained;The status information of the status information of acquired server, the status information of database and/or JAVA virtual machine is back on client end interface and is shown.The present invention can easily obtain every status information by client.

Description

The acquisition methods and storage medium of status information under electronic device, cluster environment
Technical field
The present invention relates to a kind of acquisitions of status information under field of communication technology more particularly to electronic device, cluster environment Method and storage medium.
Background technology
Currently, operation, test or developer when carrying out performance pressure survey, need to obtain database positioning information, service Device status information and/or JAVA virtual machine (JVM) status information, such as CPU, network interface card, memory, disk, database positioning, thread Deng operating condition, at this time usually require log on to corresponding server, inquired one by one by ordering, the information of acquisition is very Scattered, operation is cumbersome, can not be quickly obtained comprehensive status information, causes to take time and effort in investigation, analysis application problem, It cannot quickly cope with, solve catastrophic failure.
Invention content
The purpose of the present invention is to provide a kind of acquisition methods of status information under electronic device, cluster environment and storage to be situated between Matter, it is intended to easily obtain every status information by client, be provided a strong guarantee quickly to solve catastrophic failure.
To achieve the above object, the present invention provides a kind of electronic device, the electronic device include memory and with it is described The processor of memory connection, is stored with the processing system that can be run on the processor, the processing in the memory System realizes following steps when being executed by the processor:
Connection Step, after client connects one or more servers, display is for user's selection on client end interface Each server, database and/or JAVA virtual machine;
Obtaining step determines server, database and/or JAVA virtual machine that user selects on client end interface, base Scheduled corresponding tool is called in data selected library and/or JAVA virtual machine, it is predetermined based on selected server calls Corresponding order, be based on the tool and/or order, obtain the status information of server, the status information of database and/or The status information of JAVA virtual machine;
Step is shown, by the status information of acquired server, the status information of database and/or JAVA virtual machine Status information is back on client end interface and is shown.
Preferably, the obtaining step, specifically includes:
If selected is server, calls scheduled LINUX orders and send the LINUX orders to server, connect The status information for the server that server is returned based on the scheduled LINUX orders is received, the status information of the server is at least Including CPU information, network interface card information, disc information and memory consumption information;
If selected is database, JDBC driving packets is called to connect the database, after being successfully connected the database, SESSION message commands are sent to the database, receive answering based on being connect with database of returning of the SESSION message commands Quantity;
If selected is JAVA virtual machine, scheduled JAVA virtual machine tool is called to obtain the state of JAVA virtual machine Information, the status information of the JAVA virtual machine include at least the program, the JAVA virtual machine that are currently run in JAVA virtual machine Parameters and operation data.
Preferably, the displaying step, specifically includes:
The status information of the status information of server, the status information of database and/or JAVA virtual machine is converted respectively For patterned form, on client end interface the status information of the server of present graphical, the status information of database and/ Or the status information of JAVA virtual machine.
Preferably, when the processing system is executed by the processor, following steps are also realized:
When carrying out performance pressure and surveying, according to the status information of the patterned server of items shown on client end interface, The status information of database and/or the status information of JAVA virtual machine analyse whether to reach corresponding pre-set upper limit value, And when reaching corresponding pre-set upper limit value, whether analysis currently there are abnormal conditions;
The upper limit value is adjusted according to analysis result, using the upper limit value after adjustment as performance bottleneck value, for being reached in next time Early warning is sent out when to the performance bottleneck value.
To achieve the above object, the present invention also provides a kind of acquisition methods of status information under cluster environment, the clusters The acquisition methods of status information include under environment:
S1, after client connects one or more servers, on client end interface display selected for user each Server, database and/or JAVA virtual machine;
S2 determines server, database and/or JAVA virtual machine that user selects on client end interface, based on selected It selects database and/or JAVA virtual machine calls scheduled corresponding tool, be based on the scheduled correspondence of selected server calls Order, be based on the tool and/or order, it is virtual to obtain the status information of server, the status information of database and/or JAVA The status information of machine;
S3 believes the state of the status information of acquired server, the status information of database and/or JAVA virtual machine Breath, which is back on client end interface, to be shown.
Preferably, the step S2, specifically includes:
If selected is server, calls scheduled LINUX orders and send the LINUX orders to server, connect The status information for the server that server is returned based on the scheduled LINUX orders is received, the status information of the server is at least Including CPU information, network interface card information, disk I/O information and memory consumption information;
If selected is database, JDBC driving packets is called to connect the database, after being successfully connected the database, SESSION message commands are sent to the database, receive answering based on being connect with database of returning of the SESSION message commands Quantity;
If selected is JAVA virtual machine, scheduled JAVA virtual machine tool is called to obtain the state of JAVA virtual machine Information, the status information of the JAVA virtual machine include at least the program, the JAVA virtual machine that are currently run in JAVA virtual machine Parameters and operation data.
Preferably, the step S3, specifically includes:
The status information of the status information of server, the status information of database and/or JAVA virtual machine is converted respectively For patterned form, on client end interface the status information of the server of present graphical, the status information of database and/ Or the status information of JAVA virtual machine.
Preferably, after the step S3, further include:
When carrying out performance pressure and surveying, according to the status information of the patterned server of items shown on client end interface, The status information of database and/or the status information of JAVA virtual machine analyse whether to reach corresponding pre-set upper limit value, And when reaching corresponding pre-set upper limit value, whether analysis currently there are abnormal conditions;
The upper limit value is adjusted according to analysis result, using the upper limit value after adjustment as performance bottleneck value, for being reached in next time Early warning is sent out when to the performance bottleneck value.
Preferably, the step S3, further comprises:With the different patterned clothes of color shows on client end interface Status information, the status information of the status information of database and/or JAVA virtual machine of business device.
The present invention also provides a kind of computer readable storage medium, processing is stored on the computer readable storage medium The step of system, the processing system realizes the acquisition methods of status information under above-mentioned cluster environment when being executed by processor.
The beneficial effects of the invention are as follows:The present invention disposably connects one or more server using a client, Client sends to server and orders, receive the service of the return of server by calling LINUX orders and/or JAVA tools The status information of the status information of device, the status information of database and/or JAVA virtual machine is shown, and uses a client Can quickly, the state of the status information of comprehensive monitoring server, the status information of database and/or JAVA virtual machine letter Breath, it is easy to operate, it is provided a strong guarantee quickly to solve catastrophic failure.
Description of the drawings
Fig. 1 is each one optional application environment schematic diagram of embodiment of the present invention;
Fig. 2 is the flow diagram of one embodiment of acquisition methods of status information under cluster environment of the present invention.
Specific implementation mode
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before making creative work The every other embodiment obtained is put, shall fall within the protection scope of the present invention.
It should be noted that the description for being related to " first ", " second " etc. in the present invention is used for description purposes only, and cannot It is interpreted as indicating or implying its relative importance or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " the One ", the feature of " second " can explicitly or implicitly include at least one of the features.In addition, the skill between each embodiment Art scheme can be combined with each other, but must can be implemented as basis with those of ordinary skill in the art, when technical solution Will be understood that the combination of this technical solution is not present in conjunction with there is conflicting or cannot achieve when, also not the present invention claims Protection domain within.
As shown in fig.1, being the application ring of the preferred embodiment of the acquisition methods of status information under cluster environment of the present invention Border schematic diagram.The application environment schematic diagram includes electronic device 1 and one or more servers.Electronic device 1 can pass through net The suitable technology such as network, near-field communication technology carries out data interaction with one or more servers, is equipped in each server Database and/or JAVA virtual machine.
Electronic device 1 be it is a kind of can be automatic to carry out numerical computations and/or letter according to the instruction for being previously set or storing Cease the equipment of processing.The electronic device 1 can be computer, can also be single network server, multiple network servers The server group of the composition either cloud being made of a large amount of hosts or network server based on cloud computing, wherein cloud computing is point One kind that cloth calculates, a super virtual computer being made of the computer collection of a group loose couplings.
In the present embodiment, electronic device 1 may include, but be not limited only to, and can be in communication with each other connection by system bus Memory 11, processor 12, network interface 13, memory 11 are stored with the processing system that can be run on the processor 12.It needs , it is noted that Fig. 1 illustrates only the electronic device 1 with component 11-13, it should be understood that being not required for implementing all The component shown, the implementation that can be substituted is more or less component.
Wherein, memory 11 includes memory and the readable storage medium storing program for executing of at least one type.Inside save as the fortune of electronic device 1 Row provides caching;Readable storage medium storing program for executing can be if flash memory, hard disk, multimedia card, card-type memory are (for example, SD or DX memories Deng), random access storage device (RAM), static random-access memory (SRAM), read-only memory (ROM), electric erasable can compile Journey read-only memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc. it is non-volatile Storage medium.In some embodiments, readable storage medium storing program for executing can be the internal storage unit of electronic device 1, such as the electronics The hard disk of device 1;In further embodiments, which can also be that the external storage of electronic device 1 is set Plug-in type hard disk that is standby, such as being equipped on electronic device 1, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) blocks, flash card (Flash Card) etc..In the present embodiment, the readable storage medium storing program for executing of memory 11 It is installed on commonly used in storage in the operating system and types of applications software of electronic device 1, such as storage one embodiment of the invention Processing system program code etc..It has exported or will export in addition, memory 11 can be also used for temporarily storing Various types of data.
The processor 12 can be in some embodiments central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chips.The processor 12 is commonly used in the control electricity The overall operation of sub-device 1, such as execute and carry out data interaction with one or more of servers or communicate relevant control System and processing etc..In the present embodiment, the processor 12 is for running the program code stored in the memory 11 or place Manage system reason system etc. at data, such as operation.
The network interface 13 may include radio network interface or wired network interface, which is commonly used in Communication connection is established between the electronic device 1 and other electronic equipments.In the present embodiment, network interface 13 is mainly used for will be electric Sub-device 1 is connected with one or more servers, and it is logical to establish data transmission between electronic device 1 and one or more servers Road and communication connection.
The processing system is stored in memory 11, including it is at least one be stored in it is computer-readable in memory 11 Instruction, at least one computer-readable instruction can be executed by processor device 12, the method to realize each embodiment of the application;With And the function that at least one computer-readable instruction is realized according to its each section is different, can be divided into different logic moulds Block.
In one embodiment, following steps are realized when above-mentioned processing system is executed by the processor 12:
Connection Step, after client connects one or more servers, display is for user's selection on client end interface Each server, database and/or JAVA virtual machine;
Wherein, client is installed in the electronic apparatus 1, before client is connect with one or more servers, in visitor The log-on message that one or more servers are inputted on the login interface at family end is logged in, log-on message include server ip, Port, login username, login password etc..After login, client is connect with one or more servers, and in client end interface It is upper to show server, database and/or the JAVA virtual machine chosen for user, to obtain chosen server, database And/or the status information of JAVA virtual machine.
Obtaining step determines server, database and/or JAVA virtual machine that user selects on client end interface, base Scheduled corresponding tool is called in data selected library and/or JAVA virtual machine, it is predetermined based on selected server calls Corresponding order, be based on the tool and/or order, obtain the status information of server, the status information of database and/or The status information of JAVA virtual machine;
In the present embodiment, user can select to check the status information of single server, database or JAVA virtual machine, It can also check the status information of multiple servers, database and/or JAVA virtual machine.Determining user on client end interface After the server of selection, database and/or JAVA virtual machine, in one embodiment, if selected is server, client End calls scheduled LINUX orders and sends the LINUX orders to server, receives server and is based on the scheduled LINUX lives Enable the status information of the server returned, wherein the status information of the server includes at least CPU information, network interface card information, magnetic Disk information and memory consumption information.
In one embodiment, scheduled LINUX orders include at least iostat orders, iotop orders, pidstat orders, Wherein, cpu usage, network interface card information, disk service condition etc. can be checked by iostat orders.Iotop orders, Pidstat orders reflect the process level statistics of server, wherein iotop orders are one and are used for monitoring disk I/O behaviour in service Tool, the case where can monitoring the disk I/O which program (such as QQ, wechat) uses.Pidstat orders are mainly used for The case where monitoring whole or specified process occupying system resources, such as CPU information, memory consumption, equipment I O, task switching, thread Deng.Client receives the status information based on above-mentioned LINUX orders return, analyze and obtain CPU, network interface card, disk I/O and Situations such as memory consumption.If selected is database, client call java fastening means JDBC (Java DataBase Connectivity, java database connect) drive packet to connect the database, to judge whether database is capable of providing positive informal dress Business is sent SESSION message commands to the database, receives and ordered based on the SESSION information after being successfully connected the database The quantity of the application being connect with database returned, the status information of database is enabled to include at least whether database can normally connect The quantity for the application connect, being connect with database.Wherein, the database of monitoring can be one or more, realize Sybase It is integrated, such as:ORACLE databases, MYSQL database and PG databases.
If selected is JAVA virtual machine, the scheduled JAVA virtual machine tool of client call obtains JAVA virtual machine Status information, the status information of the JAVA virtual machine includes at least the program currently run in JAVA virtual machine, JAVA The parameters and operation data of virtual machine, operation data include internal storage data, garbage collection data, loading data, jit compiling Data, thread lock data etc..
In one embodiment, scheduled JAVA virtual machine tool includes at least:Jstat virtual machine statistical informations monitor work Tool, to carry out the prison of real-time order line to the resource and performance of java application using the built-in instruction of JAVA virtual machine Control, includes the monitoring to Heap size virutal machine memories and garbage reclamation situation;Jps virtual machine process Performance Tools, to Show current system java processes situation and its No. id;Jinfo Java configuration information tools, for exporting JAVA systems ginseng Number and command line parameter;Jmap Java memory mapping tools, to export the tool of object in all memories;jstack Java Stack trace tool:To print given java process IDs or core file or the Java stack of remote debugging service letter Breath.
Step is shown, by the status information of acquired server, the status information of database and/or JAVA virtual machine Status information is back on client end interface and is shown.
In the present embodiment, client disposably gets the clothes needed for user by calling scheduled tool and/or order Status information, the status information of the status information of database and/or JAVA virtual machine of business device, finally believe the state of server The status information of breath, the status information of database and/or JAVA virtual machine is illustrated on client end interface, is analyzed for user It is surveyed with carrying out performance pressure, status information, the status information of database of comprehensive monitoring server is capable of using a client And/or the status information of JAVA virtual machine.
In a preferred embodiment, the displaying step, specifically includes:By the status information of server, the shape of database The status information of state information and/or JAVA virtual machine is separately converted to patterned form, the present graphical on client end interface The status information of the status information of the server of change, the status information of database and/or JAVA virtual machine.
Wherein, which includes a variety of, can be single patterned form, can also be a variety of figures In conjunction with the figure includes pie chart, line chart, column diagram etc., can more intuitively show status information, the data of server The status information in library and/or the status information of JAVA virtual machine provide intuitive effectively real-time analysis foundation to the user, are quick The failure for solving burst provides a strong guarantee.It is possible to further graphical with different color shows on client end interface The status information of server, the status information of the status information of database and/or JAVA virtual machine, it is further provided intuitively have Effect analyzes foundation in real time.
In a preferred embodiment, when the processing system is executed by the processor, following steps are also realized:
When carrying out performance pressure and surveying, according to the status information of the patterned server of items shown on client end interface, The status information of database and/or the status information of JAVA virtual machine analyse whether to reach corresponding pre-set upper limit value, And when reaching corresponding pre-set upper limit value, whether analysis currently there are abnormal conditions;
The upper limit value is adjusted according to analysis result, using the upper limit value after adjustment as performance bottleneck value, for being reached in next time Early warning is sent out when to the performance bottleneck value.
In the present embodiment, can pre-establish the status information of each single item server, the status information of database and/or The upper limit value of the status information of JAVA virtual machine is pressed the scalability and performance for surveying gauging system by performance, determines problem institute And optimization system performance, by knowing that server, database, JAVA virtual machine bear limit, preferably to configure Server, database, JAVA virtual machine.Such as the status information for server, setting CPU usage are that 80%, memory disappears Consumption is 85%, disk utilization rate is 50% etc., when CPU usage reach 80% either memory consumption reach 85% or disk When utilization rate reaches 50%, analysis analysis it is current whether due to CPU usage either memory consumption or disk utilization rate and go out Existing abnormal conditions can further raise the upper limit value of these status informations, such as adjust if there is not exception CPU usage is 85%, memory consumption 90%, disk utilization rate are 60% etc., using the upper limit value after adjustment as performance bottle Neck value, for sending out early warning when reaching the performance bottleneck value next time;It, then can be further to these status informations if there is exception Upper limit value lowered, such as adjustment CPU usage be 75%, memory consumption 80%, disk utilization rate are 45% etc., with Upper limit value after adjustment is as performance bottleneck value, for sending out early warning when reaching the performance bottleneck value next time.
Compared with prior art, the present invention disposably connects one or more server, client using a client End sends to server and orders, receive the server of the return of server by calling LINUX orders and/or JAVA tools The status information of status information, the status information of database and/or JAVA virtual machine is shown, and uses a client energy Enough quick, the status information of comprehensive monitoring server, the status information of database and/or JAVA virtual machine status informations, behaviour Make simplicity, is provided a strong guarantee quickly to solve catastrophic failure.
As shown in Fig. 2, Fig. 2 is the flow signal of one embodiment of acquisition methods of status information under cluster environment of the present invention Scheme, the acquisition methods of status information include the following steps under the cluster environment:
Step S1, after client connects one or more servers, on client end interface display selected for user Each server, database and/or JAVA virtual machine;
Wherein, client is installed in the electronic apparatus 1, before client is connect with one or more servers, in visitor The log-on message that one or more servers are inputted on the login interface at family end is logged in, log-on message include server ip, Port, login username, login password etc..After login, client is connect with one or more servers, and in client end interface It is upper to show server, database and/or the JAVA virtual machine chosen for user, to obtain chosen server, database And/or the status information of JAVA virtual machine.
Step S2 determines server, database and/or JAVA virtual machine that user selects on client end interface, is based on Data selected library and/or JAVA virtual machine call scheduled corresponding tool, scheduled based on selected server calls Corresponding order is based on the tool and/or order, obtains the status information of server, the status information of database and/or JAVA The status information of virtual machine;
In the present embodiment, user can select to check the status information of single server, database or JAVA virtual machine, It can also check the status information of multiple servers, database and/or JAVA virtual machine.Determining user on client end interface After the server of selection, database and/or JAVA virtual machine, in one embodiment, if selected is server, client End calls scheduled LINUX orders and sends the LINUX orders to server, receives server and is based on the scheduled LINUX lives Enable the status information of the server returned, wherein the status information of the server includes at least CPU information, network interface card information, magnetic Disk information and memory consumption information.
In one embodiment, scheduled LINUX orders include at least iostat orders, iotop orders, pidstat orders, Wherein, cpu usage, network interface card information, disk service condition etc. can be checked by iostat orders.Iotop orders, Pidstat orders reflect the process level statistics of server, wherein iotop orders are one and are used for monitoring disk I/O behaviour in service Tool, the case where can monitoring the disk I/O which program (such as QQ, wechat) uses.Pidstat orders are mainly used for The case where monitoring whole or specified process occupying system resources, such as CPU information, memory consumption, equipment I O, task switching, thread Deng.Client receives the status information based on above-mentioned LINUX orders return, analyze and obtain CPU, network interface card, disk I/O and Situations such as memory consumption.
If selected is database, client call java fastening means JDBC (Java DataBase Connectivity, java database connect) drive packet to connect the database, to judge whether database is capable of providing positive informal dress Business is sent SESSION message commands to the database, receives and ordered based on the SESSION information after being successfully connected the database The quantity of the application being connect with database returned, the status information of database is enabled to include at least whether database can normally connect The quantity for the application connect, being connect with database.Wherein, the database of monitoring can be one or more, realize Sybase It is integrated, such as:ORACLE databases, MYSQL database and PG databases.
If selected is JAVA virtual machine, the scheduled JAVA virtual machine tool of client call obtains JAVA virtual machine Status information, the status information of the JAVA virtual machine includes at least the program currently run in JAVA virtual machine, JAVA The parameters and operation data of virtual machine, operation data include internal storage data, garbage collection data, loading data, jit compiling Data, thread lock data etc..
In one embodiment, scheduled JAVA virtual machine tool includes at least:Jstat virtual machine statistical informations monitor work Tool, to carry out the prison of real-time order line to the resource and performance of java application using the built-in instruction of JAVA virtual machine Control, includes the monitoring to Heap size virutal machine memories and garbage reclamation situation;Jps virtual machine process Performance Tools, to Show current system java processes situation and its No. id;Jinfo Java configuration information tools, for exporting JAVA systems ginseng Number and command line parameter;Jmap Java memory mapping tools, to export the tool of object in all memories;jstack Java Stack trace tool:To print given java process IDs or core file or the Java stack of remote debugging service letter Breath.
Step S3, by the shape of the status information of acquired server, the status information of database and/or JAVA virtual machine State information is back on client end interface and is shown.
In the present embodiment, client disposably gets the clothes needed for user by calling scheduled tool and/or order Status information, the status information of the status information of database and/or JAVA virtual machine of business device, finally believe the state of server The status information of breath, the status information of database and/or JAVA virtual machine is illustrated on client end interface, is analyzed for user It is surveyed with carrying out performance pressure, status information, the status information of database of comprehensive monitoring server is capable of using a client And/or the status information of JAVA virtual machine.
In a preferred embodiment, the displaying step, specifically includes:By the status information of server, the shape of database The status information of state information and/or JAVA virtual machine is separately converted to patterned form, the present graphical on client end interface The status information of the status information of the server of change, the status information of database and/or JAVA virtual machine.
Wherein, which includes a variety of, can be single patterned form, can also be a variety of figures In conjunction with the figure includes pie chart, line chart, column diagram etc., can more intuitively show status information, the data of server The status information in library and/or the status information of JAVA virtual machine provide intuitive effectively real-time analysis foundation to the user, are quick The failure for solving burst provides a strong guarantee.It is possible to further graphical with different color shows on client end interface The status information of server, the status information of the status information of database and/or JAVA virtual machine, it is further provided intuitively have Effect analyzes foundation in real time.
In a preferred embodiment, on the basis of the above embodiments, after the step S3, further include:
When carrying out performance pressure and surveying, according to the status information of the patterned server of items shown on client end interface, The status information of database and/or the status information of JAVA virtual machine analyse whether to reach corresponding pre-set upper limit value, And when reaching corresponding pre-set upper limit value, whether analysis currently there are abnormal conditions;
The upper limit value is adjusted according to analysis result, using the upper limit value after adjustment as performance bottleneck value, for being reached in next time Early warning is sent out when to the performance bottleneck value.
In the present embodiment, can pre-establish the status information of each single item server, the status information of database and/or The upper limit value of the status information of JAVA virtual machine is pressed the scalability and performance for surveying gauging system by performance, determines problem institute And optimization system performance, by knowing that server, database, JAVA virtual machine bear limit, preferably to configure Server, database, JAVA virtual machine.Such as the status information for server, setting CPU usage are that 80%, memory disappears Consumption is 85%, disk utilization rate is 50% etc., when CPU usage reach 80% either memory consumption reach 85% or disk When utilization rate reaches 50%, analysis analysis it is current whether due to CPU usage either memory consumption or disk utilization rate and go out Existing abnormal conditions can further raise the upper limit value of these status informations, such as adjust if there is not exception CPU usage is 85%, memory consumption 90%, disk utilization rate are 60% etc., using the upper limit value after adjustment as performance bottle Neck value, for sending out early warning when reaching the performance bottleneck value next time;It, then can be further to these status informations if there is exception Upper limit value lowered, such as adjustment CPU usage be 75%, memory consumption 80%, disk utilization rate are 45% etc., with Upper limit value after adjustment is as performance bottleneck value, for sending out early warning when reaching the performance bottleneck value next time.
Compared with prior art, the present invention disposably connects one or more server, client using a client End sends to server and orders, receive the server of the return of server by calling LINUX orders and/or JAVA tools The status information of status information, the status information of database and/or JAVA virtual machine is shown, and uses a client energy Enough quick, the status information of comprehensive monitoring server, the status information of database and/or JAVA virtual machine status informations, behaviour Make simplicity, is provided a strong guarantee quickly to solve catastrophic failure.
The present invention also provides a kind of computer readable storage medium, processing is stored on the computer readable storage medium The step of system, the processing system realizes the acquisition methods of status information under above-mentioned cluster environment when being executed by processor.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, computer, clothes Be engaged in device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of electronic device, which is characterized in that the electronic device includes memory and the processing that is connect with the memory Device is stored with the processing system that can be run on the processor in the memory, and the processing system is by the processor Following steps are realized when execution:
Connection Step, after client connects one or more servers, on client end interface display selected for user each A server, database and/or JAVA virtual machine;
Obtaining step determines server, database and/or JAVA virtual machine that user selects on client end interface, is based on institute Database and/or JAVA virtual machine is selected to call scheduled corresponding tool, it is scheduled right based on selected server calls The order answered is based on the tool and/or order, and it is empty to obtain the status information of server, the status information of database and/or JAVA The status information of quasi- machine;
Step is shown, by the status information of acquired server, the state of the status information of database and/or JAVA virtual machine Information is back on client end interface and is shown.
2. electronic device according to claim 1, which is characterized in that the obtaining step specifically includes:
If selected is server, calls scheduled LINUX orders and send the LINUX orders to server, receive clothes The status information for the server that business device is returned based on the scheduled LINUX orders, the status information of the server include at least CPU information, network interface card information, disc information and memory consumption information;
If selected is database, JDBC driving packets are called to connect the database, after being successfully connected the database, to this Database sends SESSION message commands, receives the application being connect with database returned based on the SESSION message commands Quantity;
If selected is JAVA virtual machine, scheduled JAVA virtual machine tool is called to obtain the state letter of JAVA virtual machine Breath, the status information of the JAVA virtual machine include at least the program, JAVA virtual machine currently run in JAVA virtual machine Parameters and operation data.
3. electronic device according to claim 1 or 2, which is characterized in that the displaying step specifically includes:
The status information of the status information of server, the status information of database and/or JAVA virtual machine is separately converted to figure The form of shape, on client end interface the status information of the server of present graphical, the status information of database and/or The status information of JAVA virtual machine.
4. electronic device according to claim 3, which is characterized in that when the processing system is executed by the processor, Also realize following steps:
When carrying out performance pressure survey, according to status information, the data of the patterned server of items shown on client end interface The status information in library and/or the status information of JAVA virtual machine analyse whether to reach corresponding pre-set upper limit value, and When reaching corresponding pre-set upper limit value, whether analysis currently there are abnormal conditions;
The upper limit value is adjusted according to analysis result, using the upper limit value after adjustment as performance bottleneck value, for reaching this in next time Early warning is sent out when performance bottleneck value.
5. the acquisition methods of status information under a kind of cluster environment, which is characterized in that status information obtains under the cluster environment The method is taken to include:
S1 shows each service selected for user after client connects one or more servers on client end interface Device, database and/or JAVA virtual machine;
S2 determines server, database and/or JAVA virtual machine that user selects on client end interface, is based on selected number Scheduled corresponding tool is called according to library and/or JAVA virtual machine, is based on the scheduled corresponding life of selected server calls It enables, is based on the tool and/or order, obtains the status information of server, the status information of database and/or JAVA virtual machine Status information;
S3 returns the status information of the status information of acquired server, the status information of database and/or JAVA virtual machine It is back on client end interface and is shown.
6. the acquisition methods of status information under cluster environment according to claim 5, which is characterized in that the step S2, It specifically includes:
If selected is server, calls scheduled LINUX orders and send the LINUX orders to server, receive clothes The status information for the server that business device is returned based on the scheduled LINUX orders, the status information of the server include at least CPU information, network interface card information, disk I/O information and memory consumption information;
If selected is database, JDBC driving packets are called to connect the database, after being successfully connected the database, to this Database sends SESSION message commands, receives the application being connect with database returned based on the SESSION message commands Quantity;
If selected is JAVA virtual machine, scheduled JAVA virtual machine tool is called to obtain the state letter of JAVA virtual machine Breath, the status information of the JAVA virtual machine include at least the program, JAVA virtual machine currently run in JAVA virtual machine Parameters and operation data.
7. the acquisition methods of status information under cluster environment according to claim 5 or 6, which is characterized in that the step S3 is specifically included:
The status information of the status information of server, the status information of database and/or JAVA virtual machine is separately converted to figure The form of shape, on client end interface the status information of the server of present graphical, the status information of database and/or The status information of JAVA virtual machine.
8. the acquisition methods of status information under cluster environment according to claim 7, which is characterized in that the step S3 it Afterwards, further include:
When carrying out performance pressure survey, according to status information, the data of the patterned server of items shown on client end interface The status information in library and/or the status information of JAVA virtual machine analyse whether to reach corresponding pre-set upper limit value, and When reaching corresponding pre-set upper limit value, whether analysis currently there are abnormal conditions;
The upper limit value is adjusted according to analysis result, using the upper limit value after adjustment as performance bottleneck value, for reaching this in next time Early warning is sent out when performance bottleneck value.
9. the acquisition methods of status information under cluster environment according to claim 7, which is characterized in that the step S3, Further comprise:With the status information of the different patterned servers of color shows, the shape of database on client end interface The status information of state information and/or JAVA virtual machine.
10. a kind of computer readable storage medium, which is characterized in that be stored with processing system on the computer readable storage medium System realizes that state is believed under the cluster environment as described in any one of claim 5 to 9 when the processing system is executed by processor The step of acquisition methods of breath.
CN201810183495.4A 2018-03-06 2018-03-06 The acquisition methods and storage medium of status information under electronic device, cluster environment Pending CN108566314A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810183495.4A CN108566314A (en) 2018-03-06 2018-03-06 The acquisition methods and storage medium of status information under electronic device, cluster environment
PCT/CN2018/089459 WO2019169765A1 (en) 2018-03-06 2018-06-01 Electronic device, method for acquiring state information in cluster environment, system, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810183495.4A CN108566314A (en) 2018-03-06 2018-03-06 The acquisition methods and storage medium of status information under electronic device, cluster environment

Publications (1)

Publication Number Publication Date
CN108566314A true CN108566314A (en) 2018-09-21

Family

ID=63532125

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810183495.4A Pending CN108566314A (en) 2018-03-06 2018-03-06 The acquisition methods and storage medium of status information under electronic device, cluster environment

Country Status (2)

Country Link
CN (1) CN108566314A (en)
WO (1) WO2019169765A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078495A (en) * 2019-11-29 2020-04-28 航天精一(广东)信息科技有限公司 Method for monitoring state of Carte server
CN113064762A (en) * 2021-04-09 2021-07-02 上海新炬网络信息技术股份有限公司 Service self-recovery method based on multiple detection
CN113296889A (en) * 2021-05-06 2021-08-24 曙光信息产业股份有限公司 Task management method, device, system, computer equipment and storage medium

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110928560A (en) * 2019-11-30 2020-03-27 苏州浪潮智能科技有限公司 Method, system and storage medium for installing and controlling virtual machine in Linux environment
CN114285588A (en) * 2020-09-21 2022-04-05 奇安信科技集团股份有限公司 Method, device, equipment and storage medium for acquiring attack object information
CN112559296A (en) * 2020-12-23 2021-03-26 南方电网深圳数字电网研究院有限公司 Prometheus-based virtual machine monitoring method and tool, electronic device and storage medium
CN113590369B (en) * 2021-07-23 2024-05-28 上海淇玥信息技术有限公司 Method and device for virtual machine diagnosis and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1549516A (en) * 2003-05-12 2004-11-24 华为技术有限公司 Method for testing AAA server characteristics and apparatus thereof
CN103024060A (en) * 2012-12-20 2013-04-03 中国科学院深圳先进技术研究院 Open type cloud computing monitoring system for large scale cluster and method thereof
CN103546562A (en) * 2013-10-28 2014-01-29 陕西高新实业有限公司 Distributed monitoring application server system
CN104009883A (en) * 2014-05-09 2014-08-27 烽火通信科技股份有限公司 Computer resource centralized remote real-time monitoring system and method
CN104717236A (en) * 2013-12-11 2015-06-17 中国移动通信集团公司 Equipment performance test method and device
CN105337787A (en) * 2014-07-29 2016-02-17 北京奇虎科技有限公司 Multi-server monitoring method, device and system
CN105491143A (en) * 2015-12-15 2016-04-13 国云科技股份有限公司 Software running state monitoring system and realization method thereof

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101667034B (en) * 2009-09-21 2011-06-22 北京航空航天大学 Scalable monitoring system supporting hybrid clusters
CN103019910B (en) * 2011-09-26 2016-06-29 北京新媒传信科技有限公司 A kind of monitor the method and system of resource in Linux server
CN104022902A (en) * 2014-05-30 2014-09-03 京东方科技集团股份有限公司 Method and system of monitoring server cluster
CN105703940B (en) * 2015-12-10 2021-08-20 中国电力科学研究院有限公司 Monitoring system and monitoring method for multi-level scheduling distributed parallel computation
CN107454140A (en) * 2017-06-27 2017-12-08 北京溢思得瑞智能科技研究院有限公司 A kind of Ceph cluster automatically dispose method and system based on big data platform

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1549516A (en) * 2003-05-12 2004-11-24 华为技术有限公司 Method for testing AAA server characteristics and apparatus thereof
CN103024060A (en) * 2012-12-20 2013-04-03 中国科学院深圳先进技术研究院 Open type cloud computing monitoring system for large scale cluster and method thereof
CN103546562A (en) * 2013-10-28 2014-01-29 陕西高新实业有限公司 Distributed monitoring application server system
CN104717236A (en) * 2013-12-11 2015-06-17 中国移动通信集团公司 Equipment performance test method and device
CN104009883A (en) * 2014-05-09 2014-08-27 烽火通信科技股份有限公司 Computer resource centralized remote real-time monitoring system and method
CN105337787A (en) * 2014-07-29 2016-02-17 北京奇虎科技有限公司 Multi-server monitoring method, device and system
CN105491143A (en) * 2015-12-15 2016-04-13 国云科技股份有限公司 Software running state monitoring system and realization method thereof

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078495A (en) * 2019-11-29 2020-04-28 航天精一(广东)信息科技有限公司 Method for monitoring state of Carte server
CN113064762A (en) * 2021-04-09 2021-07-02 上海新炬网络信息技术股份有限公司 Service self-recovery method based on multiple detection
CN113064762B (en) * 2021-04-09 2024-02-23 上海新炬网络信息技术股份有限公司 Service self-recovery method based on various detection
CN113296889A (en) * 2021-05-06 2021-08-24 曙光信息产业股份有限公司 Task management method, device, system, computer equipment and storage medium
CN113296889B (en) * 2021-05-06 2023-03-14 曙光信息产业股份有限公司 Task management method, device, system, computer equipment and storage medium

Also Published As

Publication number Publication date
WO2019169765A1 (en) 2019-09-12

Similar Documents

Publication Publication Date Title
CN108566314A (en) The acquisition methods and storage medium of status information under electronic device, cluster environment
CN108874624A (en) Server, the method and storage medium for monitoring Java process
CN109597398A (en) Failure automatic processing method, device, equipment and the storage medium of household electrical appliance
CN111552556B (en) GPU cluster service management system and method
CN111881014B (en) System test method, device, storage medium and electronic equipment
CN110162481A (en) A kind of method for testing software, device, equipment and storage medium
CN110138688A (en) Dynamic adjusts method, apparatus, equipment and the readable storage medium storing program for executing of business interface
CN113391978B (en) Inspection method and device for host
CN113157411B (en) Celery-based reliable configurable task system and device
CN108108296A (en) A kind of cloud test method, server and client
CN110290190A (en) A kind of method, monitored device and monitoring server acquiring data
CN107463468A (en) Buffer memory management method and its equipment
CN112202628B (en) WiFi module serial port protocol automatic test system and method
CN110635956A (en) Equipment management method, platform, system, equipment and storage medium
CN106021046A (en) Hard disk performance comparison method, device and server
CN111459103A (en) Loom communication system based on MCGS configuration screen
CN117311990B (en) Resource adjustment method and device, electronic equipment, storage medium and training platform
CN104516736A (en) Development platform of after-sale diagnosis system
CN108196999A (en) Server B MC obtains the method and device of GPU temperature
CN109697117A (en) Terminal control method, device and computer readable storage medium
CN114090382B (en) Health inspection method and device for super-converged cluster
CN113849367B (en) Server, management method, device and system thereof, electronic equipment and storage medium
CN109257256A (en) Apparatus monitoring method, device, computer equipment and storage medium
CN114500178A (en) Intelligent internet of things gateway capable of self-operation and self-maintenance
CN109921963B (en) Network state inspection method and system

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180921

RJ01 Rejection of invention patent application after publication