CN105094943A - Method and system for collecting performance parameters of virtual machines - Google Patents

Method and system for collecting performance parameters of virtual machines Download PDF

Info

Publication number
CN105094943A
CN105094943A CN201410214667.1A CN201410214667A CN105094943A CN 105094943 A CN105094943 A CN 105094943A CN 201410214667 A CN201410214667 A CN 201410214667A CN 105094943 A CN105094943 A CN 105094943A
Authority
CN
China
Prior art keywords
parameter
virtual machine
performance parameter
manifold
machine
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
CN201410214667.1A
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201410214667.1A priority Critical patent/CN105094943A/en
Publication of CN105094943A publication Critical patent/CN105094943A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention provides a method and a system for collecting performance parameters of virtual machines, which are used for collecting the performance parameters of a plurality of virtual machines in an entity machine, wherein the method comprises the following steps of collecting the performance parameters of each virtual machine at a virtual machine side by utilizing a parameter collector corresponding to an operating system of each virtual machine; transferring the performance parameters to a parameter concentrator in the entity machine at each virtual machine side by utilizing the parameter collector; and writing the received performance parameters according to the collection time of the performance parameters and storing in a document of the entity machine at the entity machine side. According to the method and the system which are provided by the invention, through collecting the performance parameters of different operating systems, parameters at each virtual machine layer are simply and conveniently collected, and the purposes of unified collection, comparison and recording are achieved; meanwhile, a technician in the related area develops, analyzes and utilizes each virtual machine layer conveniently.

Description

A kind of method and system of virtual machine performance parameter collection
Technical field
The present invention relates to computer realm, particularly a kind of method and system of virtual machine performance parameter collection.
Background technology
Current virtual machine by the mode of software simulation realize having complete hardware system function, the complete computer operated in a completely isolated environment.There is following shortcoming in existing virtual machine performance parameter phone solution: 1. in homologous ray, various performance parameter acquisition mode is different; 2. various system performance parameter meaning is different; 3. various system performance parameter form is different; 4. various system provides performance parameter different; 5. the performance parameter of record can not compare mutually.Therefore we need a kind of method and system of novel virtual machine performance parameter collection.
Summary of the invention
The invention provides a kind of method and system of virtual machine performance parameter collection, its objective is that conveniently those skilled in the relevant art are to the exploitation of virtual machine layer, analysis and utilization.
In order to achieve the above object, The embodiment provides a kind of method of virtual machine performance parameter collection, for collecting the performance parameter of multiple virtual machine in physical machine, described method comprises: utilize the parameter collection device corresponding with the operating system of virtual machine to collect the performance parameter of described virtual machine at virtual pusher side; Described parameter collection device is utilized described performance parameter to be delivered to parameter manifold in physical machine at virtual pusher side; Write at entity pusher side receiving the acquisition time of described performance parameter by performance parameter and be saved in the document of physical machine.
Wherein, the step of the parameter manifold that described performance parameter is delivered in physical machine by the parameter collection device in described virtual machine comprises:
The format conversion of described performance parameter is become predetermined form by the parameter collection device in described virtual machine;
Described performance parameter after format conversion is delivered to the parameter manifold in physical machine by the parameter collection device in described virtual machine.
Wherein, described predetermined form is any one in extended-boundary-condition method, data interchange language JSON, DOM Document Object Model DOM form.
Wherein, before the step of the performance parameter of described virtual machine collected by the described utilization parameter collection device corresponding with the operating system of virtual machine, described method also comprises:
In response to the operational motion of newly-built virtual machine, in physical machine, create the parameter manifold of the state for monitoring newly-built virtual machine.
Wherein, before the step of the performance parameter of described virtual machine collected by the described utilization parameter collection device corresponding with the operating system of virtual machine, described method also comprises:
When the operating system of virtual machine is set up, in virtual machine, create the parameter collection device for collect virtual machine performance parameter corresponding with the operating system of described virtual machine.
Wherein, the parameter collection device in described virtual machine the step of the parameter manifold described performance parameter be delivered in physical machine are specially:
The performance parameter that performance parameter gatherer in described virtual machine is collected passes to the corresponding parameter manifold of physical machine via the virtual network between physical machine with virtual machine.
Wherein, describedly to write receiving the acquisition time of described performance parameter by performance parameter and the step be saved in the document of physical machine also comprises at entity pusher side:
Described parameter manifold is another document newly-built after a Preset Time often, the performance parameter of described document for collecting described in preserving.
Embodiments of the invention additionally provide a kind of virtual machine performance parameter collection system, and for collecting the performance parameter of multiple virtual machine in physical machine, wherein, described system comprises:
Parameter collection device, corresponding with the operating system of virtual machine, for collecting the performance parameter of described virtual machine at virtual pusher side, and be delivered in the parameter manifold in physical machine;
Parameter manifold, for writing at entity pusher side receiving the acquisition time of described performance parameter by performance parameter and be saved in the document of physical machine.
Wherein, described parameter collection device is also for becoming predetermined form by the format conversion of described performance parameter.
Wherein, described predetermined form is any one in extended-boundary-condition method, data interchange language JSON, DOM Document Object Model DOM form.
Wherein, described parameter manifold is also for monitoring the state of newly-built virtual machine.
Wherein, described parameter manifold also for every another document newly-built after a Preset Time, the performance parameter of described document for collecting described in preserving
The beneficial effect of such scheme of the present invention is as follows:
The method and system of virtual machine performance parameter collection provided by the present invention, by the collection of the performance parameter to different operating system, make the parameter collection of virtual machine layer simple and convenient, and reach the unified object of collecting, comparing and record, make operating system different in virtual machine layer compare with alternately; Also facilitate those skilled in the relevant art to the exploitation of virtual machine layer, analysis and utilization simultaneously.
Accompanying drawing explanation
Fig. 1 is the method flow diagram of virtual machine performance parameter collection of the present invention;
Fig. 2 is the system architecture schematic diagram of virtual machine performance parameter collection of the present invention.
Embodiment
For making the technical problem to be solved in the present invention, technical scheme and advantage clearly, be described in detail below in conjunction with the accompanying drawings and the specific embodiments.
The present invention is directed to the skimble-scamble problem of various performance parameter in existing homologous ray, provide a kind of method and system of virtual machine performance parameter collection.
As shown in Figure 1, The embodiment provides a kind of method of virtual machine performance parameter collection, for collecting the performance parameter of multiple virtual machine in physical machine, described method comprises:
Step 11, utilizes the parameter collection device corresponding with the operating system of virtual machine to collect the performance parameter of described virtual machine at virtual pusher side;
The operating system of described virtual machine can be Linux/UNIX operating system, Windows operating system etc., and wherein the performance parameter of Linux/UNIX operating system is as follows:
Number percent service time of CPUUtilization:CPU
Page-inRate: be read into the number of pages in physical memory p.s.
Page-outRate: the number of pages writing pagefile p.s. and delete from physical memory
PagingRate: read in the number of pages in physical memory or write pagefile p.s.
DiskRate: disk transfers speed
Swap-inRate: the process number exchanged
Swap-outRate: the process number exchanged
IncomingPackagesErrorrate: when receiving Ethernet data bag p.s. the error number that receives
IncomingPackagesRate: the Ethernet data bag number imported into p.s.
CollisionRate: the number of collisions detected over ethernet p.s.
AverageLoad: the averaging process number of state that upper one minute is in simultaneously " ready ".
Wherein, the performance parameter of Windows operating system is as follows:
AvailableMbytes: free physical memory number.
Page/sec: show due to hardware page fault from the page number that disk takes out, or write disk due to page fault to discharge the page number in working set space.
Pageread/sec: the hard fault of page, the subset of page/sec, in order to resolve quoting internal memory, must read the number of times of page file.
AverageDiskRead/WriteQueueLength: refer to the average reading (write) request (lining up).
DiskReads (Writes)/s: the number of times of disk reading and writing p.s. on physical disk.Both are added, and should be less than disk unit max cap..
AverageDisksec/Read: refer to read averaging time needed for data with what calculate second on this dish.
AverageDisksec/Transfer: refer to write averaging time needed for data with what calculate second on this dish.
BytesTotal/sec: for sending and receive the speed of byte, comprise frame character.
%ProcessorTime: the processor time quantity consumed by processor.
Step 12, utilizes described parameter collection device described performance parameter to be delivered to parameter manifold in physical machine at virtual pusher side;
Step 13, writes at entity pusher side receiving the acquisition time of described performance parameter by performance parameter and is saved in the document of physical machine.
The above embodiment of the present invention by described parameter collection device to the collection of the performance parameter of different operating system, make the parameter collection of virtual machine layer simple and convenient, and reach the unified object of collecting, comparing and record, make operating system different in virtual machine layer compare with alternately; Also facilitate those skilled in the relevant art to the exploitation of virtual machine layer, analysis and utilization simultaneously.
Wherein, the step of the parameter manifold that described performance parameter is delivered in physical machine by the parameter collection device in described virtual machine comprises: the format conversion of described performance parameter is become predetermined form by the parameter collection device in described virtual machine; Described performance parameter after format conversion is delivered to the parameter manifold in physical machine by the parameter collection device in described virtual machine.
The form dress of the performance parameter that described parameter collection device is collected by described parameter manifold by the above embodiment of the present invention changes unified form into, operating system different in virtual machine layer is compared and alternately, also facilitates those skilled in the relevant art to the exploitation of virtual machine layer simultaneously, compare and analyze.
Wherein, described predetermined form is any one in extended-boundary-condition method, data interchange language JSON, DOM Document Object Model DOM form.
Performance parameter in different system is collected in the document of consolidation form by the parameter collection device that embodiments of the invention provide, and according to the name label (being labeled as name) of correspondence, record numerical value (being labeled as value), sample time, (being labeled as sample-time) carried out record.
Wherein, before the step of the performance parameter of described virtual machine collected by the described utilization parameter collection device corresponding with the operating system of virtual machine, described method also comprises: in response to the operational motion of newly-built virtual machine, creates the parameter manifold of the state for monitoring newly-built virtual machine in physical machine.
Wherein, before the step of the performance parameter of described virtual machine collected by the described utilization parameter collection device corresponding with the operating system of virtual machine, described method also comprises: when the operating system of virtual machine is set up, in virtual machine, create the parameter collection device for collect virtual machine performance parameter corresponding with the operating system of described virtual machine.
The above embodiment of the present invention is specially when newly-built virtual machine, just produces the state of a manifold monitoring virtual machine.When the operating system of virtual machine bottom is set up time, corresponding parameter collection device is implanted in virtual machine and starts to collect performance parameter.No matter its corresponding parameter collection device of parameter manifold existed with process form in physical machine why kind is all of a sort parameter manifold; When virtual machine (vm) migration can be made like this to arrive other physical machine, go to continue to supervise the virtual machine of being come in by migration as long as the physical machine of new catcher produces a manifold, need not judge to set up any parameter manifold.All communication processes are all continued to be connected by parameter manifold and corresponding parameter collection device.And do not receive the response of parameter collection device at certain hour at the parameter manifold of original physical machine, the document for recording can be closed and wait and connect new parameter collection device.
Wherein, the parameter collection device in described virtual machine the step of the parameter manifold described performance parameter be delivered in physical machine are specially: the performance parameter that the performance parameter gatherer in described virtual machine is collected passes to the corresponding parameter manifold of physical machine via the virtual network between physical machine with virtual machine.
The above embodiment of the present invention illustrates that the performance parameter collected by the performance parameter gatherer in virtual machine passes to the corresponding manifold of physical machine by the virtual network between physical machine with virtual machine.
Wherein, describedly to write receiving the acquisition time of described performance parameter by performance parameter and the step be saved in the document of physical machine also comprises at entity pusher side: described parameter manifold is another document newly-built after a Preset Time often, the performance parameter of described document for collecting described in preserving.
The manifold of parameter described in the above embodiment of the present invention is meeting another document newly-built after the time period (such as 24 hours) through presetting, for continuing the performance parameter collected described in preservation.Originally can be kept at for the document of retention parameter is in physical machine, facilitates those skilled in the relevant art to the analysis and comparison of the performance parameter of different time sections in virtual machine.
As shown in Figure 2, embodiments of the invention additionally provide a kind of virtual machine performance parameter collection system, for collecting the performance parameter of multiple virtual machine in physical machine, described system comprises: parameter collection device, corresponding with the operating system of virtual machine, for collecting the performance parameter of described virtual machine at virtual pusher side, and be delivered in the parameter manifold in physical machine; Parameter manifold, for writing at entity pusher side receiving the acquisition time of described performance parameter by performance parameter and be saved in the document of physical machine.
Wherein, described parameter collection device is also for becoming predetermined form by the format conversion of described performance parameter.
Wherein, described predetermined form is any one in extended-boundary-condition method, data interchange language JSON, DOM Document Object Model DOM form.
Wherein, described parameter manifold is also for monitoring the state of newly-built virtual machine.
Wherein, described parameter manifold also for every another document newly-built after a Preset Time, the performance parameter of described document for collecting described in preserving.
The above embodiment of the present invention illustrates that a collocation is at virtual machine layer, no matter the operating system of bottom is Windows or Linux/UNIX, can collect the important performance characteristic of virtual machine as CPU, internal memory, network, the parameter collection device of disk etc.Comprise in Linux/UNIX and Windows system install performance parameter gatherer with collect and conversion performance parameter to unified performance parameter form.Often kind of operating system has one group of corresponding performance parameter list.The performance parameter collected by the performance parameter gatherer in virtual machine passes to the corresponding parameter manifold of physical machine via the virtual network between physical machine with virtual machine.In the document of parameter manifold according to acquisition time write predetermined format, after a document collection completes, then set up a new document and continue to collect performance parameter.
The method and system of virtual machine performance parameter collection provided by the present invention, by the collection of the performance parameter to different operating system, make the parameter collection of virtual machine layer simple and convenient, and reach the unified object of collecting, comparing and record, make operating system different in virtual machine layer compare with alternately; Also facilitate those skilled in the relevant art to the exploitation of virtual machine layer, analysis and utilization simultaneously.
The above is the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the prerequisite not departing from principle of the present invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (12)

1. a method for virtual machine performance parameter collection, for collecting the performance parameter of multiple virtual machine in physical machine, is characterized in that, described method comprises:
The parameter collection device corresponding with the operating system of virtual machine is utilized to collect the performance parameter of described virtual machine at virtual pusher side;
Described parameter collection device is utilized described performance parameter to be delivered to parameter manifold in physical machine at virtual pusher side;
Write at entity pusher side receiving the acquisition time of described performance parameter by performance parameter and be saved in the document of physical machine.
2. method according to claim 1, is characterized in that, the step of the parameter manifold that described performance parameter is delivered in physical machine by the parameter collection device in described virtual machine comprises:
The format conversion of described performance parameter is become predetermined form by the parameter collection device in described virtual machine;
Described performance parameter after format conversion is delivered to the parameter manifold in physical machine by the parameter collection device in described virtual machine.
3. method according to claim 2, is characterized in that, described predetermined form is any one in extended-boundary-condition method, data interchange language JSON, DOM Document Object Model DOM form.
4. method according to claim 1, is characterized in that, before the step of the performance parameter of described virtual machine collected by the described utilization parameter collection device corresponding with the operating system of virtual machine, described method also comprises:
In response to the operational motion of newly-built virtual machine, in physical machine, create the parameter manifold of the state for monitoring newly-built virtual machine.
5. method according to claim 1, is characterized in that, before the step of the performance parameter of described virtual machine collected by the described utilization parameter collection device corresponding with the operating system of virtual machine, described method also comprises:
When the operating system of virtual machine is set up, in virtual machine, create the parameter collection device for collect virtual machine performance parameter corresponding with the operating system of described virtual machine.
6. method according to claim 1, is characterized in that, the parameter collection device in described virtual machine the step of the parameter manifold described performance parameter be delivered in physical machine are specially:
The performance parameter that performance parameter gatherer in described virtual machine is collected passes to the corresponding parameter manifold of physical machine via the virtual network between physical machine with virtual machine.
7. method according to claim 1, is characterized in that, describedly to write receiving the acquisition time of described performance parameter by performance parameter and the step be saved in the document of physical machine also comprises at entity pusher side:
Described parameter manifold is another document newly-built after a Preset Time often, the performance parameter of described document for collecting described in preserving.
8. a virtual machine performance parameter collection system, for collecting the performance parameter of multiple virtual machine in physical machine, is characterized in that, described system comprises:
Parameter collection device, corresponding with the operating system of virtual machine, for collecting the performance parameter of described virtual machine at virtual pusher side, and be delivered in the parameter manifold in physical machine;
Parameter manifold, for writing at entity pusher side receiving the acquisition time of described performance parameter by performance parameter and be saved in the document of physical machine.
9. system according to claim 8, is characterized in that, described parameter collection device is also for becoming predetermined form by the format conversion of described performance parameter.
10. system according to claim 9, is characterized in that, described predetermined form is any one in extended-boundary-condition method, data interchange language JSON, DOM Document Object Model DOM form.
11. systems according to claim 8, is characterized in that, described parameter manifold is also for monitoring the state of newly-built virtual machine.
12. systems according to claim 8, is characterized in that, described parameter manifold also for every another document newly-built after a Preset Time, the performance parameter of described document for collecting described in preserving.
CN201410214667.1A 2014-05-20 2014-05-20 Method and system for collecting performance parameters of virtual machines Pending CN105094943A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410214667.1A CN105094943A (en) 2014-05-20 2014-05-20 Method and system for collecting performance parameters of virtual machines

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410214667.1A CN105094943A (en) 2014-05-20 2014-05-20 Method and system for collecting performance parameters of virtual machines

Publications (1)

Publication Number Publication Date
CN105094943A true CN105094943A (en) 2015-11-25

Family

ID=54575452

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410214667.1A Pending CN105094943A (en) 2014-05-20 2014-05-20 Method and system for collecting performance parameters of virtual machines

Country Status (1)

Country Link
CN (1) CN105094943A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101533366A (en) * 2009-03-09 2009-09-16 浪潮电子信息产业股份有限公司 Method for acquiring and analyzing performance data of server
US20090248611A1 (en) * 2008-03-28 2009-10-01 Vmware, Inc. Trace Collection for a Virtual Machine
CN101986280A (en) * 2010-11-29 2011-03-16 浙江大学 Automatic testing platform for virtual computing system
CN103458020A (en) * 2013-08-28 2013-12-18 华南理工大学 Method and system for monitoring cloud platform based on XCP

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090248611A1 (en) * 2008-03-28 2009-10-01 Vmware, Inc. Trace Collection for a Virtual Machine
CN101533366A (en) * 2009-03-09 2009-09-16 浪潮电子信息产业股份有限公司 Method for acquiring and analyzing performance data of server
CN101986280A (en) * 2010-11-29 2011-03-16 浙江大学 Automatic testing platform for virtual computing system
CN103458020A (en) * 2013-08-28 2013-12-18 华南理工大学 Method and system for monitoring cloud platform based on XCP

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
SY676839: "LoadRunner监控Unix、Windows方法及常用性能指标", 《HTTPS://WENKU.BAIDU.COM/VIEW/BC82D8738E9951E79B8927F2.HTML》 *
刘飞宇: "OpenStack云平台下的虚拟机监控与控制的研究与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Similar Documents

Publication Publication Date Title
CN101520787B (en) Method for storing real-time data
CN103944973A (en) Method and device for collecting logs
CN102761466B (en) IEEE (Institute of Electrical and Electronics Engineers) 1394 bus data record processing system and method
US20150370587A1 (en) Computer-readable recording medium having stored therein outputting program, output apparatus and outputting method
CN103763396A (en) Energy consumption data acquisition unit and method based on multi-protocol parallel acquisition technology
CN204425370U (en) A kind of FC switch supervisory circuit
CN105760236A (en) Data collection method and system of distributed computer cluster
CN109726138A (en) Data memory device and non-volatile formula memory operating method
CN103425568A (en) Method and device for processing log information
CN106330963A (en) Cross-network multi-node log collecting method
CN205563224U (en) Programmable logic controler and data process system
CN102360327A (en) Hard disk status information collection method and device
CN104268003A (en) Memory state migration method applicable to dynamic migration of virtual machine
CN107977167A (en) Optimization method is read in a kind of degeneration of distributed memory system based on correcting and eleting codes
CN103176924A (en) Output device, log collecting method for output device, and storage medium
CN102930614A (en) Integrated vehicle equipment recorder and its recording method
CN101615013A (en) Data collector and data processing method thereof
CN101989322B (en) Method and system for automatically extracting memory features of malicious code
CN104536700A (en) Code stream data rapid storage/reading method and system
CN103929339A (en) Method and system for collecting web data
CN105159817A (en) Log file processing system and method
CN103077080A (en) Method and device for acquiring parallel program performance data based on high performance platform
CN105471607A (en) Tree-shaped monitoring method for large-scale cluster nodes dynamic information
CN105094943A (en) Method and system for collecting performance parameters of virtual machines
CN106468733A (en) A kind of monitoring system of extra-high voltage Lightning Incoming Wave and its monitoring method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20151125