CN102081679B - Computer performance data acquisition method and device - Google Patents
Computer performance data acquisition method and device Download PDFInfo
- Publication number
- CN102081679B CN102081679B CN201110025667A CN201110025667A CN102081679B CN 102081679 B CN102081679 B CN 102081679B CN 201110025667 A CN201110025667 A CN 201110025667A CN 201110025667 A CN201110025667 A CN 201110025667A CN 102081679 B CN102081679 B CN 102081679B
- Authority
- CN
- China
- Prior art keywords
- information
- data
- computing power
- operating position
- power data
- 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.)
- Active
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a computer performance data acquisition method and device, belonging to the field of the acquisition of computer performance data. In the computer performance data acquisition method and device provided by the invention, because a scripting language is adopted to call a system command for circular acquisition of the service condition information of the CPU (Central Processing Unit) and the internal memory of a computer, acquire error log information and judge whether the current system is busy or not, and when the current system is not busy, the scripting language is used to call the system command and send acquired first data information to an appointed server; and acquired second data information is sent to the appointed server by calling a network communication module. By adopting script resident memory to execute the acquisition of computer performance data, the advantages of strong transportability, reduced development work load and greatly-improved development speed are achieved; and meanwhile, resource consumption is lowered, and the influence of performance data acquisition to a user business system can be avoided so as to bring convenience to the user.
Description
Technical field
The present invention relates to the collection field of computing power data, in particular a kind of computing power data collecting methods and harvester.
Background technology
Traditional calculating machine performance collection program is because the commercial interest of protection product is used the good binary code of compiling; Like this for different main frames (IBM, Intel etc.), operating system (AIX; Windows etc.) transplantability is very poor, needs a lot of developments, and software development cycle is long.
And binary code is sightless for the user, can't judge whether capture program influences the code of user application; When the binary code resource consumption was excessive, the user often also can't finely tune the resource consumption that these programs reduce capture program, and so easy regular traffic program that influences custom system brings inconvenience to the user.
Therefore, prior art awaits to improve and development.
Summary of the invention
The technical matters that the present invention will solve is, to the above-mentioned defective of prior art, a kind of computing power data collecting methods and harvester is provided; A kind of CPU of collecting computer is provided, internal memory, disk; Database, the acquisition method of the performance data of middleware and harvester.It has solved portable difference of traditional capture program and the big problem of traditional capture program resource consumption.
The technical scheme that technical solution problem of the present invention is adopted is following:
A kind of computing power data collecting methods wherein, comprises step:
A, system start-up are obtained the configuration information of collecting computer performance data through script, and said configuration information comprises the destination server IP address information that the data that collect send to, and the time cycle information of image data;
The configuration information that B, basis are obtained, through first data message of script language calling system command circle collection computing machine, said first data message comprises the operating position information of CPU and internal memory, and gathers error log information;
The computer CPU that C, basis collect and the operating position information of internal memory judge whether current system is busy, when being, get into step D, otherwise jump to step e;
D, through script language calling network communication module, send first data message that collects according to server ip address information to specified server, and return step B after waiting for for first schedule time;
E, not busy when current system, whether the first data information acquisition cycle of then detecting arrives, and when being, passes through second data message of script collecting computer, and second data message that will collect calls the network communication module and sends to specified server.
Described computing power data collecting methods wherein, also comprises step before the said steps A:
A, configuration need the computing power data parameters of collection.
Described computing power data collecting methods, wherein, said step B also comprises:
B1, to the computer CPU gathered and the operating position information of internal memory, and acquisition hardware error log information carries out initial analysis, judged whether hard error, when being, generates the relevant hardware error message.
Described computing power data collecting methods, wherein, said step e also comprises: when detecting first data information acquisition cycle no show, waited for for second schedule time, return step B.
Described computing power data collecting methods, wherein, said system is busy to be that the utilization factor of current system surpasses 90%.
Described computing power data collecting methods, wherein, said second data message comprises: the disk operating position information of computing machine, network interface card information, network port information, virtual memory operating position information.
Described computing power data collecting methods, wherein, it also comprises step: F, when system closedown, stops the collection of computing power data.
A kind of harvester of computing power data wherein, comprising:
The configuration information acquisition module is used for obtaining through script the configuration information of collecting computer performance data, and said configuration information comprises the destination server IP address information that the data that collect send to, and the time cycle information of image data;
First acquisition module is used for according to the configuration information that obtains, and through first data message of script language calling system command circle collection computing machine, said first data message comprises the operating position information of CPU and internal memory, and gathers error log information;
First judge module is used for judging according to the computer CPU that collects and the operating position information of internal memory whether current system is busy;
Second judge module, it is not busy to be used for working as current system, and whether the first data information acquisition cycle of then detecting arrives;
Second acquisition module is used for arriving when the first data information acquisition cycle, then passes through second data message of script collecting computer;
The network communication module is used on the one hand current system when not busy, through the script language calling system command, sends first data message that collects according to above-mentioned server ip address to specified server; Second data message that is used on the other hand and will collects calls the network communication module and sends to specified server;
The master routine control module is used for being responsible for calculating collection period, calls each module and carries out work.
The harvester of described computing power data, wherein, it also comprises:
Configuration module is used to dispose the computing power data parameters that needs collection;
Analysis module is used for the computer CPU and the operating position information of internal memory to gathering, and acquisition hardware error log information carries out initial analysis, has judged whether hard error, when being, and the error message of generation relevant hardware;
Finish module, be used for when system closedown, stopping the collection of computing power data.
The harvester of described computing power data, wherein, said second data message comprises: the disk operating position information of computing machine, network interface card information, network port information, virtual memory operating position information;
Said system is busy to be that the utilization factor of current system surpasses 90%.
Computing power data collecting methods provided by the present invention and harvester; Owing to adopted through the CPU of script language calling system command circle collection computing machine and the operating position information of internal memory; And gather error log information, judge whether current system is busy, when current system is not busy; Through the script language calling system command, send first data message that collects and arrive specified server; And second data message that will collect calls the network communication module and sends to specified server.Through adopting the collection of script memory-resident object computer performance data.It is portable strong, has reduced the development amount, and tempo of development is improved greatly; And reduced resource consumption, and can avoid the influence of performance data collection to subscriber service system, provide users with the convenient.
Description of drawings
Fig. 1 is the computing power data collecting methods process flow diagram of the embodiment of the invention.
Fig. 2 is the harvester theory diagram of the computing power data of the embodiment of the invention.
Embodiment
The present invention provides a kind of computing power data collecting methods and harvester, and a kind of CPU of collecting computer is provided, internal memory, disk, database, the acquisition method of the performance data of middleware and harvester.It can solve portable difference of traditional capture program and the big problem of traditional capture program resource consumption.
For making the object of the invention, technical scheme and advantage clearer, clear and definite, below develop simultaneously embodiment to further explain of the present invention with reference to accompanying drawing.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
A kind of computing power data collecting methods that the embodiment of the invention provides, as shown in Figure 1, mainly may further comprise the steps:
Step S110, configuration need the computing power data parameters of collection.
In the present embodiment when being the collection to computing machine Windows operating system data; To different version of windows; Comprise Window98, windows2000, Windows XP, Windows 2003, Windows vista, Windows 2008, Windows 7 etc.; The data of monitor control index different acquisition also different, to realize concrete monitoring.Configuration needs the computing power data parameters of collection corresponding one by one with the monitor control index of each system.Concrete monitor control index is as shown in the table:
Dispose the computing power data parameters that needs collection, got into step S120.
Step S120, system start-up are obtained the configuration information of collecting computer performance data through script, and said configuration information comprises the destination server IP address information that the data that collect send to, and the time cycle information of image data.
Be at first to obtain configuration information through script in the embodiment of the invention, where send to after confirming to collect data how much acquisition interval time is.Wherein script (script) is to use a kind of specific descriptive language, and the executable file according to certain form is write is called grand or autoexec again.
The configuration information that step S130, basis are obtained, through first data message of script language calling system command circle collection computing machine, said first data message comprises the operating position information of CPU and internal memory, and gathers error log information.
Wherein, the computer CPU and the operating position information of internal memory also in this step to gathering, and acquisition hardware error log information carries out initial analysis, judged whether hard error, and when being, the error message of generation relevant hardware.
The computer CPU that step S140, basis collect and the operating position information of internal memory; Judge whether current system is busy; Whether the utilization factor of promptly judging current system (CPU and internal memory) surpasses 90% (can certainly the people for being set at other; As the utilization factor that current system is set is to surpass 95% for busy), when being, get into step S150, otherwise jump to step S160.
Step S150, through script language calling network communication module; Send first data message that collects according to above-mentioned server ip address and arrive specified server; And waited for for first schedule time and return step S130 after (for example 1 second), proceed the collection of computing power data.
Step S160, when current system not busy; Whether the first data information acquisition cycle of then detecting arrives; Such as, when the first data information acquisition cycle was 30 seconds, then when gathering first data message, need judge whether 30 seconds of the first data information acquisition cycle; When being, pass through second data message of script collecting computer, and second data message that will collect calls the network communication module and sends to specified server.
Wherein, said second data message comprises: the disk operating position information of computing machine, network interface card information, network port information, virtual memory operating position information etc., and specifically shown in previous table.
And when detecting first data information acquisition cycle no show, waited for for second schedule time (for example 1 second), and return step S130, proceed the collection of computing power data.
The operation of script memory-resident starts with system boot in the embodiment of the invention, and is out of service when system closedown.Promptly when system closedown, stop the collection of computing power data.
Script technology is ripe now, and on common PC, using has had 23 years, is commonly used to Backup Data, copied files etc.; The present invention is with script calls operating system command, API, web interface etc., and image data again through network, sends to specified server (like the ITools server) and goes up displaying, makes traditional shell script obtain new application.
Script is to explain to carry out, and portable good, WinNT ~ Win7 can use same script, and can not on NT, move at the binary program that compiles on the Win7, and binary program operational efficiency on Win7 of the last compiling of NT is a problem again.In systems such as AIX/HP UX/Linux, script is that operating system is subsidiary, does not need other paying.Use script technology, improved tempo of development greatly.
Because script all is a text message, so the user can carry out safe examination easily, the user also can suitably adjust program, keeps watch on own required data, and data acquisition increases resource consumption comprehensively.
Everyone can collect through the data that order or webpage are checked in theory, and normal data of gathering are just like shown in the aforementioned table in the actual items.
Below computing power data collecting methods of the present invention is done further detailed explanation through a concrete application implementation example:
For example, copy script to the computing machine that needs collecting performance data, edit script; Suitably revise the system command that image data is used, fill given server (being destination server), for example the address and the port of certain ITools of company server; Run Script, just can image data.
Be exemplified below:
Suppose that the ITools server ip address is 192.168.1.100, port is 8000, and the server that monitor is Linux, and script name can use vmstat linux_agent.pl, free, and top, df, ifconfig orders collection, gathers once in per 10 seconds; Just in configuration file, fill these parameters, upload to the server that to monitor to script and configuration file.Pass through order line
nohup?./linux_agent.pl?&
Start to the backstage, the works that script is just write by the front.
Vmstat and free order obtains the text message of CPU internal memory earlier, such as following one section
procs?-----------memory----------?---swap--?-----io----?-system--?-----cpu------
r b ?swpd ?free ?buff cache ?si ?so bi bo ?in ?cs?us?sy?id?wa?st
2 0 0 89280 ?8808?242076 0 0 2061 ?182 250 803?12?15?54?19 0
Wherein, Itools is that certain company of company is the name that display platform rises.
Linux is a kind of operating system;
Vmstat, free, top, df, ifconfig are the orders that operating system is used.
Get in the information, procs is a progress information; R representes to wait for the process number of operation, is 2 here; B representes the number of processes of undesired dormancy, is 0. here
Memory is a memory information, and swpd is the virtual memory operating position, and value is 0; Free is a free memory, 89280, and unit is K; How many internal memories of buff are used for doing buffering, and value is 8088, and unit is K; How many internal memories cache has be used for doing speed buffering, and value is 242076, and unit is K;
Swap is the situation of virtual memory and disk transmission, and si is that the per second internal memory transmits data to the disk number of times, and value is 0 at present; So is that the per second disk transmits data to the internal memory number of times, and value is 0 at present;
Io is the input-output device operating position, and bi is the number of times that per second is read from input equipment, and value is 2061 at present; Bo is the number of times that per second is write output device, and value is 182 at present;
System is the operating system situation, and in is the per second number of interruptions, and value is 250 at present; Cs is a per second process switching number of times, 803;
Cpu is the utilization rate number percent of central processing unit, and us is that non-operating system takies, and value is 12 at present; Sy is that the operating system kernel code takies, and value is 15 at present; Id is an idleness, and value is 54 at present; Wa is that occupancy is waited in input and output, and value is 19 at present; St is virtual working method occupancy, and value is 0 at present.
Behind the script, if think that resource is nervous, the occupancy of CPU or internal memory surpasses 90%, for example reaches 99%, and orders such as the top of back have not just been gathered, and script gets into dormant state, waits for next time and gathering.
If resource takes it easy, will use the top order to obtain following text message, send to configuration file specified server and port.
[top]
top?-?15:10:40?up?0?min,?0?users,?load?average:?1.64,?0.38,?0.13
Tasks:?75?total,?3?running,?72?sleeping,?0?stopped,?0?zombie
Cpu(s):?12.7%us,?27.4%sy,?0.0%ni,?0.0%id,?59.9%wa,?0.0%hi,?0.0%si,?0.0%st
Mem:?505820k?total,?214984k?used,?290836k?free,?6500k?buffers
Swap:?1164672k?total,?0k?used,?1164672k?free,?152220k?cached
PID?USER?PR?NI?VIRT?RES?SHR?S?%CPU?%MEM?TIME+?COMMAND
2600?root?20?0?277m?15m?6308?S?12.3?3.2?0:00.98?java
3340?root?20?0?183m?10m?5628?S?11.3?2.1?0:00.36?iTools_server
2896?oracle?20?0?277m?26m?25m?D?10.0?5.3?0:00.38?oracle
3350?root?20?0?57652?6048?4988?S?1.3?1.2?0:00.06?StrategyEngine
3351?root?20?0?58584?5700?4300?S?1.3?1.1?0:00.06?OperationInterf
2194?root?20?0?3528?1128?920?S?0.7?0.2?0:00.02?hald-runner
3354?root?20?0?46768?5124?4368?S?0.7?1.0?0:00.04?V6PESubSystem
1?root?20?0?1008?384?332?S?0.0?0.1?0:01.88?init
2?root?15?-5?0?0?0?S?0.0?0.0?0:00.00?kthreadd
3?root?RT?-5?0?0?0?S?0.0?0.0?0:00.00?migration/0
4?root?15?-5?0?0?0?S?0.0?0.0?0:00.00?ksoftirqd/0
5?root?15?-5?0?0?0?S?0.0?0.0?0:00.00?events/0
6?root?15?-5?0?0?0?S?0.0?0.0?0:00.00?khelper
7?root?15?-5?0?0?0?S?0.0?0.0?0:00.00?kintegrityd/0
8?root?15?-5?0?0?0?S?0.0?0.0?0:00.00?kblockd/0
9?root?15?-5?0?0?0?S?0.0?0.0?0:00.00?kacpid
10?root?15?-5?0?0?0?S?0.0?0.0?0:00.00?kacpi_notify
11?root?15?-5?0?0?0?S?0.0?0.0?0:00.00?cqueue
12?root?15?-5?0?0?0?S?0.0?0.0?0:00.00?kseriod
13?root?15?-5?0?0?0?S?0.0?0.0?0:00.00?kondemand/0
14?root?20?0?0?0?0?S?0.0?0.0?0:00.00?pdflush
15?root?20?0?0?0?0?S?0.0?0.0?0:00.00?pdflush
16?root?15?-5?0?0?0?S?0.0?0.0?0:00.00?kswapd0
17?root?15?-5?0?0?0?S?0.0?0.0?0:00.00?aio/0
18?root?15?-5?0?0?0?S?0.0?0.0?0:00.00?kpsmoused
62?root?15?-5?0?0?0?S?0.0?0.0?0:00.00?mpt_poll_0
63?root?15?-5?0?0?0?S?0.0?0.0?0:00.00?mpt/0
64?root?15?-5?0?0?0?S?0.0?0.0?0:00.00?scsi_eh_0
68?root?15?-5?0?0?0?R?0.0?0.0?0:00.02?ata/0
69?root?15?-5?0?0?0?S?0.0?0.0?0:00.00?ata_aux
75?root?15?-5?0?0?0?S?0.0?0.0?0:00.00?scsi_eh_1
76?root?15?-5?0?0?0?S?0.0?0.0?0:00.02?scsi_eh_2
226?root?15?-5?0?0?0?S?0.0?0.0?0:00.00?ksuspend_usbd
227?root?15?-5?0?0?0?S?0.0?0.0?0:00.00?khubd
638?root?15?-5?0?0?0?S?0.0?0.0?0:00.00?kjournald
707?root?16?-4?2832?1256?384?S?0.0?0.2?0:00.08?udevd
1334?root?15?-5?0?0?0?S?0.0?0.0?0:00.00?kgameportd
1398?root?15?-5?0?0?0?S?0.0?0.0?0:00.00?kauditd
1412?root?15?-5?0?0?0?S?0.0?0.0?0:00.00?kstriped
1901?root?20?0?2944?1384?1140?S?0.0?0.3?0:00.00?rc
1920?root?-51?0?10176?500?392?S?0.0?0.1?0:00.04?blogd
1929?root?20?0?1776?644?508?S?0.0?0.1?0:00.02?startpar
1944?root?20?0?2596?824?596?S?0.0?0.2?0:00.00?syslog-ng
1947?root?20?0?1912?596?392?S?0.0?0.1?0:00.00?klogd
1959?messageb?20?0?2712?804?592?S?0.0?0.2?0:00.00?dbus-daemon
1984?root?20?0?1776?568?488?S?0.0?0.1?0:00.00?acpid
2128?haldaemo?20?0?6808?4380?3700?S?0.0?0.9?0:00.42?hald
2131?root?20?0?8300?2176?1432?S?0.0?0.4?0:00.00?console-kit-dae
2325?root?15?-5?0?0?0?S?0.0?0.0?0:00.00?vmmemctl
2412?root?20?0?3648?1080?920?S?0.0?0.2?0:00.00?hald-addon-inpu
2444?root?20?0?3652?1096?932?S?0.0?0.2?0:00.00?hald-addon-stor
2447?haldaemo?20?0?3376?1032?868?S?0.0?0.2?0:00.00?hald-addon-acpi
2448?root?20?0?3652?1100?936?D?0.0?0.2?0:00.00?hald-addon-stor
2452?root?20?0?3076?1428?1108?S?0.0?0.3?0:00.00?oracle-xe
2620?root?20?0?5832?2688?2204?S?0.0?0.5?0:00.10?vmtoolsd
2661?oracle?20?0?21724?5716?4160?S?0.0?1.1?0:00.04?tnslsnr
2696?root?20?0?776?240?204?S?0.0?0.0?0:00.00?tpvmlp
2697?root?20?0?7392?2540?1852?S?0.0?0.5?0:00.02?cupsd
2713?root?20?0?4628?724?420?S?0.0?0.1?0:00.00?bash
2716?root?20?0?1776?428?360?S?0.0?0.1?0:00.00?startpar
2717?root?20?0?2824?1280?984?S?0.0?0.3?0:00.00?su
2718?oracle?20?0?20336?6472?4652?S?0.0?1.3?0:00.04?sqlplus
2719?root?20?0?12188?9468?3132?S?0.0?1.9?0:00.30?monitor.pl
3318?root?20?0?2316?604?412?S?0.0?0.1?0:00.04?rpcbind
3325?root?20?0?12140?7136?808?S?0.0?1.4?0:00.00?monitor.pl
3326?root?20?0?12140?7440?1112?S?0.0?1.5?0:00.00?monitor.pl
3332?root?20?0?12140?6924?596?S?0.0?1.4?0:00.00?monitor.pl
3335?root?20?0?3216?652?476?S?0.0?0.1?0:00.00?sh
3339?root?20?0?3216?652?476?S?0.0?0.1?0:00.00?sh
3342?root?20?0?6056?3528?2380?S?0.0?0.7?0:00.04?linux_agent.pl
3345?root?20?0?3216?656?476?S?0.0?0.1?0:00.00?sh
3348?root?20?0?3216?648?472?S?0.0?0.1?0:00.00?sh
3353?root?20?0?3216?652?476?S?0.0?0.1?0:00.00?sh
3358?root?20?0?2436?1072?848?R?0.0?0.2?0:00.00?top
3392?root?20?0?4244?1180?992?R?0.0?0.2?0:00.00?hald-probe-stor?。
Other orders also can be carried out in proper order, and image data sends to given server.After all gathering completion, script gets into dormant state, waits for next time and gathering.
Therefore the computing power data collecting methods that the embodiment of the invention provides provides a kind of CPU of collecting computer, internal memory, disk, database, the acquisition method of the performance data of middleware and harvester.It has solved portable difference of traditional capture program and the big problem of traditional capture program resource consumption.
Based on the computing power data collecting methods of the foregoing description, the embodiment of the invention also provides a kind of harvester of computing power data, and is as shown in Figure 2, comprising:
Configuration information acquisition module 220 is used for obtaining through script the configuration information of collecting computer performance data, and said configuration information comprises the destination server IP address information that the data that collect send to, and the time cycle information of image data.
Master routine control module 290 is used for being responsible for calculating collection period, calls each module and carries out work.
When can also adopting, said harvester comprises:
Finish module, be used for when system closedown, stopping the collection of computing power data
Wherein, said second data message comprises: the disk operating position information of computing machine, network interface card information, network port information, virtual memory operating position information etc.Said system is busy to be that the utilization factor of current system surpasses 90%.
In sum; Computing power data collecting methods provided by the present invention and harvester, owing to adopted through the CPU of script language calling system command circle collection computing machine and the operating position information of internal memory, and gather error log information; Judge whether current system is busy; When current system is not busy,, sends first data message that collects and arrive specified server through the script language calling system command; And second data message that will collect calls the network communication module and sends to specified server.Through adopting the collection of script memory-resident object computer performance data.It is portable strong, has reduced the development amount, and tempo of development is improved greatly; And reduced resource consumption, and can avoid the influence of performance data collection to subscriber service system, provide users with the convenient.
Should be understood that application of the present invention is not limited to above-mentioned giving an example, concerning those of ordinary skills, can improve or conversion that all these improvement and conversion all should belong to the protection domain of accompanying claims of the present invention according to above-mentioned explanation.
Claims (1)
1. a computing power data collecting methods is characterized in that, comprises step:
A, system start-up are obtained the configuration information of collecting computer performance data through script, and said configuration information comprises the destination server IP address information that the data that collect send to, and the time cycle information of image data;
The configuration information that B, basis are obtained, through first data message of script language calling system command circle collection computing machine, said first data message comprises the operating position information of CPU and internal memory, and gathers error log information;
The computer CPU that C, basis collect and the operating position information of internal memory judge whether current system is busy, when being, get into step D, otherwise jump to step e;
D, through script language calling network communication module, send first data message that collects according to server ip address information to specified server, and return step B after waiting for for first schedule time;
E, not busy when current system, whether the first data information acquisition cycle of then detecting arrives, and when being, passes through second data message of script collecting computer, and second data message that will collect calls the network communication module and sends to specified server.
2, computing power data collecting methods according to claim 1 is characterized in that, also comprises step before the said steps A:
A, configuration need the computing power data parameters of collection.
3, computing power data collecting methods according to claim 1 is characterized in that, said step B also comprises:
B1, to the computer CPU gathered and the operating position information of internal memory, and acquisition hardware error log information carries out initial analysis, judged whether hard error, when being, generates the relevant hardware error message.
4, computing power data collecting methods according to claim 1 is characterized in that, said step e also comprises: when detecting first data information acquisition cycle no show, waited for for second schedule time, return step B.
5, computing power data collecting methods according to claim 1 is characterized in that, said system is busy to be that the utilization factor of current system CPU and internal memory surpasses 90%.
6, computing power data collecting methods according to claim 1 is characterized in that, said second data message comprises: the disk operating position information of computing machine, network interface card information, network port information, virtual memory operating position information.
According to each described computing power data collecting methods of claim 1-6, it is characterized in that 7, it also comprises step: F, when system closedown, stop the collection of computing power data.
8, a kind of harvester of computing power data is characterized in that, comprising:
The configuration information acquisition module is used for obtaining through script the configuration information of collecting computer performance data, and said configuration information comprises the destination server IP address information that the data that collect send to, and the time cycle information of image data;
First acquisition module is used for according to the configuration information that obtains, and through first data message of script language calling system command circle collection computing machine, said first data message comprises the operating position information of CPU and internal memory, and gathers error log information;
First judge module is used for judging according to the computer CPU that collects and the operating position information of internal memory whether current system is busy;
Second judge module, it is not busy to be used for working as current system, and whether the first data information acquisition cycle of then detecting arrives;
Second acquisition module is used for arriving when the first data information acquisition cycle, then passes through second data message of script collecting computer;
The network communication module is used on the one hand current system when not busy, through the script language calling system command, sends first data message that collects according to above-mentioned server ip address to specified server; Be used for that on the other hand second data message that collects is called the network communication module and send to specified server;
The master routine control module is used for being responsible for calculating collection period, calls each module and carries out work.
9, the harvester of computing power data according to claim 8 is characterized in that, it also comprises:
Configuration module is used to dispose the computing power data parameters that needs collection;
Analysis module is used for the computer CPU and the operating position information of internal memory to gathering, and acquisition hardware error log information carries out initial analysis, has judged whether hard error, when being, and the error message of generation relevant hardware;
Finish module, be used for when system closedown, stopping the collection of computing power data.
10, the harvester of computing power data according to claim 8 is characterized in that, said second data message comprises: the disk operating position information of computing machine, network interface card information, network port information, virtual memory operating position information;
Said system is busy to be that the utilization factor of current system CPU and internal memory surpasses 90%.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110025667A CN102081679B (en) | 2011-01-24 | 2011-01-24 | Computer performance data acquisition method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110025667A CN102081679B (en) | 2011-01-24 | 2011-01-24 | Computer performance data acquisition method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102081679A CN102081679A (en) | 2011-06-01 |
CN102081679B true CN102081679B (en) | 2012-10-03 |
Family
ID=44087640
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110025667A Active CN102081679B (en) | 2011-01-24 | 2011-01-24 | Computer performance data acquisition method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102081679B (en) |
Families Citing this family (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102821003A (en) * | 2011-12-07 | 2012-12-12 | 金蝶软件(中国)有限公司 | Method and system for patrolling system resource performances |
CN103595650B (en) * | 2012-08-16 | 2018-02-09 | 华耀(中国)科技有限公司 | A kind of load-balancing device strategy custom-built system and method |
CN103207827B (en) * | 2013-04-19 | 2016-03-16 | 北京百度网讯科技有限公司 | Based on the method and apparatus detecting IO focus under linux system |
CN103336726B (en) * | 2013-07-10 | 2016-08-31 | 北京百度网讯科技有限公司 | The method and apparatus of multitask conflict in detection linux system |
CN104516803B (en) * | 2013-09-27 | 2018-04-27 | 腾讯科技(深圳)有限公司 | A kind of electronic equipment information monitoring method, system and electronic equipment |
CN104732285A (en) * | 2013-12-19 | 2015-06-24 | 中兴通讯股份有限公司 | Performance optimizing strategy obtaining and terminal performance optimizing method, server and terminal |
CN104750041B (en) * | 2013-12-27 | 2019-01-04 | 研祥智能科技股份有限公司 | Abnormality monitoring method and system in WinCE system |
CN105224433B (en) * | 2014-06-23 | 2018-04-10 | 阿里巴巴集团控股有限公司 | A kind of internal memory monitoring method and server |
CN104932963B (en) * | 2015-05-29 | 2019-03-08 | Oppo广东移动通信有限公司 | The method and device of management terminal |
CN105701151B (en) * | 2015-12-29 | 2019-09-24 | 浪潮(北京)电子信息产业有限公司 | A kind of system information acquisition method and device |
CN106775833B (en) * | 2016-11-28 | 2021-03-16 | 青岛海信移动通信技术股份有限公司 | Device driver loading method, terminal and system |
CN107066116B (en) * | 2017-04-13 | 2021-07-30 | 海信视像科技股份有限公司 | Character string generation method, character analysis method and device |
CN107222361A (en) * | 2017-05-24 | 2017-09-29 | 深圳市牛鼎丰科技有限公司 | Collecting method, system, computer equipment and medium |
CN107329876A (en) * | 2017-06-29 | 2017-11-07 | 喀什博雅成信网络科技有限公司 | A kind of server operation and monitoring method and system |
CN109240844B (en) * | 2018-08-20 | 2022-03-22 | 成都国科微电子有限公司 | Log obtaining method and system |
CN110908876B (en) * | 2018-09-18 | 2023-03-28 | 阿里巴巴集团控股有限公司 | Method and device for acquiring hardware performance data |
CN111586134A (en) * | 2020-04-29 | 2020-08-25 | 新浪网技术(中国)有限公司 | CDN node overload scheduling method and system |
CN113718529A (en) * | 2021-10-11 | 2021-11-30 | 广东彩格科技有限公司 | Waterborne polyurethane adhesive cement emulsion for textile printing and preparation method thereof |
CN116302797A (en) * | 2023-02-03 | 2023-06-23 | 安芯网盾(北京)科技有限公司 | Method and system for collecting health state of server software |
CN117793764A (en) * | 2023-12-27 | 2024-03-29 | 广东宜通衡睿科技有限公司 | 5G private network soft probe dial testing data integrity checksum completion method and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1795446A (en) * | 2003-05-27 | 2006-06-28 | 诺基亚公司 | Data collection in a computer cluster |
WO2008112791A2 (en) * | 2007-03-12 | 2008-09-18 | Emerson Process Management Power & Water Solutions, Inc. | Method and apparatus for generalized performance evaluation of equipment using achievable performance derived from statistics and real-time data |
CN101533366A (en) * | 2009-03-09 | 2009-09-16 | 浪潮电子信息产业股份有限公司 | Method for acquiring and analyzing performance data of server |
CN101799506A (en) * | 2010-04-21 | 2010-08-11 | 广州市广晟微电子有限公司 | Chip test method, device and system based on script control |
-
2011
- 2011-01-24 CN CN201110025667A patent/CN102081679B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1795446A (en) * | 2003-05-27 | 2006-06-28 | 诺基亚公司 | Data collection in a computer cluster |
WO2008112791A2 (en) * | 2007-03-12 | 2008-09-18 | Emerson Process Management Power & Water Solutions, Inc. | Method and apparatus for generalized performance evaluation of equipment using achievable performance derived from statistics and real-time data |
CN101533366A (en) * | 2009-03-09 | 2009-09-16 | 浪潮电子信息产业股份有限公司 | Method for acquiring and analyzing performance data of server |
CN101799506A (en) * | 2010-04-21 | 2010-08-11 | 广州市广晟微电子有限公司 | Chip test method, device and system based on script control |
Also Published As
Publication number | Publication date |
---|---|
CN102081679A (en) | 2011-06-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102081679B (en) | Computer performance data acquisition method and device | |
Gordon et al. | Accelerating mobile applications through flip-flop replication | |
US10482104B2 (en) | Zero-data loss recovery for active-active sites configurations | |
CN106127036B (en) | The worker process of duration and elasticity | |
CN101403983B (en) | Resource monitoring method and system for multi-core processor based on virtual machine | |
US9684534B2 (en) | Monitoring and modifying allocated computing resources | |
CN105872016B (en) | The operation method of virtual machine in a kind of desktop cloud | |
JP2018045671A (en) | Method and apparatus for scheduling cloud server | |
US9584438B2 (en) | Idle worker-process page-out | |
CN102591668B (en) | Device, method and system for updating elastic computing cloud system | |
CN102088485A (en) | Method and device for acquiring data | |
CN102981957A (en) | Virtual breakpoint script debugging method | |
CA2966161A1 (en) | Monitoring and correlating a binary process in a distributed business transaction | |
US9176783B2 (en) | Idle transitions sampling with execution context | |
US11934665B2 (en) | Systems and methods for ephemeral storage snapshotting | |
WO2024012003A1 (en) | Data processing method and apparatus, and device, storage medium and program product | |
CN105512000A (en) | Method and device for collecting abnormal information of operating system, and computer | |
CN103995772A (en) | RAID card log completely-storing method based on LINUX operation system | |
CN111625344B (en) | Resource scheduling system, method and device in application system | |
CN112783713A (en) | Method, device, equipment and storage medium for processing multi-core virtual machine stuck | |
US7779063B2 (en) | Automatic benefit analysis of dynamic cluster management solutions | |
Sahraei et al. | XFaaS: Hyperscale and Low Cost Serverless Functions at Meta | |
US9852140B1 (en) | Efficient file replication | |
US11416318B1 (en) | Application programming interface for integration flow design | |
CN112764837B (en) | Data reporting method, device, storage medium and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C56 | Change in the name or address of the patentee | ||
CP01 | Change in the name or title of a patent holder |
Address after: 518057 Nanshan District, Shenzhen Province, high tech, No. three, No. 2 Shenzhen Software Park, building seven, building four, building Patentee after: Shenzhen Polytron Technologies Inc Address before: 518057 Nanshan District, Shenzhen Province, high tech, No. three, No. 2 Shenzhen Software Park, building seven, building four, building Patentee before: Shenzhen Xbrother Technology Co., Ltd. |