CN106257426A - Method for detecting memory leakage based on GNSS receiver - Google Patents
Method for detecting memory leakage based on GNSS receiver Download PDFInfo
- Publication number
- CN106257426A CN106257426A CN201610057074.8A CN201610057074A CN106257426A CN 106257426 A CN106257426 A CN 106257426A CN 201610057074 A CN201610057074 A CN 201610057074A CN 106257426 A CN106257426 A CN 106257426A
- Authority
- CN
- China
- Prior art keywords
- file
- gnss receiver
- receiver
- time period
- detecting memory
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error 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/0751—Error or fault detection not based on redundancy
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error 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/0766—Error or fault reporting or storing
- G06F11/0769—Readable error formats, e.g. cross-platform generic formats, human understandable formats
Abstract
The invention provides a kind of method for detecting memory leakage based on GNSS receiver, comprise the steps:, in the LINUX system of rapid S1, receiver to be entered, to check all of process;Step S2, enter in PROC catalogue check all of process corresponding number;Step S3, entrance status, read the size of the value of VmRSS, and extract generation file;Step S4, the file of generation is added in journal file;Step S5, repeat step S1 step S4 at set intervals;Step S6, extract journal file at set intervals, and form broken line graph according to journal file;Step S7, doubling line chart differentiate, if linear rising, then RAM leakage occur;Otherwise, then RAM leakage does not occurs.The present invention provides, with regard to not yet there being at present the product of maturation, the technical scheme that a kind of memory leak issue for receiver carries out detecting, it is achieved that the automatization in test process, save a lot of time, significant increase testing efficiency.
Description
Technical field
The present invention relates to programming field, be specifically related to a kind of memory leak detecting based on GNSS receiver
Method.
Background technology
In existing GNSS receiver, usually because file record duration interval is short, repeatedly create
File, pass closed file, ceaselessly repeat this operation, and the speed of service of these processes causes connecing the soonest
Internal memory in the process of receipts machine can not discharge in time, and the time one, the long work to receiver brought very
Big burden, finally results in receiver and crashes.Thus whether the internal memory of detection receiver occurs that leakage becomes
Significant.
Summary of the invention
The invention provides a kind of method for detecting memory leakage based on GNSS receiver, comprise the steps:
Step S1, receiver to be entered LINUX system in, check all of process.
Step S2, enter in PROC catalogue check all of process corresponding number;
Step S3, entrance status, read the size of the value of VmRSS, and extract generation file;
Step S4, the file of generation is added in journal file;
Step S5, default first time period, repeat step S1-step S4 after first time period;
Step S6, default second time period, after the second time period, extract journal file, and according to daily record
File forms broken line graph;
Step S7, doubling line chart differentiate, if linear rising, then RAM leakage occur;Otherwise,
RAM leakage does not then occur.
In above-mentioned method for detecting memory leakage based on GNSS receiver, all of process includes: MNG,
FILE、GNSS、DSM、MISC、SERVER。
In above-mentioned method for detecting memory leakage based on GNSS receiver, the journal file of extraction is led
Enter formation broken line graph in Execel.
In above-mentioned method for detecting memory leakage based on GNSS receiver, first time period is 30 minutes.
In above-mentioned method for detecting memory leakage based on GNSS receiver, the second time period was 6 hours.
In above-mentioned method for detecting memory leakage based on GNSS receiver, described receiver is that GNSS connects
Receipts machine.
The present invention the most not yet has the product of maturation to provide a kind of memory leak issue for receiver
Carry out the technical scheme detected, present invention achieves the automatization in test process, it is not necessary to artificially do not stop
Ground input order, the internal memory situation of inquire-receive machine, and then add up each internal memory;When saving a lot
Between, significant increase testing efficiency.
Accompanying drawing explanation
The detailed description with reference to the following drawings, non-limiting example made by reading, the present invention and spy thereof
Levy, profile and advantage will become more apparent upon.The part that labelling instruction identical in whole accompanying drawings is identical.
The most deliberately it is drawn to scale accompanying drawing, it is preferred that emphasis is the purport of the present invention is shown.
The flow chart of a kind of based on GNSS receiver the method for detecting memory leakage that Fig. 1 provides for the present invention.
Detailed description of the invention
In the following description, a large amount of concrete details is given to provide and the present invention being managed the most thoroughly
Solve.It is, however, obvious to a person skilled in the art that the present invention can without one or
These details multiple and be carried out.In other example, in order to avoid obscuring with the present invention,
Technical characteristics more well known in the art are not described.
In order to thoroughly understand the present invention, detailed step and detailed knot will be proposed in following description
Structure, in order to explaination technical scheme.Presently preferred embodiments of the present invention is described in detail as follows, but
In addition to these describe in detail, the present invention can also have other embodiments.
The invention provides a kind of method for detecting memory leakage based on GNSS receiver, shown in reference Fig. 1,
Comprise the steps:
Step S1, receiver to be entered LINUX system in, check all processes.Optional in the present invention one
Embodiment in, receiver can be carry LINUX system GNSS receiver;All of process includes:
MNG、FILE、GNSS、DSM、MISC、SERVER。
Step S2, enter in PROC catalogue check all of process corresponding number.
Step S3, entrance status, read the size of the value of VmRSS, and extract generation file.
Step S4, the file of generation is added in journal file.
Step S5, default first time period, repeat step S1-step S4 after first time period.
In the present invention one optional embodiment, first time period is 30 minutes, namely performs every 30 minutes
The program of step S1-step S4.
Step S6, default second time period, after the second time period, extract journal file, and according to daily record
File forms broken line graph.In the present invention one optional embodiment, the second time period was 6 hours, namely
Just extract a journal file every 6 hours, and form broken line graph according to journal file.In the present invention one
In optional embodiment, such as, the journal file extracted can be imported and Execel is formed broken line graph.
Step S7, doubling line chart differentiate, if linear rising, then RAM leakage occur;Otherwise,
RAM leakage does not then occur.
In sum, the present invention the most not yet has the product of maturation to provide a kind of internal memory for receiver
Leakage problem carries out the technical scheme detected, and present invention achieves the automatization in test process, it is not necessary to
The artificial internal memory situation ceaselessly inputting order, inquire-receive machine, and then add up each internal memory;Save
A lot of times, test every time and add up as a example by internal memory situation needs 10min by a tester, often
Checking once every half an hour, crashing occurs in test product to be needed to calculate over 3 days, and this staff needs to carry out
The work of 18 hours, simultaneously need to day and night detect;But the technical scheme using the present invention to provide can
To automatically extract and to generate literary composition, the last 10min of tester is the most only needed to carry out test comparison summary, pole
Improve greatly testing efficiency.
Above presently preferred embodiments of the present invention is described.It is to be appreciated that the present invention does not limit to
In above-mentioned particular implementation, the equipment and the structure that do not describe in detail the most to the greatest extent are construed as using this area
In common mode be practiced;Any those of ordinary skill in the art, without departing from the technology of the present invention
In the case of aspects, technical solution of the present invention is done by the method and the technology contents that all may utilize the disclosure above
Going out many possible variations and modification, or be revised as the Equivalent embodiments of equivalent variations, this has no effect on this
The flesh and blood of invention.Therefore, every content without departing from technical solution of the present invention, according to the present invention's
Technical spirit, to any simple modification made for any of the above embodiments, equivalent variations and modification, all still falls within this
In the range of the protection of inventive technique scheme.
Claims (6)
1. a method for detecting memory leakage based on GNSS receiver, it is characterised in that include walking as follows
Rapid:
Step S1, receiver to be entered LINUX system in, check all of process;
Step S2, enter in PROC catalogue check all of process corresponding number;
Step S3, entrance status, read the size of the value of VmRSS, and extract generation file;
Step S4, the file of generation is added in journal file;
Step S5, default first time period, repeat step S1-step S4 after first time period;
Step S6, default second time period, after the second time period, extract journal file, and according to daily record
File forms broken line graph;
Step S7, doubling line chart differentiate, if linear rising, then RAM leakage occur;Otherwise,
RAM leakage does not then occur.
2. method for detecting memory leakage based on GNSS receiver as claimed in claim 1, its feature exists
In, all of process includes: MNG, FILE, GNSS, DSM, MISC, SERVER.
3. method for detecting memory leakage based on GNSS receiver as claimed in claim 1, its feature exists
In, the journal file extracted is imported Execel is formed broken line graph.
4. method for detecting memory leakage based on GNSS receiver as claimed in claim 1, its feature exists
In, first time period is 30 minutes.
5. method for detecting memory leakage based on GNSS receiver as claimed in claim 1, its feature exists
In, the second time period was 6 hours.
6. method for detecting memory leakage based on GNSS receiver as claimed in claim 1, its feature exists
In, described receiver is GNSS receiver.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610057074.8A CN106257426A (en) | 2016-01-27 | 2016-01-27 | Method for detecting memory leakage based on GNSS receiver |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610057074.8A CN106257426A (en) | 2016-01-27 | 2016-01-27 | Method for detecting memory leakage based on GNSS receiver |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106257426A true CN106257426A (en) | 2016-12-28 |
Family
ID=57713452
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610057074.8A Pending CN106257426A (en) | 2016-01-27 | 2016-01-27 | Method for detecting memory leakage based on GNSS receiver |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106257426A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050166094A1 (en) * | 2003-11-04 | 2005-07-28 | Blackwell Barry M. | Testing tool comprising an automated multidimensional traceability matrix for implementing and validating complex software systems |
US20070033273A1 (en) * | 2005-04-15 | 2007-02-08 | White Anthony R P | Programming and development infrastructure for an autonomic element |
CN103473172A (en) * | 2013-09-05 | 2013-12-25 | 无敌科技(西安)有限公司 | System and method for checking leak of background program memories and positioning leak memory points |
CN104182320A (en) * | 2013-05-23 | 2014-12-03 | 联想(北京)有限公司 | Method and device for monitoring leakage of memory |
-
2016
- 2016-01-27 CN CN201610057074.8A patent/CN106257426A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050166094A1 (en) * | 2003-11-04 | 2005-07-28 | Blackwell Barry M. | Testing tool comprising an automated multidimensional traceability matrix for implementing and validating complex software systems |
US20070033273A1 (en) * | 2005-04-15 | 2007-02-08 | White Anthony R P | Programming and development infrastructure for an autonomic element |
CN104182320A (en) * | 2013-05-23 | 2014-12-03 | 联想(北京)有限公司 | Method and device for monitoring leakage of memory |
CN103473172A (en) * | 2013-09-05 | 2013-12-25 | 无敌科技(西安)有限公司 | System and method for checking leak of background program memories and positioning leak memory points |
Non-Patent Citations (5)
Title |
---|
CSDN: "Linux内存泄漏查询方法proc/status解释", 《HTTPS://BLOG.CSDN.NET/GUBENPEIYUAN/ARTICLE/DETAILS/42459025》 * |
丛书编委会: "《Linux操作系统实训教程》", 31 July 2008, 中国电力出版社 * |
个人图书馆: "Linux内存泄漏查询方法proc/status解释", 《HTTP://WWW.360DOC.COM/CONTENT/15/1118/13/17283_514054063.SHTML》 * |
夏斯华: "Linux用户进程内存泄漏一种检测方法", 《百度文库》 * |
汤荷美等: "《Linux基础教程(1)操作系统基础》", 31 July 2001, 清华大学出版社 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105989283B (en) | A kind of method and device identifying virus mutation | |
CN104407976B (en) | A kind of interface robustness testing case generation method and device | |
Graham et al. | Randomized significance tests in machine translation | |
US10380117B2 (en) | Event occurrence place estimation method, computer-readable recording medium storing event occurrence place estimation program, and event occurrence place estimation apparatus | |
CN104951842B (en) | A kind of new oilfield production forecast method | |
CN105893166A (en) | Method and device for processing memory errors | |
CN109934433A (en) | A kind of personnel ability's appraisal procedure, device and cloud service platform | |
CN104461846B (en) | The method and apparatus for detecting application program power consumption | |
CN106028176A (en) | Method and device for determining content explosion point in streaming media | |
CN113849760B (en) | Sensitive information risk assessment method, system and storage medium | |
CN106611321B (en) | False mobile phone number identification method and device | |
CN108734304A (en) | A kind of training method of data model, device and computer equipment | |
CN105301450A (en) | Distribution network fault automatic diagnosis method and system | |
CN106909600A (en) | The collection method and device of user context information | |
CN104915864B (en) | The method and device that the dispensing effect of impression information is evaluated and tested | |
CN116187285A (en) | Telemetry data processing method, device, equipment and storage medium | |
CN105373528A (en) | Method and device for analyzing sensitivity of text contents | |
JP2017068293A (en) | Test db data generation method and device | |
CN102486748A (en) | Method and device for performance test | |
CN106257426A (en) | Method for detecting memory leakage based on GNSS receiver | |
CN108255891B (en) | Method and device for judging webpage type | |
CN111413952B (en) | Robot fault detection method and device, electronic equipment and readable storage medium | |
US20170276567A1 (en) | Information processing apparatus, information processing method, and program | |
CN104572921B (en) | A kind of method of data synchronization and device across data center | |
CN109600428A (en) | A kind of automation uploads attachment and matches associated method and apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161228 |
|
RJ01 | Rejection of invention patent application after publication |