CN108804252A - A kind of server memory fault detection method, device, equipment and storage medium - Google Patents

A kind of server memory fault detection method, device, equipment and storage medium Download PDF

Info

Publication number
CN108804252A
CN108804252A CN201810616986.3A CN201810616986A CN108804252A CN 108804252 A CN108804252 A CN 108804252A CN 201810616986 A CN201810616986 A CN 201810616986A CN 108804252 A CN108804252 A CN 108804252A
Authority
CN
China
Prior art keywords
server
memory
detected
judge
acquisition
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
CN201810616986.3A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810616986.3A priority Critical patent/CN108804252A/en
Publication of CN108804252A publication Critical patent/CN108804252A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0709Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a distributed system consisting of a plurality of standalone computer nodes, e.g. clusters, client-server systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/073Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a memory management context, e.g. virtual memory or cache management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention relates to a kind of server memory fault detection method, device, equipment and storage mediums, including:Automated log on simultaneously scans server to be detected;Obtain the clocked memory value of server to be detected;Judge that clocked memory value whether there is:It is no, then judge the memory abnormal of the server to be detected.The present invention can timely and accurately position the memory failure of whole machine cabinet server, can detect that the node of memory failure occurs in the cabinet type server of complete machine in time, and give a warning, to ensure the data safety of the cabinet type server of complete machine.

Description

A kind of server memory fault detection method, device, equipment and storage medium
Technical field
The invention belongs to server detection technique fields, and in particular to a kind of server memory fault detection method, device, Equipment and storage medium.
Background technology
With the development of internet, people are increasing to the demand of server, and the requirement to server is also increasingly It is high.Memory is that server is extremely important and essential component, is mainly used for storing ephemeral data in server, cache It uses.Due to the highly reliable requirement of server, it is necessary to which memory detects the generation of failure in time in use, and can be fixed Position failure memory position.
With popularizing for big data application, the application of the cabinet type server of complete machine is also more and more extensive.The cabinet type server of complete machine It is the entirety built up by multiple node groups, the relatively small server that node refers to herein.For separate unit generic service For device, most tens of memory is just readily possible to detect generation and the position of failure memory by means such as BMC.But It is for the cabinet type server of complete machine, there are even thousands of memories on hundreds of in the inside, and is distributed in different nodes.Such case Under be difficult to carry out memory failure detection and positioning.
Invention content
It is an object of the present invention to design a kind of server memory event in view of the above-mentioned drawbacks of the prior art, providing Hinder detection method, device, equipment and storage medium, to solve the above technical problems.
In a first aspect, the embodiment of the present application provides a kind of server memory fault detection method, including:Automated log on is simultaneously swept Retouch server to be detected;Obtain the clocked memory value of server to be detected;Judge that clocked memory value whether there is:It is no, then judge The memory abnormal of the server to be detected.
With reference to first aspect, in the first embodiment of first aspect, the method further includes:The clothes that will have been detected Business device IP is stored in Memory statistics table.
With reference to first aspect and the first embodiment of first aspect, in second of embodiment of first aspect: Server ip in the libraries acquisition server IP;Judge whether the server ip of acquisition has been stored in Memory statistics table;It is no, then will The server ip of acquisition is as server to be detected.
Second aspect, the embodiment of the present application provide a kind of server memory failure detector, including:Scanning element is matched It sets for automated log on and scans server to be detected;Acquiring unit is configured to obtain the clocked memory of server to be detected Value;Judging unit is configured to judge that clocked memory value whether there is;Judging unit is configured to judge the clothes to be detected The memory abnormal of business device.
In conjunction with second aspect, in the first embodiment of second aspect, described device further includes:Storage unit is matched It sets for the server ip detected to be stored in Memory statistics table.
In conjunction with the first of second aspect and second aspect embodiment, in second of embodiment of second aspect, The scanning element includes:Acquisition module, the server ip being configured in the libraries acquisition server IP;Judgment module, configuration are used In judge acquisition server ip whether be stored in Memory statistics table;Determining module is configured to the server that will be acquired IP is as server to be detected.
The third aspect, the embodiment of the present application provide a kind of equipment, including:One or more processors;Memory, for depositing The one or more programs of storage, when one or more of programs are executed by one or more of processors so that described one A or multiple processors execute the method as described in first aspect and any embodiment of first aspect.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium being stored with computer program, should The method as described in first aspect and any embodiment of first aspect is realized when program is executed by processor.
The beneficial effects of the present invention are,
Server memory fault detection method provided by the invention is by automated log on and scans each server, obtains each The clocked memory value of server whether there is according to the inner server of server and judge that memory whether there is failure.This method The memory failure of whole machine cabinet server can be timely and accurately positioned, can detect that memory event occurs in the cabinet type server of complete machine in time The node of barrier, and give a warning, to ensure the data safety of the cabinet type server of complete machine.
Server memory failure detector provided by the invention includes:Scanning element, acquiring unit, judging unit and sentence Order member, wherein scanning element automated log on simultaneously scans each server;Acquiring unit obtains the clocked memory value of each server; The memory of judging unit and judging unit according to clocked memory value with the presence or absence of the server of judgement detection whether there is failure.It should Device can timely and accurately position the memory failure of whole machine cabinet server, can detect in time in the cabinet type server appearance of complete machine The node of failure is deposited, and is given a warning, to ensure the data safety of the cabinet type server of complete machine.
Equipment provided by the invention, can perform server memory fault detection method provided by the invention, and then can and When be accurately located the memory failure of whole machine cabinet server, can detect that the section of memory failure occurs in the cabinet type server of complete machine in time Point, and give a warning, to ensure the data safety of the cabinet type server of complete machine.
Readable medium provided by the invention can perform server memory fault detection method provided by the invention, Jin Erneng Enough memory failures for timely and accurately positioning whole machine cabinet server, can detect that memory failure occurs in the cabinet type server of complete machine in time Node, and give a warning, to ensure the data safety of the cabinet type server of complete machine.
In addition, design principle of the present invention is reliable, and it is simple in structure, there is very extensive application prospect.
It can be seen that compared with prior art, the present invention with substantive distinguishing features outstanding and significantly improving, implementation Advantageous effect be also obvious.
Description of the drawings
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is the illustrative flow chart of server memory fault detection method provided by the embodiments of the present application;
Fig. 2 is the illustrative of server memory fault detection method provided by the embodiments of the present application;
Fig. 3 is the illustrative flow chart of server memory fault detection method provided by the embodiments of the present application.
Specific implementation mode
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Convenient for description, is illustrated only in attached drawing and invent relevant part.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
The embodiment of the present application provides a kind of method automatically creating disk array, including:
Automated log on simultaneously scans server to be detected;Obtain the clocked memory value of server to be detected;Judge clocked memory Value whether there is:It is no, then judge the memory abnormal of the server to be detected.
Further, the server ip detected is stored in Memory statistics table.
On the basis of the server ip detected is stored in Memory statistics table, further, in the libraries acquisition server IP Server ip;Judge whether the server ip of acquisition has been stored in Memory statistics table;It is no, then the server ip of acquisition is made For server to be detected.
In order to facilitate the understanding of the present invention, below with the principle of detection service device memory failure of the present invention, in conjunction with implementation The process of detection service device memory failure, further retouches server memory fault detection method provided by the invention in example It states, specifically please refers to following embodiment.
Embodiment 1, referring to FIG. 1, specific detecting step is as follows:
S1, using script automated log on and server to be detected is scanned;
S2, the clocked memory value for obtaining server to be detected;
S3, judge that clocked memory value whether there is, that is, judge whether the clocked memory value that can obtain server to be detected: If the clocked memory value of server to be detected can not be obtained, the memory abnormal of the server to be detected is judged.
Embodiment 2 is as follows incorporated by reference to Fig. 2:
S1, the acquisition server IP from server ip library, and the server ip acquired is judged whether in memory statistical form, If there is no the server ip of acquisition to be carried out to it using the server ip of acquisition as server to be detected in Memory statistics table Fault detect;
S2, using script automated log on and server to be detected in S1 is scanned;
S3, the clocked memory value for obtaining server to be detected;
S4, judge that clocked memory value whether there is, that is, judge whether the clocked memory value that can obtain server to be detected: If the clocked memory value of server to be detected can not be obtained, the memory abnormal of the server to be detected is judged.
S5, the server ip for being scanned server is stored in Memory statistics table, returns to S1 and repeats the above steps, until Servers-all IP has been stored in Memory statistics table in server ip library.
Embodiment 3 is as follows referring to FIG. 3, the present embodiment is used for the cabinet type server of complete machine:
S1, the acquisition server IP from the server ip library of the cabinet type server of complete machine, and judge that the server ip of acquisition is It is no in memory statistical form, if do not have in Memory statistics table acquisition server ip, using the server ip of acquisition as to be checked Server is surveyed, fault detect is carried out to it;
S2, wscript.exe automated log on server to be detected is utilized;
S3, by ssh server ips " meminfo " scanning server, obtain clocked memory value (speed) value of server;
S4, by whether the clocked memory value of server can be obtained, whether the clocked memory value of Analysis server has lost It loses;
If S5, clocked memory value are null value, determining server memory abnormal returns to the server of memory abnormal Slot information;If memory is without exception, pass information is returned;
S6, according to above-mentioned testing result, format the Memory statistics table that processing generates the cabinet type server of complete machine;Return to S1 weights Multiple above-mentioned steps, until Servers-all IP has been stored in Memory statistics table in server ip library.
The embodiment of the present application provides a kind of server memory failure detector, including:Scanning element is configured to automatic It logs in and scans server to be detected;Acquiring unit is configured to obtain the clocked memory value of server to be detected;Judge single Member is configured to judge that clocked memory value whether there is;Judging unit is configured to judge the memory of the server to be detected It is abnormal.
Device further includes:Storage unit is configured to the server ip detected being stored in Memory statistics table.
Wherein, scanning element includes:Acquisition module, the server ip being configured in the libraries acquisition server IP;Judge mould Block is configured to judge whether the server ip of acquisition has been stored in Memory statistics table;Determining module is configured to acquire Server ip as server to be detected.
The embodiment of the present application provides a kind of equipment, including:One or more processors;Memory, for store one or Multiple programs, when one or more of programs are executed by one or more of processors so that one or more of Processor executes such as the method provided by the embodiments of the present application for automatically creating disk array.
The embodiment of the present application provides a kind of computer readable storage medium being stored with computer program, which is handled Such as the method provided by the embodiments of the present application for automatically creating disk array is realized when device executes.
Disclosed above is only the preferred embodiment of the present invention, but the present invention is not limited to this, any this field What technical staff can think does not have a creative variation, and without departing from the principles of the present invention made by several improvement and Retouching, should all be within the scope of the present invention.

Claims (8)

1. a kind of server memory fault detection method, which is characterized in that including:
Automated log on simultaneously scans server to be detected;
Obtain the clocked memory value of server to be detected;
Judge that clocked memory value whether there is:
It is no, then judge the memory abnormal of the server to be detected.
2. according to the method described in claim 1, it is characterized in that, further including:
The server ip detected is stored in Memory statistics table.
3. according to the method described in claim 2, it is characterized in that, the automated log on and scanning server to be detected and including:
Server ip in the libraries acquisition server IP;
Judge whether the server ip of acquisition has been stored in Memory statistics table;
It is no, then using the server ip of acquisition as server to be detected.
4. a kind of server memory failure detector, which is characterized in that including:
Scanning element is configured to automated log on and scans server to be detected;
Acquiring unit is configured to obtain the clocked memory value of server to be detected;
Judging unit is configured to judge that clocked memory value whether there is;
Judging unit is configured to judge the memory abnormal of the server to be detected.
5. device according to claim 4, which is characterized in that further include:
Storage unit is configured to the server ip detected being stored in Memory statistics table.
6. device according to claim 5, which is characterized in that the scanning element includes:
Acquisition module, the server ip being configured in the libraries acquisition server IP;
Judgment module is configured to judge whether the server ip of acquisition has been stored in Memory statistics table;
Determining module, the server ip for being configured to acquire is as server to be detected.
7. a kind of equipment, which is characterized in that the equipment includes:
One or more processors;
Memory, for storing one or more programs,
When one or more of programs are executed by one or more of processors so that one or more of processors Execute method as claimed in any one of claims 1-3.
8. a kind of computer readable storage medium being stored with computer program, which is characterized in that the program is executed by processor Shi Shixian methods as claimed in any one of claims 1-3.
CN201810616986.3A 2018-06-15 2018-06-15 A kind of server memory fault detection method, device, equipment and storage medium Pending CN108804252A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810616986.3A CN108804252A (en) 2018-06-15 2018-06-15 A kind of server memory fault detection method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810616986.3A CN108804252A (en) 2018-06-15 2018-06-15 A kind of server memory fault detection method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN108804252A true CN108804252A (en) 2018-11-13

Family

ID=64086743

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810616986.3A Pending CN108804252A (en) 2018-06-15 2018-06-15 A kind of server memory fault detection method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108804252A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102541722A (en) * 2011-12-30 2012-07-04 曙光信息产业股份有限公司 Server memory monitoring method and server memory monitoring system
CN105975377A (en) * 2016-04-29 2016-09-28 浪潮电子信息产业股份有限公司 Memory monitoring method and apparatus
CN107451051A (en) * 2017-06-29 2017-12-08 郑州云海信息技术有限公司 A kind of method that server memory diagnosis is carried out under Linux
CN107943643A (en) * 2017-11-28 2018-04-20 郑州云海信息技术有限公司 One kind is based on MOC boards hardware DC test methods and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102541722A (en) * 2011-12-30 2012-07-04 曙光信息产业股份有限公司 Server memory monitoring method and server memory monitoring system
CN105975377A (en) * 2016-04-29 2016-09-28 浪潮电子信息产业股份有限公司 Memory monitoring method and apparatus
CN107451051A (en) * 2017-06-29 2017-12-08 郑州云海信息技术有限公司 A kind of method that server memory diagnosis is carried out under Linux
CN107943643A (en) * 2017-11-28 2018-04-20 郑州云海信息技术有限公司 One kind is based on MOC boards hardware DC test methods and system

Similar Documents

Publication Publication Date Title
Mi et al. Toward fine-grained, unsupervised, scalable performance diagnosis for production cloud computing systems
CN103246602B (en) Code coverage determines method and system, code coverage detection method and system
WO2019179248A1 (en) Anomaly detection method and device
CN106874159A (en) A kind of concentrating type automated testing method
CN109540902A (en) A kind of polaroid Defect Detection system and its detection method
CN103368970B (en) A kind of automation safety detection method for network objectives
US9563541B2 (en) Software defect detection identifying location of diverging paths
CN101017459A (en) Error capturing plug-in used in information system and method of use thereof
CN107819758A (en) A kind of IP Camera leak remote detecting method and device
EP2037365A2 (en) Process flow analysis based on processing artifacts
US9747181B2 (en) System and method for inspection of system state during testing
CN108804252A (en) A kind of server memory fault detection method, device, equipment and storage medium
CN105975379A (en) False mobile device recognition method and system
CN108733707A (en) A kind of determining function of search stability and device
CN109684220A (en) A kind of browser compatibility analysis method based on event replay
CN110968779A (en) Processing method and device for crawling webpage information
CN112187708B (en) Automatic supplementing method and equipment for certificate chain of digital certificate
CN113868137A (en) Method, device and system for processing buried point data and server
Hosseini et al. Efficient distributed algorithms for self testing of multiple processor systems
CN112612882A (en) Review report generation method, device, equipment and storage medium
CN108984359A (en) A kind of system UUID synchronization detecting method, device, equipment and storage medium
CN113037521A (en) Method for identifying state of communication equipment, communication system and storage medium
ChuahM et al. Failure diagnosis for cluster systems using partial correlations
Schapranow et al. RFID Event Data Processing: An Architecture for Storing and Searching.
CN117389997B (en) Fault detection method and device for database installation flow, electronic equipment and medium

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

Application publication date: 20181113