CN107357731A - Process produces monitoring, analysis and the processing method of core dump problems - Google Patents

Process produces monitoring, analysis and the processing method of core dump problems Download PDF

Info

Publication number
CN107357731A
CN107357731A CN201710581153.3A CN201710581153A CN107357731A CN 107357731 A CN107357731 A CN 107357731A CN 201710581153 A CN201710581153 A CN 201710581153A CN 107357731 A CN107357731 A CN 107357731A
Authority
CN
China
Prior art keywords
core dump
monitoring
analysis
files
program
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.)
Granted
Application number
CN201710581153.3A
Other languages
Chinese (zh)
Other versions
CN107357731B (en
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.)
Fujian Star Software Co Ltd
Original Assignee
Fujian Star Software 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 Fujian Star Software Co Ltd filed Critical Fujian Star Software Co Ltd
Priority to CN201710581153.3A priority Critical patent/CN107357731B/en
Publication of CN107357731A publication Critical patent/CN107357731A/en
Application granted granted Critical
Publication of CN107357731B publication Critical patent/CN107357731B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/366Software debugging using diagnostics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

Landscapes

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

Abstract

The present invention provides monitoring, analysis and the processing method that a kind of process produces core dump problems, first service end is monitored, analyzed respectively to each process generation core dump files in operation, process is restarted and the error message of extraction procedure source code, data storage storehouse table are saved in monitoring service system, is realized and is alerted subsequently into second service end.It is to be alerted by the monitoring Path Method at first service end come real-time supervised path, then by second service end that the present invention, which can be applied to multiserver operating system, the main methods such as linux, hp ux or aix,.

Description

Process produces monitoring, analysis and the processing method of core dump problems
Technical field
The present invention relates to a kind of computer program information processing method, particularly to being produced in computer program running The processing method of core dump problems.
Background technology
The patent of retrieval core dump file monitors processing has at present, but is confined to linux platforms and substantially The process of analysis and processing is incomplete, because core dump are binary files, and it is which that can not know from filename Core dump caused by individual process, if it is not known that being core dump caused by the program of which process, it can not just analyze, and And what is monitored is usually production environment, and the process for operating in production environment be usually by co mpiler optimization, it is such enter Core dump caused by journey, if analyzing directly to use, sometimes without too many value and significance.
The content of the invention
The technical problem to be solved in the present invention, be to provide monitoring, analysis that a kind of process produces core dump problems, And processing method, this method is monitored to process generation core dump in operation, analyzed, process is restarted and extraction procedure source Code error information is simultaneously saved in monitoring service database table, monitoring service database table is analyzed, then Real-time Alarm.
What the present invention was realized in:A kind of process produces monitoring, analysis and the processing method of core dump problems, right Core dump files caused by process are monitored, analyzed in operation, process is restarted with the error message of extraction procedure source code simultaneously Monitoring service database table is saved in, then to monitoring service database table analyze simultaneously Real-time Alarm.
Further, it is described monitoring, analysis, process restart with the error message of extraction procedure source code and be saved in monitoring clothes The detailed process for database table of being engaged in is as follows:
Step 10, monitor path:The linux for the meeting generation core dump files that monitoring has configured in program technic, The path using production environment of the server OSs such as hp-ux or aix, when there is newly-generated core dump files, triggering The processing method of core dump files can be specifically programmed to c, c++, java, shell etc.;
Step 20, backup core dump files:First current on core dump in core dump document handling methods The backup path specified is moved on to after timestamp;
Step 30, corresponding program name is read out in core dump file contents, obtains core dump files Corresponding program name;
Step 40, after getting core dump and corresponding to program name, judge whether process deposits corresponding to the program name Such as it is being not present, is restarting the process;
Step 50, the program name according to core dump files and generation core dump files, call operation system are compiled The debugging acid for translating device is analyzed, and the position of extraction procedure code error reason and error;
Field data is saved in monitoring service database by the monitoring service database table that step 60, basis have been configured In table.
Step 70, the good core dump files of delete processing in backup path, discharge memory space.
Further, the present invention to monitoring service database table analyze and the process of Real-time Alarm is as follows:
The number as caused by producing core dump in core dump server ip address timing statisticses sections;
The number as caused by core dump in the program timing statisticses section for producing core dump;
By core dump in the program timing statisticses section for producing core dump server ip address and generation core dump Caused number;
Analysis produces trend caused by core dump in core dump program time section;
Analysis produces trend caused by core dump in the core dump server ip address periods;When automatically certain section The cell-phone number that dump number of core caused by interior is sent to configuration is alerted;
Whether the program of statistics and tracking generation core dump problems has handled and disposition.
The invention has the advantages that:
1st, the present invention obtains program name corresponding to core dump files in core dump file contents, it is to be understood that is Core dump caused by which process are so as to the carry out core dump issue handlings of efficiently and accurately.
2nd, because core dump Documents Comparisons are big, memory space is taken very much, the present invention can delete from backup path in time Except the core dump Free up Memories handled well so as to save memory space, hardware spending is reduced;
3rd, the present invention by restarting process the step for ensure that production environment offer service it is normal and stably;
4th, the present invention can accurately extract and finder produce core dump the problem of, help developer quickly repair Problem is with the production environment that upgrades in time;
5th, the present invention produces core dump reasons by statistical analysis program, can help to research and develop administrative staff lasting Improve software development process and software quality.
Embodiment
The process of the present invention produces monitoring, analysis and the processing method of core dump problems, and method is divided into two services End, process generation core dump in operation are monitored by first service end, analyzed, process is restarted and extraction procedure source Code error information, and monitoring service database table is saved in, subsequently into second service end, the prison of the sequencing of real-time implementation Control, analysis, handling process.
The inventive method is mainly operated by first service end and second service end, and this method includes monitoring in real time Path file, analyze, restart process, extraction procedure source code error message, data storage storehouse table, send alarm signal in time.
The first service end performs step such as the service end monitor, analyze, restarting process, extraction and preservation Under:
Step 10, monitor path:The linux for the meeting generation core dump files that monitoring has configured in program technic, The path using production environment of the server OSs such as hp-ux or aix, when there is newly-generated core dump files, triggering To the processing method of core dump files;
Step 20, backup core dump files:When newly-generated core dump files, first core dump filenames Plus moving on to the backup path specified after current time stamp, to prevent by new same core dump files covering while For subsequent backup;
Step 30, obtain program name corresponding to core dump files:Core dump texts are opened with binary mode Part, the byte number configured is read in the position that file pointer is moved to configuration, corresponding program name in core dump file contents Read is taken out, and obtains program name corresponding to core dump files;
Step 40, restart process:After getting core dump and corresponding to program name, judge corresponding to the program name Process whether there is, and such as be not present, and restart the process;
Step 50, analysis produce the error message of core dump program;According to core dump files and produce core The program name of dump files, call operation system compiler debugging acid (such as linux and hp-ux operating systems be gdb, Aix operating systems are dbx) analyzed, and the position of extraction procedure code error reason and error;
Step 60, analysis result are saved in monitoring service database table:Field data (produce core server ip, Program name, program code error reason and Error Location, analysis time etc.) it is saved in monitoring service database table, the prison Control service database table should be configured first in advance, such as set IP address, port, username and password, the data of its server Storage format, data storage method etc., such as the present invention monitoring, analysis and processing method it is targeted be multiple servers, then One of server is chosen in the plurality of server (also can be independent in addition as the position of monitoring service database table The server of one monitoring service database table is set), the field data of the core dump problems of all multiple servers, It is maintained in the monitoring service database table and is managed collectively and is analyzed.
Step 70, the good core dump files of delete processing in backup path, discharge memory space.
The second service end is statistical analysis alerting service end, and field data is obtained simultaneously from monitoring service database table Analyzed, statistics produces coredump number within a period of time, can represent that the time is (small by abscissa on line chart When, day, week etc. be unit), ordinate represents core dump texts caused by corresponding time interval (per hour, daily, weekly etc.) Number of packages amount, it can also be produced with block diagram or form to analyze core dump in the program time section for producing core dump Raw trend, core dump machine IP address, core dump program name, current time will be produced automatically and is sent automatically Alerted to the cell-phone number (multiple phone numbers with semicolon separated) configured, count and track and produce core dump problems The untreated and processed situation of program.The core dump problem states being initially saved in monitoring service database table are not Processing, after repaired when the core dump the problem of, problem state is changed to be processed.
Although the foregoing describing the embodiment of the present invention, those familiar with the art should manage Solution, the specific embodiment described by us are merely exemplary, rather than for the restriction to the scope of the present invention, are familiar with this The equivalent modification and change that the technical staff in field is made in the spirit according to the present invention, should all cover the present invention's In scope of the claimed protection.

Claims (4)

1. process produces monitoring, analysis and the processing method of core dump problems, it is characterised in that:To each process in operation Caused core dump files are monitored, analyzed respectively, process is restarted and the error message of extraction procedure source code and are saved in Monitoring service database table, then to monitoring service database table analyze simultaneously Real-time Alarm.
2. process produces monitoring, analysis and the processing method of core dump problems according to claim 1, it is characterised in that: The monitoring, analysis, process are restarted and the error message of extraction procedure source code and are saved in the specific of monitoring service database table Process is as follows:
The meeting that step 10, monitoring have configured produces linux, hp-ux or aix server OS of core dump files The path of operation process, the new caused core dump files of processing in real time when new core dump files produce;
Step 20, when newly-generated core dump files, first core dump filenames plus moving on to finger after current time stamp Fixed backup path;
Step 30, corresponding program name is read out in core dump file contents, and it is corresponding to obtain core dump files Program name;
Step 40, after getting core dump files and corresponding to program name, judge whether process deposits corresponding to the program name Such as it is being not present, is restarting the process;
Step 50, the program name according to core dump files and generation core dump files, call operation system compiler Debugging acid analyzed, and extraction procedure code error reason and error position;
Field data is saved in monitoring service database table by the monitoring service database table that step 60, basis have been configured In;
Step 70, the good core dump files of delete processing from backup path, discharge memory space.
3. process according to claim 2 produces monitoring, analysis and the processing method of core dump problems, its feature exists In:The field data is to produce core dump server ip, program name, program code Error Location and analysis time.
4. process produces monitoring, analysis and the processing method of core dump problems according to claim 1, it is characterised in that: It is described monitoring service database table analyze and Real-time Alarm process it is as follows:
The number as caused by producing core dump files in core dump server ip address timing statisticses sections;
The number as caused by core dump in the program timing statisticses section for producing core dump;
Produced by core dump in the program timing statisticses section for producing core dump server ip address and generation core dump Number;
Analysis produces trend caused by core dump in core dump program time section, automatically the core dump caused by Computer IP, process name is sent to the cell-phone number of configuration and alerted;
Statistics and tracking produce the untreated and processed situation of program of core dump problems.
CN201710581153.3A 2017-07-17 2017-07-17 Monitoring, analyzing and processing method for core dump problem generated by process Active CN107357731B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710581153.3A CN107357731B (en) 2017-07-17 2017-07-17 Monitoring, analyzing and processing method for core dump problem generated by process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710581153.3A CN107357731B (en) 2017-07-17 2017-07-17 Monitoring, analyzing and processing method for core dump problem generated by process

Publications (2)

Publication Number Publication Date
CN107357731A true CN107357731A (en) 2017-11-17
CN107357731B CN107357731B (en) 2020-09-29

Family

ID=60293287

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710581153.3A Active CN107357731B (en) 2017-07-17 2017-07-17 Monitoring, analyzing and processing method for core dump problem generated by process

Country Status (1)

Country Link
CN (1) CN107357731B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109656743A (en) * 2018-12-28 2019-04-19 杭州迪普科技股份有限公司 A kind of core file management method and device, equipment, medium
CN110262918A (en) * 2019-06-19 2019-09-20 深圳市网心科技有限公司 Process collapses analysis method and device, distributed apparatus and storage medium
CN111324423A (en) * 2020-03-03 2020-06-23 腾讯科技(深圳)有限公司 Method and device for monitoring processes in container, storage medium and computer equipment
CN111563000A (en) * 2020-04-28 2020-08-21 深圳震有科技股份有限公司 File generation method, intelligent terminal and storage medium
CN113535249A (en) * 2021-08-02 2021-10-22 京东数科海益信息科技有限公司 Data processing method, device, equipment, storage medium and program product
CN113791925A (en) * 2021-08-24 2021-12-14 杭州迪普科技股份有限公司 Memory mapping file storage method and device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114579337A (en) 2020-12-01 2022-06-03 三星电子株式会社 Method and system for generating core dump in user equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521099A (en) * 2011-11-24 2012-06-27 深圳市同洲视讯传媒有限公司 Process monitoring method and process monitoring system
US8756461B1 (en) * 2011-07-22 2014-06-17 Juniper Networks, Inc. Dynamic tracing of thread execution within an operating system kernel
CN106294071A (en) * 2016-08-11 2017-01-04 宁波舜宇光电信息有限公司 A kind of software crash formation gathering method and system thereof
CN106445787A (en) * 2016-09-30 2017-02-22 北京金山安全软件有限公司 Method and device for monitoring server core dump file and electronic equipment
CN106560796A (en) * 2015-12-31 2017-04-12 哈尔滨安天科技股份有限公司 Early-warning method and system for internal memory stack abnormity of intranet terminal application program
US20170147422A1 (en) * 2015-11-23 2017-05-25 Alcatel-Lucent Canada, Inc. External software fault detection system for distributed multi-cpu architecture

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8756461B1 (en) * 2011-07-22 2014-06-17 Juniper Networks, Inc. Dynamic tracing of thread execution within an operating system kernel
CN102521099A (en) * 2011-11-24 2012-06-27 深圳市同洲视讯传媒有限公司 Process monitoring method and process monitoring system
US20170147422A1 (en) * 2015-11-23 2017-05-25 Alcatel-Lucent Canada, Inc. External software fault detection system for distributed multi-cpu architecture
CN106560796A (en) * 2015-12-31 2017-04-12 哈尔滨安天科技股份有限公司 Early-warning method and system for internal memory stack abnormity of intranet terminal application program
CN106294071A (en) * 2016-08-11 2017-01-04 宁波舜宇光电信息有限公司 A kind of software crash formation gathering method and system thereof
CN106445787A (en) * 2016-09-30 2017-02-22 北京金山安全软件有限公司 Method and device for monitoring server core dump file and electronic equipment

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109656743A (en) * 2018-12-28 2019-04-19 杭州迪普科技股份有限公司 A kind of core file management method and device, equipment, medium
CN109656743B (en) * 2018-12-28 2022-04-26 杭州迪普科技股份有限公司 Core file management method and device, equipment and medium
CN110262918A (en) * 2019-06-19 2019-09-20 深圳市网心科技有限公司 Process collapses analysis method and device, distributed apparatus and storage medium
CN110262918B (en) * 2019-06-19 2023-07-18 深圳市网心科技有限公司 Process crash analysis method and device, distributed equipment and storage medium
CN111324423A (en) * 2020-03-03 2020-06-23 腾讯科技(深圳)有限公司 Method and device for monitoring processes in container, storage medium and computer equipment
CN111324423B (en) * 2020-03-03 2022-03-04 腾讯科技(深圳)有限公司 Method and device for monitoring processes in container, storage medium and computer equipment
CN111563000A (en) * 2020-04-28 2020-08-21 深圳震有科技股份有限公司 File generation method, intelligent terminal and storage medium
CN111563000B (en) * 2020-04-28 2023-08-18 深圳市震有软件科技有限公司 File generation method, intelligent terminal and storage medium
CN113535249A (en) * 2021-08-02 2021-10-22 京东数科海益信息科技有限公司 Data processing method, device, equipment, storage medium and program product
CN113791925A (en) * 2021-08-24 2021-12-14 杭州迪普科技股份有限公司 Memory mapping file storage method and device
CN113791925B (en) * 2021-08-24 2023-06-27 杭州迪普科技股份有限公司 Memory map file storage method and device

Also Published As

Publication number Publication date
CN107357731B (en) 2020-09-29

Similar Documents

Publication Publication Date Title
CN107357731A (en) Process produces monitoring, analysis and the processing method of core dump problems
CN109039740B (en) Method and equipment for processing operation and maintenance monitoring alarm
CN109240886B (en) Exception handling method, exception handling device, computer equipment and storage medium
US20160274997A1 (en) End user monitoring to automate issue tracking
US7913233B2 (en) Performance analyzer
US20150006961A1 (en) Capturing trace information using annotated trace output
CN108038039B (en) Method for recording log and micro-service system
US10528456B2 (en) Determining idle testing periods
US11263072B2 (en) Recovery of application from error
US10534700B2 (en) Separating test verifications from test executions
WO2016114794A1 (en) Root cause analysis of non-deterministic tests
CN103095821A (en) Continuous auditing system based on virtual machine migration recognition
CN113608964A (en) Cluster automation monitoring method and device, electronic equipment and storage medium
CN111859399A (en) Vulnerability detection method and device based on oval
CN113110965B (en) Monitoring method and device for abnormal information, computer storage medium and terminal
CN113377719B (en) System abnormal shutdown time acquisition method and system
EP3514680B1 (en) Identification of changes in functional behavior and runtime behavior of a system during maintenance cycles
CN112988776B (en) Method, device and equipment for updating text parsing rule and readable storage medium
CN113609230A (en) Data synchronization abnormity warning method and device, computer equipment and storage medium
CN111338609A (en) Information acquisition method and device, storage medium and terminal
CN115525392A (en) Container monitoring method and device, electronic equipment and storage medium
CN112650613B (en) Error information processing method and device, electronic equipment and storage medium
CN115098378A (en) Method and device for classifying and aggregating log fragments based on abnormal breakpoints
JP2008015596A (en) Management server and repair program transmission method
CN112069202A (en) SQL performance analysis method, system, device and medium based on tracking technology

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
CB02 Change of applicant information

Address after: 350000 21 / F, building 5, f District, Fuzhou Software Park, 89 software Avenue, Gulou District, Fuzhou City, Fujian Province

Applicant after: FUJIAN SINOREGAL SOFTWARE Co.,Ltd.

Address before: 350000, No. 5, building F, zone 20-21, Fuzhou Software Park, 89 software Avenue, Gulou District, Fujian, Fuzhou

Applicant before: FUJIAN SINOREGAL SOFTWARE Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant