CN104657273A - Method for testing system resources occupied by software - Google Patents

Method for testing system resources occupied by software Download PDF

Info

Publication number
CN104657273A
CN104657273A CN201510097757.1A CN201510097757A CN104657273A CN 104657273 A CN104657273 A CN 104657273A CN 201510097757 A CN201510097757 A CN 201510097757A CN 104657273 A CN104657273 A CN 104657273A
Authority
CN
China
Prior art keywords
software
resource
testing
average
system resource
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
CN201510097757.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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry 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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201510097757.1A priority Critical patent/CN104657273A/en
Publication of CN104657273A publication Critical patent/CN104657273A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a method for testing system resources occupied by software, and belongs to the field of system resource monitoring. The testing method comprises the following steps: monitoring Linux system resources (including a CPU (Central Processing Unit), a memory, a hard disk and a network card); testing the average resource occupation condition of a system before the software is installed; testing the average resource occupation condition of the system after the software is installed; comparing the two average resource occupation conditions to obtain the system resource occupation condition of a software product. Compared with the prior art, the method has the characteristics that a plurality of indexes are monitored simultaneously, information is recorded intuitively, recorded data is reliable, the data average value is acquired rapidly, and the like; high practicability and good popularization and application values are achieved.

Description

A kind of method of testing of software occupying system resources
Technical field
The present invention relates to system resource monitoring field, specifically a kind of method of testing of software occupying system resources.
Background technology
Along with the fast development of Software Industry, more and more higher to the quality requirements of software product, because software complexity is more and more higher corresponding also increasing to taking of system resource, as the cpu resource in system resource, memory source, hard disk resources, network interface card (network) resource etc.But, software certainly will bring system to carry out the problems such as slow to taking in a large number of system resource, therefore the take situation of software product to system resource becomes the whether practical important indicator of measurement software product, and how Validity Test goes out the situation that takies of software product to system resource is the technical matters being badly in need of now solving.
Although traditional testing software can test out software product and take situation in real time to system resource, but still has the following disadvantages: one, testing software needs occupying system resources; Two, due to interval writing time can not be controlled, therefore can not assembly average, test preparation has much room for improvement; Three, testing efficiency is lower.
Summary of the invention
Technical assignment of the present invention is for above-mentioned the deficiencies in the prior art, provides a kind of method of testing of practical software occupying system resources.
Method of testing of the present invention is by the monitoring (comprising CPU, internal memory, hard disk, network interface card) to linux system resource, average resource before the non-mounting software of test macro takies situation, average resource again after test macro mounting software takies situation, both contrasts are shown software product takies situation to system resource, there is many index monitor simultaneously, recorded information is directly perceived, and record data are reliable, the feature of quick obtaining statistical average.
Technical assignment of the present invention realizes in the following manner: a kind of method of testing of software occupying system resources, comprises the following steps:
One, by the monitoring to linux system resource, the average resource before the non-mounting software of test macro takies situation;
Two, by the monitoring to linux system resource, the average resource after test macro mounting software takies situation;
Three, step one, step 2 the data obtained are contrasted, can show that software product takies situation to system resource.
As preferably, the method of testing that average resource takies situation is: by sysstat to every system resource unified monitoring, and exports, by the service condition of every system resource with text mode, count the mean value that system resource uses, namely obtain average resource and take situation.
In said method, described system resource is cpu resource, memory source, hard disk resources and/or network interface card resource.
Compared with prior art, the method for testing of software occupying system resources of the present invention has many index and monitors simultaneously, and recorded information is directly perceived, and record data are reliable, and the features such as quick obtaining statistical average, specifically, have following outstanding beneficial effect:
(1) adopt sysstat method of testing, can test out simultaneously cpu resource, memory source, hard disk resources, network interface card resource take situation, testing efficiency improves nearly 4 times than traditional test mode;
(2) by regulating interval writing time, monitoring or short time interval for a long time can be realized and precisely test;
(3) can the information that will monitor of unrestricted choice, such as only select the occupation condition of monitoring CPU and internal memory, monitor mode is flexible, is applicable to the test of the system resources consumption situation under various different scene.
Accompanying drawing explanation
Accompanying drawing 1 is the process flow diagram of the method for testing of software occupying system resources of the present invention.
Embodiment
Be described in detail below with the method for testing of specific embodiment to software occupying system resources of the present invention with reference to Figure of description.
Embodiment one: the situation taking cpu resource, memory source, hard disk resources and network interface card resource
Method of testing comprises the following steps (as shown in Figure 1):
One, before installation software under testing, start sysstat and carry out unified monitoring to the cpu resource of linux system, memory source, hard disk resources and network interface card resource, the monitor data not installing each resource during software under testing exports with text mode.By the service condition of every system resource, count the mean value that system resource uses, the average resource namely obtained before non-mounting software takies situation;
Two, install software under testing, after utilizing method test mounting software described in step one, the average resource of linux system takies situation;
Three, step one, step 2 the data obtained are contrasted, the test report of system resource situation shared by software under testing can be obtained.
Step one, two test process in all adopt interval 10 seconds, continuous surveillance 10 minutes, to ensure reliability and the accuracy of data.
Embodiment two: the situation taking cpu resource and memory source
Method of testing comprises the following steps (as shown in Figure 1):
One, before installation software under testing, start sysstat and carry out unified monitoring to the cpu resource of linux system and memory source, the monitor data not installing each resource during software under testing exports with text mode.By the service condition of every system resource, count the mean value that system resource uses, the average resource namely obtained before non-mounting software takies situation;
Two, install software under testing, after utilizing method test mounting software described in step one, the average resource of linux system takies situation;
Three, step one, step 2 the data obtained are contrasted, the test report of system resource situation shared by software under testing can be obtained.
Step one, two test process in all adopt interval 5 seconds, continuous surveillance 5 minutes, to ensure reliability and the accuracy of data.

Claims (3)

1. a method of testing for software occupying system resources, is characterized in that comprising the following steps:
One, by the monitoring to linux system resource, the average resource before the non-mounting software of test macro takies situation;
Two, by the monitoring to linux system resource, the average resource after test macro mounting software takies situation;
Three, step one, step 2 the data obtained are contrasted, can show that software product takies situation to system resource.
2. the method for testing of software occupying system resources according to claim 1, it is characterized in that: the method for testing that average resource takies situation is: by sysstat to every system resource unified monitoring, and export with text mode, by the service condition of every system resource, count the mean value that system resource uses, namely obtain average resource and take situation.
3. the method for testing of software occupying system resources according to claim 1 or 2, is characterized in that: described system resource is cpu resource, memory source, hard disk resources and/or network interface card resource.
CN201510097757.1A 2015-03-05 2015-03-05 Method for testing system resources occupied by software Pending CN104657273A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510097757.1A CN104657273A (en) 2015-03-05 2015-03-05 Method for testing system resources occupied by software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510097757.1A CN104657273A (en) 2015-03-05 2015-03-05 Method for testing system resources occupied by software

Publications (1)

Publication Number Publication Date
CN104657273A true CN104657273A (en) 2015-05-27

Family

ID=53248440

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510097757.1A Pending CN104657273A (en) 2015-03-05 2015-03-05 Method for testing system resources occupied by software

Country Status (1)

Country Link
CN (1) CN104657273A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468522A (en) * 2015-11-20 2016-04-06 浪潮电子信息产业股份有限公司 Linux system CPU load control-based software pressure test method
CN109359022A (en) * 2018-11-20 2019-02-19 信阳农林学院 A kind of computer software performance test methods
CN109359024A (en) * 2018-08-03 2019-02-19 挖财网络技术有限公司 A kind of test method and system for simulating Android user real system resource environment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5655081A (en) * 1995-03-08 1997-08-05 Bmc Software, Inc. System for monitoring and managing computer resources and applications across a distributed computing environment using an intelligent autonomous agent architecture
EP2273329A1 (en) * 2009-06-24 2011-01-12 Delphi Technologies Holding S.à.r.l. Microcontroller protection method and apparatus comprising an on-circuit debugging module
CN102306118A (en) * 2011-08-31 2012-01-04 中兴通讯股份有限公司 Method and device for monitoring power consumption of application program at Android terminal
CN103019910A (en) * 2011-09-26 2013-04-03 北京新媒传信科技有限公司 Method and system for monitoring resources in Linux server
CN103116539A (en) * 2012-02-15 2013-05-22 无锡江南计算技术研究所 Performance loss testing method and device of fine-grained virtual system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5655081A (en) * 1995-03-08 1997-08-05 Bmc Software, Inc. System for monitoring and managing computer resources and applications across a distributed computing environment using an intelligent autonomous agent architecture
EP2273329A1 (en) * 2009-06-24 2011-01-12 Delphi Technologies Holding S.à.r.l. Microcontroller protection method and apparatus comprising an on-circuit debugging module
CN102306118A (en) * 2011-08-31 2012-01-04 中兴通讯股份有限公司 Method and device for monitoring power consumption of application program at Android terminal
CN103019910A (en) * 2011-09-26 2013-04-03 北京新媒传信科技有限公司 Method and system for monitoring resources in Linux server
CN103116539A (en) * 2012-02-15 2013-05-22 无锡江南计算技术研究所 Performance loss testing method and device of fine-grained virtual system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468522A (en) * 2015-11-20 2016-04-06 浪潮电子信息产业股份有限公司 Linux system CPU load control-based software pressure test method
CN109359024A (en) * 2018-08-03 2019-02-19 挖财网络技术有限公司 A kind of test method and system for simulating Android user real system resource environment
CN109359022A (en) * 2018-11-20 2019-02-19 信阳农林学院 A kind of computer software performance test methods
CN109359022B (en) * 2018-11-20 2022-05-27 信阳农林学院 Computer software performance testing method

Similar Documents

Publication Publication Date Title
CN103475544A (en) Service monitoring method based on cloud resource monitoring platform
CN104182288A (en) Method for automatically testing power consumption of server cluster system
CN103778050B (en) A kind of database server High Availabitity performance detecting system
CN111131936B (en) Optical module monitoring method, monitoring device, switch and storage medium
CN104657273A (en) Method for testing system resources occupied by software
US20140089477A1 (en) System and method for monitoring storage machines
CN108540533B (en) Request answering method and device
CN102915269A (en) Method for analyzing common logs of B/S (browser/server) software system
CN110662024A (en) Video quality diagnosis method and device based on multiple frames and electronic equipment
CN109254922A (en) A kind of automated testing method and device of server B MC Redfish function
CN103581951A (en) Base station detection method and device
CN108231132B (en) NAND flash memory verification device and verification system
CN113110960A (en) Automatic tuning test method and system based on hard disk performance
CN101841541B (en) Method and system for monitoring cluster based on multicast network
CN102981939A (en) Disc monitoring method
CN103401722A (en) System and method for monitoring software resources
CN106649028A (en) Automated Linux system maintenance task method
CN110888011B (en) In-situ test method and test device based on testability modeling
CN109443395B (en) Method and system for judging whether energy consumption intensity multipoint measurement difference value exceeds limit value
WO2016206241A1 (en) Data analysis method and apparatus
CN109614429B (en) Method for realizing association of application access and database access behaviors based on kernel driver
CN115525392A (en) Container monitoring method and device, electronic equipment and storage medium
CN111708677B (en) Cloud hard disk usage amount acquisition method in cloud computing environment
CN103473176A (en) Four-subsystem server-based integrated server database application testing method
CN103245856B (en) A kind of test the method for electronic equipment performance, equipment and system

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: 20150527