CN106354646A - Method for analyzing dump files - Google Patents

Method for analyzing dump files Download PDF

Info

Publication number
CN106354646A
CN106354646A CN201610787243.3A CN201610787243A CN106354646A CN 106354646 A CN106354646 A CN 106354646A CN 201610787243 A CN201610787243 A CN 201610787243A CN 106354646 A CN106354646 A CN 106354646A
Authority
CN
China
Prior art keywords
analysis
task
dump
file
analysis task
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
CN201610787243.3A
Other languages
Chinese (zh)
Other versions
CN106354646B (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.)
World (beijing) Network Technology Co Ltd
Original Assignee
World (beijing) Network 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 World (beijing) Network Technology Co Ltd filed Critical World (beijing) Network Technology Co Ltd
Priority to CN201610787243.3A priority Critical patent/CN106354646B/en
Publication of CN106354646A publication Critical patent/CN106354646A/en
Application granted granted Critical
Publication of CN106354646B publication Critical patent/CN106354646B/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/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 invention relates to a method for analyzing dump files. The method includes the steps of obtaining the generated dump files and other related collapse information files when software collapses, sending the dump files and the related collapse information files to a storage end, classifying, compressing and storing the collapse information files through the storage end according to a software module, automatically opening and logging into a dump download webpage by means of a dump batched analysis tool, downloading dump packages in parallel by means of multiple threads, decompressing the compressed files in parallel by means of multiple threads, analyzing the dump files in parallel by means of multiple threads, reminding people to check an analysis result log in time when an analysis result is obtained, and marking the checked analysis log for distinguishing so that repeated checking can be avoided and dump batched and rapid analysis and operation can be integrated. In the analysis process, the time consumed for each analysis process is continuously counted, the start, stop and maximum parallel analysis process number of the dump analysis processes are effectively controlled, the states of the analysis processes are renewed in time, and the visibility and controllability of the dump analysis processes are achieved.

Description

A kind of method of analysis dump file
Technical field
The present invention relates to areas of information technology, particularly to a kind of method of analysis dump file.
Background technology
Affected by factors, computer software all more or less has software defect, in running, meeting can not Produce collapse with avoiding.The function of call operation system in prior art when collapse occurs, can be passed through, when collecting software crash The relevant information of internal memory simultaneously generates crashdump file (dump), for software developer, this document solves the problems, such as that software crash carries Supply important evidence.However, for the software (such as game client) having huge user group, daily generation Dump is thousands of, if analyzing these files one by one manually, wastes time and energy.
In prior art, by analyzing dump, generate crashdump analysis daily record, then this daily record is carried out extracting collapse Foundation characteristic, is finally based on collapse foundation characteristic and collapse supplemental characteristic judges to described dump file, and final positioning collapses Routed problem.
For the analysis of dump, prior art has the disadvantage in that one is to need to send out dump file during analysis dump file Deliver to third-party analysis end, and in addition it is also necessary to send dump file corresponding pdb file simultaneously in practical operation, and pdb file is little Then tens kb, greatly then tens mb, when Network Abnormal or network speed are slower, upper transmitting file takes, when directly resulting in analysis dump Between increase, analysis efficiency decline, when situation is serious, final analysis result can not be obtained completely;Two is to obtain to after dump analysis The process of crashdump daily record be related to extract collapse foundation characteristic, inquire about version management server, query history collapses number According to the complexity such as storehouse, redundant operation, and in practical operation, as long as software developer sees generation crashdump analysis daily record, base Crash issue originally can be positioned;Three is that analysis state is invisible during dump analysis, lacks flexible to analysis process Control.
Content of the invention
For the above-mentioned deficiency of prior art, the invention provides a kind of method of analysis dump file it is characterised in that:
S101, transmission crashdump file: when there is collapse in software, the function of call operation system, generate dump literary composition Then dump file is sent to dump file storage end by part;
S102, reception crashdump file: dump file reception end receives the dump file that client sends, Ran Hougen According to the file receiving, judge this affiliated software module of dump file, it is carried out classify, compression of packing, storage, be next step Analysis dump file is ready;
S103, analysis crashdump file: open dump auto Analysis, create a downloading task and start thread, Create an analysis task and start thread;Automatically open up and log in dump and download webpage, select dump compressed package to be downloaded, be Each dump compressed package creates a downloading task, is added to downloading task queue, and downloading task starts thread loops inspection Look into and start downloading task;When having download to complete, then start a decompression thread, start to decompress;When having decompression to complete, then create One analysis task, is added to analysis task queue;Analysis task starts thread loops and checks and start analysis process pair Dump is analyzed.
Preferably, in s102, client also can by dump file to other with the related log information of collapse or file and Send together, the described log information related to collapse or file include but is not limited to occur the sectional drawing to software interface during collapse File, the journal file producing before software crash, currently collapses module title, collapse time, OS Type.
Preferably, described s103 comprises the steps of further:
S201, Allocation Analysis parameter: setting analytical parameters, including the path of analysis debugger, collapse file corresponding pdb literary composition Part path, analysis result file storing path, the dump compressed package storing path of download, storing path after dump decompression, Concurrent greatly analysis process quantity, the user name of automated log on dump file storage end needs, password, web page address;By configuration letter Breath is saved in xml document;
S202, the one or more dump compressed packages of interpolation: obtain compressed package, prepare for creating decompression thread;Open down Carry window, when window is opened, automatically obtain default user name, password, web page address in analytical parameters configuration, open and automatically Log in dump and download webpage, then select one or more compressed packages to be downloaded, create for each compressed package to be downloaded One downloading task, and be added in downloading task queue;When completing when there being dump compressed package to download, create one for it Decompression thread, starts to decompress;In addition to downloading new dump compressed package, the dump compressed package downloaded before can also be added, Open file selection window, select one or more dump compressed packages, then create a decompression thread for each compressed package, open Begin decompression;
S203, parallel decompression dump compressed package, obtain dump file: created decompression thread, decompression thread is according to dump Compressed package path, immediately begins to decompress;Dump file save location after decompression is determined by analytical parameters configuration information;Decompress Cheng Shi, for one analysis task of each dump document creation, and is added to analysis task queue;
S204, parallel parsing dump file: whether analysis task starts thread and pass through in circular test analysis task queue Existence is the analysis task of " not actuated ", has not actuated analysis task, is then marked as " in startup ", and creates one Individual new thread, starts analysis process, by the status modifier of corresponding analysis task when process initiation completes in new thread For " in analysis ", and start dump is analyzed;In addition it is also necessary to judge before an analysis task is labeled as " in startup " In present analysis task queue, whether state has reached maximum analysis process number of concurrent for the quantity of the analysis task of " in analysis ", Not up to maximum concurrent analysis process number, then start analysis task, and when analysis task completes, modification task status is " completing "; Otherwise, need to wait the analysis task analyzed to complete just can continue to start new analysis task;
S205, analysis task is controlled: control operation includes stopping, and deletes, restarts analysis task.Selection stops Only during the task of one or more analyses analyzed or waiting, first terminate the corresponding process of these analysis task, then will Analysis task state is set to " cancelling ".When deleting one or more analysis task, first to terminate these analysis task and correspond to Process, then by analysis task status modifier be " deleting ".When restarting one or more analysis task, first terminate this Then its task status is set to " analysis " by a little corresponding analysis process of analysis task, waits analysis task to start thread again Secondary this analysis task of startup;
S206, check analysis result: when there being a dump analysis to complete, remind and check analysis result information, this time point Hit and open the analysis result daily record of a crashdump file do not checked.
Preferably due to dump compressed package may include the dump compressed package of multiple software modules or a software Multiple dump compressed packages of module, to need recurrence to judge whether during decompression be compressed file and decompresses.
Preferably, check other auxiliary crash infos if necessary, collapsed by the other software collected in step s101 Daily record when routed and message file, auxiliary carries out the quick positioning of crash issue, has checked this bar analysis result log information, will It is labeled as checking;Can also continue to check next analysis result daily record, when reaching last or first, remind Through not having more analysis daily records can check.
Preferably, described s202 comprises the steps of further:
S301, determine whether to download dump compressed package:
Compressed package be added with two ways: download new dump compressed package, add locally existing dump compressed package.This When, can select to download new dump compressed package, select to need to download one or more dump compressed packages;
S302, manually select existing dump compressed package: compressed package be added with two ways: download new dump compression Bag, interpolation locally existing dump compressed package;At this point it is possible to select to add local existing dump compressed package, select one or Multiple existing dump compressed packages;
S303, automated log on dump storage end: when opening download window in dump analytical tool, from analytical parameters configuration Obtain default login username, password, network address in file, automatically open up dump and download webpage and log in, net after logining successfully All Downloadable dump compressed packages, login failure will be shown by sequencing by date, then prompting cannot open webpage in page;
S304, the one or more dump compressed packages to be downloaded of selection: select one or more in dump download webpage Dump compressed package to be downloaded, clicks on download button, and now, dump automatically analyzes instrument and intercepts and captures download button click event, and Obtain the dump compressed package title of selection, the information such as compressed package date of formation, and prepare to create downloading task, start to download;
S305, create a downloading task for each dump compressed package, and be added to downloading task queue: according to Dump compressed package storing path in the dump compression package informatin, and presupposition analysis parameter information that select, needs to download for each Dump compressed package create a downloading task, and be added in downloading task queue, the state of all downloading task when initial It is all " not actuated ";Downloading task starts the download that state in thread meeting circular test downloading task queue is " not actuated " and appoints Business, and starts these downloading task successively, is then " in download " by downloading task status modifier.
Preferably, described s204 comprises the steps of further:
Whether there is the analysis task that state is " not actuated ": analysis task starts line in s401, discriminatory analysis task queue Whether there is not actuated analysis task in journey circulation searching analysis task queue, have not actuated analysis task, then continue to judge Whether meet startup task condition;Otherwise, need to wait certain time (this time is typically less than one second) recirculation to judge;
Whether s402, current analysis task have reached maximum concurrent analysis process number: obtain shape in analysis task queue State is the analysis task quantity of " in analysis ", and it is compared with default maximum analysis number of processes, concurrent less than maximum Analysis process number, then start analysis task;Otherwise, certain time (this time is typically less than one second) is waited to reattempt startup point Analysis task;
S403, one new thread of establishment, start analysis process in thread, start to analyze dump file, and will analyze Task status is revised as " in analysis ": finds, in analysis task queue, the analysis task that a state is " not actuated ", by its shape State is revised as " in startup ", creates a thread, and the details passing through analysis task in thread start an analysis for it Process, starts to analyze dump file, process initiation completes, the status modifier of analysis task is " in analysis ", analysis task is complete During one-tenth, modification analysis task state is " completing ";
S404, it is controlled the need of to analysis task: analysis can be controlled grasping after analysis task starts Make, analyzing including stopping of task, delete analyzing of task, restart the analysis task of stopping;If do not needed Task is controlled, then continuing cycling through and searching simultaneously starting state is the analysis task of " not actuated ";Otherwise, start analysis is appointed Business is controlled operating;
S405, wait: attempt starting the number of times of analysis process, and the time of occupancy cpu to reduce thread loops, will Thread suspension is further continued for for a period of time, is the analysis task of " not actuated " for timely starting state, and waiting time should be set to Less than one second.
Preferably, described s205 comprises the steps of further:
S501, determine whether to stop analysis task: during dump file analysis, can to one or more just In the task of execution analysis, or the task to be analyzed such as, or the analysis task of stopping being operated;
S502, determine whether to delete analysis task: during dump file analysis, can to one or more just In the task of execution analysis, or the task to be analyzed such as, or the analysis task of stopping being operated, and concrete operations include Stop analysis task, restart analysis task, delete analysis task.
S503, determine whether to restart analysis task: during dump file analysis, can be to one or many The individual task of being carrying out analyzing, or the task to be analyzed such as, or the analysis task of stopping being operated;
S504, judge whether present analysis task is " in analysis ": during dump file analysis, can be to one Or multiple be carrying out analyze appoint stopped, delete, reboot operation, be required for first judging present analysis in these operations Whether the state of task is " in analysis ", if it is, needing first termination analysis process, otherwise, direct replacement analysis task State;
S505, the corresponding analysis process of termination analysis task: during dump file analysis, when analysis task state For " in analysis " then it represents that the corresponding analysis process of this analysis task does not also exit, now, if desired stop this analysis task, The corresponding analysis process of this analysis task then will be terminated;
S506, replacement analysis task status: during dump file analysis, have selected stopping analysis task, or Delete analysis task, or restart analysis task, will first terminate the corresponding analysis process of current analysis task, then according to Selected operation updates the state of this task.
Preferably, the operation of s501 including but not limited to stops analysis task, restarts analysis task, deletes analysis task. Wherein, stop analysis task and first have to the corresponding analysis process of termination analysis task, then updating present analysis task status is " cancelling ";
Delete analysis task in s502 and first have to the corresponding analysis process of termination analysis task, then update this analysis task State is " deleting ";
Preferably, the operation in s503 includes stopping analysis task, restarts analysis task, deletes analysis task;Restart point Analysis task first has to terminate the corresponding analysis process of present analysis task, and then updating this analysis task state is " not actuated ", Wait analysis task startup thread to restart again and change analysis task.
By implementing the analysis dump method of the present invention, it is capable of batch, quick dump analysis, and dump is analyzed State is visible, analysis process control, decreases unnecessary manual operation during analysis, improves analysis efficiency, increased Motility to analysis process control, is the quick positioning of software developer and solution significant software defect provides important Support.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to institute in embodiment Need use accompanying drawing be briefly described it should be apparent that, drawings in the following description be only the present invention described in one A little embodiments, for those of ordinary skill in the art, can also obtain other accompanying drawings according to these accompanying drawings.
Fig. 1 is the method flow diagram of analysis dump file according to an embodiment of the invention;
Fig. 2 is the method flow diagram of analysis dump file in accordance with another embodiment of the present invention;
Fig. 3 is the method flow diagram of analysis dump file in accordance with another embodiment of the present invention;
Fig. 4 is the method flow diagram of analysis dump file in accordance with another embodiment of the present invention;
Fig. 5 is the method flow diagram of analysis dump file in accordance with another embodiment of the present invention.
Specific embodiment
In order that those skilled in the art more fully understand the scheme of the embodiment of the present invention, below in conjunction with the accompanying drawings and implement Mode is described in further detail to the embodiment of the present invention.
Abbreviation and Key Term definition:
During the collapse of dump (crashdump file): running software, by the function of call operation system, collect software crash When the relevant information of internal memory raw file, this file can be opened by specific purpose tool software, such as windbg.
The debugging of pdb (program debug database, program debugging data base): this document logging software and project Status information, for the Commissioning Analysis of application program, generates in software translating.
Kb: represent the unit of storage volume size in computer, represent 1024 bytes.
Mb: represent the unit of storage volume size in computer, represent 1024kb.
Http (hypertext transfer protocol, HTML (Hypertext Markup Language)): be that interconnection web-based applications are the widest A kind of general procotol.All of www file must comply with this standard.
Cpu (central processing unit, central processing unit): be one piece of ultra-large integrated circuit, be one Data in the instruction of the arithmetic core of platform computer and control core, mainly interpretive machine and process computer software.
Downloading task queue: a queue, preserve all downloading task, according to the order adding, be initially charged under queue Load task is preferentially taken out, and each downloading task information includes downloading task numbering, download address, storing path, current state (not actuated, start in, start unsuccessfully, start successfully, cancel, delete, completing, failed download).
Downloading task starts thread a: thread, is " not actuated " for the state in circular test downloading task queue Downloading task, if it has, then this task status is revised as " in startup ", and create a new thread start download number According to;If it is not, waiting certain time, (this time range is not fixed, but for guaranteeing that not actuated analysis task can quilt in time Start, this time may be set in one second) recirculation inspection downloading task queue.
Decompression thread a: thread, the dump compressed package for calling decompression tool to complete to downloading or to add manually enters Row recurrence decompresses, and the file after decompression is left in specified path (this path is by the analysis configuration parameter determination setting).
Analysis task queue: a queue, for preserving all analysis task, according to the order adding, it is initially charged queue Analysis task preferentially taken out, each analysis mission bit stream includes analysis task numbering, dump file path, Commissioning Analysis device Path, analysis result daily record storing path, current state (not actuated, start in, start unsuccessfully, start successfully, cancel, Complete, analyze failure).
Analysis task starts thread a: thread, is " not actuated " for the state in circular test analysis task queue Analysis task, if it has, being then revised as " in startup " this task status, and create a new thread, in thread adjust With analyzing debugger program, and transmit analytical parameters, start analysis process, start to analyze dump;If it is not, waiting certain (this time range is not fixed, but for guaranteeing that not actuated analysis task can be activated in time, this time may be set in one second) Time recirculation Inspection and analysis task queue.
According to a specific embodiment of the present invention, as shown in figure 1, a kind of method of analysis dump file:
S101, transmission crashdump file: when there is collapse in software, the function of call operation system, generate dump literary composition Then dump file is sent to dump file storage end by part;
According to a preferred embodiment of the present invention, can also be by other log informations related to collapse or file Send together, the described log information related to collapse or file include but is not limited to occur the sectional drawing to software interface during collapse File, the journal file producing before software crash, currently collapses module title, collapse time, OS Type;
S102, reception crashdump file: dump file reception end receives the dump file that client sends, including it He to collapse related log information or file, the file that then basis receives, judge this affiliated software module of dump file, It is carried out classify, compression of packing, storage, be that next step analysis dump file is ready;
S103, analysis crashdump file: open dump auto Analysis, create a downloading task and start thread, Create an analysis task and start thread;Automatically open up and log in dump and download webpage, select dump compressed package to be downloaded, be Each dump compressed package creates a downloading task, is added to downloading task queue, and downloading task starts thread loops inspection Look into and start downloading task;When having download to complete, then start a decompression thread, start to decompress;When having decompression to complete, then create One analysis task, is added to analysis task queue;Analysis task starts thread loops and checks and start analysis process pair Dump is analyzed.
According to a specific embodiment of the present invention, described s103 comprises the steps of further:
S201, Allocation Analysis parameter: setting analytical parameters, including the path of analysis debugger, collapse file corresponding pdb literary composition Part path, analysis result file storing path, the dump compressed package storing path of download, storing path after dump decompression, Concurrent greatly analysis process quantity, the user name of automated log on dump file storage end needs, password, web page address;By configuration letter Breath is saved in xml document;
S202, the one or more dump compressed packages of interpolation: obtain compressed package, prepare for creating decompression thread;Open down Carry window, when window is opened, automatically obtain default user name, password, web page address in analytical parameters configuration, open and automatically Log in dump and download webpage, then select one or more compressed packages to be downloaded, create for each compressed package to be downloaded One downloading task, and be added in downloading task queue;When completing when there being dump compressed package to download, create one for it Decompression thread, starts to decompress;In addition to downloading new dump compressed package, the dump compressed package downloaded before can also be added, Open file selection window, select one or more dump compressed packages, then create a decompression thread for each compressed package, open Begin decompression;
S203, parallel decompression dump compressed package, obtain dump file: created decompression thread, decompression thread is according to dump Compressed package path, immediately begins to decompress;Dump file save location after decompression is determined by analytical parameters configuration information;Decompress Cheng Shi, for one analysis task of each dump document creation, and is added to analysis task queue;
According to a specific embodiment of the present invention, because a dump compressed package may include multiple software modules Dump compressed package or a software module multiple dump compressed packages, need during decompression recurrence judge whether be compressed file simultaneously Decompression;
S204, parallel parsing dump file: whether analysis task starts thread and pass through in circular test analysis task queue Existence is the analysis task of " not actuated ", has not actuated analysis task, is then marked as " in startup ", and creates one Individual new thread, starts analysis process, by the status modifier of corresponding analysis task when process initiation completes in new thread For " in analysis ", and start dump is analyzed;In addition it is also necessary to judge before an analysis task is labeled as " in startup " In present analysis task queue, whether state has reached maximum analysis process number of concurrent for the quantity of the analysis task of " in analysis ", Not up to maximum analysis enter number of passes, then start analysis task, otherwise, need to wait the analysis task analyzed to complete just may be used To continue to start new analysis task;
S205, analysis task is controlled: control operation includes stopping, and deletes, restarts analysis task.Selection stops Only during the task of one or more analyses analyzed or waiting, first terminate the corresponding process of these analysis task, then will Analysis task state is set to " cancelling ".When deleting one or more analysis task, first to terminate these analysis task and correspond to Process, then by analysis task status modifier be " deleting ".When restarting one or more analysis task, first terminate this Then its task status is set to " analysis " by a little corresponding analysis process of analysis task, waits analysis task to start thread again Secondary this analysis task of startup;
S206, check analysis result: when there being a dump analysis to complete, remind and check analysis result information, this time point Hit and open the analysis result daily record of a crashdump file do not checked;
According to a specific embodiment of the present invention, check other auxiliary crash infos if necessary, by step Daily record during the other software collapse collected in s101 and message file, auxiliary carries out the quick positioning of crash issue, checks Complete bar analysis result log information, is marked as checking;Can also continue to check next analysis result daily record, reach Afterwards one or first when, remind do not had more analysis daily records can check.
As shown in figure 3, according to a specific embodiment of the present invention, s202 (adding dump compressed package) specifically comprise as Lower step:
S301, determine whether to download dump compressed package:
According to a specific embodiment of the present invention, compressed package be added with two ways: download new dump compression Bag, interpolation locally existing dump compressed package.At this point it is possible to select to download new dump compressed package, select to need to download one Or multiple dump compressed package;
S302, add manually existing dump compressed package: compressed package be added with two ways: download new dump compression Bag, interpolation locally existing dump compressed package;At this point it is possible to select to add one or more locally existing dump compressed packages;
S303, automated log on dump storage end: when opening download window in dump analytical tool, from analytical parameters configuration Obtain default login username, password, network address in file, automatically open up dump and download webpage and log in, net after logining successfully All Downloadable dump compressed packages, login failure will be shown by sequencing by date, then prompting cannot open webpage in page;
S304, the one or more dump compressed packages to be downloaded of selection: select one or more in dump download webpage Dump compressed package to be downloaded, clicks on download button, and now, dump automatically analyzes instrument and intercepts and captures download button click event, and Obtain the dump compressed package title of selection, the information such as compressed package date of formation, and prepare to create downloading task, start to download;
S305, create a downloading task for each dump compressed package, and be added to downloading task queue: according to Dump compressed package storing path in the dump compression package informatin, and presupposition analysis parameter information that select, needs to download for each Dump compressed package create a downloading task, and be added in downloading task queue, the state of all downloading task when initial It is all " not actuated ";It is the downloading task of " not actuated " that downloading task start thread loops to search state in downloading task queue, And start these downloading task successively, then by downloading task status modifier be " in download ".
As shown in figure 4, according to a specific embodiment of the present invention, s204 (parallel parsing dump file) specifically comprises Following steps:
Whether there is the analysis task that state is " not actuated ": analysis task starts line in s401, discriminatory analysis task queue Whether there is not actuated analysis task in journey circulation searching analysis task queue, have not actuated analysis task, then continue to judge Whether meet startup task condition;Otherwise, need to wait certain time (this time is typically less than one second) recirculation to search.
Whether s402, current analysis task have reached maximum analysis is entered number of passes: in acquisition analysis task queue, state is The analysis task quantity of " in analysis ", and it is compared with default maximum concurrent analysis process quantity, concurrent less than maximum Analysis process number, then start analysis task;Otherwise, certain time (this time is typically less than one second) is waited to reattempt startup Analysis task.
S403, one new thread of establishment, start analysis process in thread, start to analyze dump file, and will analyze Task status is revised as " in analysis ": finds, in analysis task queue, the analysis task that a state is " not actuated ", by its shape State is revised as " in startup ", creates a thread, and the details passing through analysis task in thread start an analysis for it Process, starts to analyze dump file, process initiation completes, and the status modifier of analysis task is " in analysis ";
S404, it is controlled the need of to analysis task: analysis can be controlled grasping after analysis task starts Make, analyzing including stopping of task, delete analyzing of task, restart the analysis task of stopping;If do not needed Task is controlled, then continuing cycling through and searching simultaneously starting state is the analysis task of " not actuated ";Otherwise, start analysis is appointed Business is controlled operating;
S405, wait: attempt starting the number of times of analysis process, and the time of occupancy cpu to reduce thread loops, will Thread suspension is further continued for for a period of time, is the analysis task of " not actuated " for timely starting state, and waiting time should be set to Less than one second.
As shown in figure 5, according to a specific embodiment of the present invention, s205 (analysis process is controlled) is concrete to be wrapped Containing following steps:
S501, determine whether to stop analysis task: during dump file analysis, can to one or more just In the task of execution analysis, or the task to be analyzed such as, or the analysis task of stopping being operated;
According to a specific embodiment of the present invention, described operation including but not limited to stops analysis task, restarts point Analysis task, deletes analysis task.Wherein, the analysis process that analysis task first has to terminate being currently executing, Ran Hougeng are stopped New present analysis task status is " cancelling ";
S502, determine whether to delete analysis task: during dump file analysis, can to one or more just In the task of execution analysis, or the task to be analyzed such as, or the analysis task of stopping being operated, and concrete operations include Stop analysis task, restart analysis task, delete analysis task.
According to a specific embodiment of the present invention, delete the analysis that analysis task first has to terminate being currently executing Process, then updating this analysis task state is " deleting ";
S503, determine whether to restart analysis task: during dump file analysis, can be to one or many The individual task of being carrying out analyzing, or the task to be analyzed such as, or the analysis task of stopping being operated;
According to a specific embodiment of the present invention, described operation includes stopping analysis task, restarts analysis task, deletes Except analysis task.
According to a specific embodiment of the present invention, restart the analysis that analysis task first has to terminate being currently executing Process, then updating this analysis task state is " not actuated ", waits analysis task to start thread and restarts again this analysis Task;
S504, judge whether present analysis task is " in analysis ": during dump file analysis, can be to one Or multiple be carrying out analyze appoint stopped, delete, reboot operation, be required for first judging present analysis in these operations Whether the state of task is " in analysis ", if it is, needing first termination analysis process, otherwise, direct replacement analysis task State;
S505, the corresponding analysis process of termination analysis task: during dump file analysis, when analysis task state For " in analysis " then it represents that the corresponding analysis process of this analysis task does not also exit, now, if desired stop this analysis task, The corresponding analysis process of this analysis task then will be terminated;
S506, replacement analysis task status: during dump file analysis, have selected stopping analysis task, or Delete analysis task, or restart analysis task, will first terminate the corresponding analysis process of current analysis task, then according to Selected operation updates the state of this task.
According to a specific embodiment of the present invention, for analysis task to be stopped, then updating its state is " to take Disappear ".For analysis task to be deleted, then updating its state is " deleting ".Needs are restarted, then updates its shape State is " not actuated ".
A kind of method of analysis dump file provided by the present invention has following Advantageous Effects: in batches, quickly divides Analysis dump file, improves dump analysis efficiency;By making analysis process visible, controlled, increased to analysis process control Motility.
Each embodiment in this specification is all described by the way of going forward one by one, identical similar portion between each embodiment Divide mutually referring to what each embodiment stressed is the difference with other embodiment.The foregoing is only this The preferred embodiment of invention, not in order to limit the present invention, all within the spirit and principles in the present invention, made any repair Change, equivalent, improvement etc., should be included within the scope of the present invention.

Claims (10)

1. a kind of analysis dump file method it is characterised in that:
S101, transmission crashdump file: when there is collapse in software, the function of call operation system, generate dump file, so Afterwards dump file is sent to dump file storage end;
S102, reception crashdump file: dump file reception end receives the dump file that client sends, and then basis connects The file receiving, judges this affiliated software module of dump file, it is carried out classify, compression of packing, storage, be next step analysis Dump file is ready;
S103, analysis crashdump file: open dump auto Analysis, create a downloading task and start thread, create One analysis task starts thread;Automatically open up and log in dump and download webpage, select dump compressed package to be downloaded, for each Dump compressed package creates a downloading task, is added to downloading task queue, and downloading task starts thread loops inspection simultaneously Start downloading task;When having download to complete, then start a decompression thread, start to decompress;When having decompression to complete, then create one Analysis task, is added to analysis task queue;Analysis task starts thread loops and checks and start analysis process to dump It is analyzed.
2. as claimed in claim 1 a kind of analysis dump file method it is characterised in that:
In s102, client also can by dump file to other with collapse related log information or file with together with send, institute State and collapse related log information or file and include but is not limited to occur the sectional drawing file to software interface during collapse, software collapses The journal file producing before bursting, currently collapses module title, collapse time, OS Type.
3. as claimed in claim 2 a kind of analysis dump file method it is characterised in that:
Described s103 comprises the steps of further:
S201, Allocation Analysis parameter: setting analytical parameters, including the path of analysis debugger, collapse file corresponds to pdb file road Footpath, analysis result file storing path, the dump compressed package storing path of download, storing path after dump decompression, maximum is simultaneously Send out analysis process quantity, the user name of automated log on dump file storage end needs, password, web page address;Configuration information is protected It is stored in xml document;
S202, the one or more dump compressed packages of interpolation: obtain compressed package, prepare for creating decompression thread;Open download window Mouthful, automatically obtain default user name, password, web page address in analytical parameters configuration when window is opened, open and automated log on Dump downloads webpage, then selects one or more compressed packages to be downloaded, and creates one for each compressed package to be downloaded Downloading task, and be added in downloading task queue;When completing when there being dump compressed package to download, create a decompression for it Thread, starts to decompress;In addition to downloading new dump compressed package, the dump compressed package downloaded before can also be added, open File selection window, selects one or more dump compressed packages, then creates a decompression thread for each compressed package, starts to solve Pressure;
S203, parallel decompression dump compressed package, obtain dump file: created decompression thread, decompression thread compresses according to dump Bag path, immediately begins to decompress;Dump file save location after decompression is determined by analytical parameters configuration information;Decompression completes When, for one analysis task of each dump document creation, and it is added to analysis task queue;
S204, parallel parsing dump file: analysis task starts thread and passes through to whether there is in circular test analysis task queue State is the analysis task of " not actuated ", has not actuated analysis task, is then marked as " in startup ", and creates one newly Thread, in new thread start analysis process, when process initiation completes by the status modifier of corresponding analysis task be " point In analysis ", and start dump is analyzed;In addition it is also necessary to judge current before an analysis task is labeled as " in startup " In analysis task queue, whether state has reached maximum analysis process number of concurrent for the quantity of the analysis task of " in analysis ", does not reach Enter number of passes to maximum analysis, then start analysis task, otherwise, need to wait the analysis task analyzed to complete just can continue The new analysis task of continuous startup;
S205, analysis task is controlled: control operation includes stopping, and deletes, restarts analysis task.Select stopping one During the task of the individual or multiple analysis analyzed or waiting, first terminate the corresponding process of these analysis task, then will analyze Task status is set to " cancelling ".When deleting one or more analysis task, first to terminate these analysis task corresponding enter Journey, then by analysis task status modifier be " deleting ".When restarting one or more analysis task, first terminate these points Then its task status is set to " analysis " by the corresponding analysis process of analysis task, waits analysis task to start thread and opens again Move this analysis task;
S206, check analysis result: when there being a dump analysis to complete, remind and check analysis result information, now click on simultaneously Open the analysis result daily record of a crashdump file do not checked.
4. as claimed in claim 3 a kind of analysis dump file method it is characterised in that:
Because a dump compressed package may include the dump compressed package of multiple software modules or the multiple of a software module Dump compressed package, to need recurrence to judge whether during decompression be compressed file and decompresses.
5. as claimed in claim 4 a kind of analysis dump file method it is characterised in that:
Check other auxiliary crash infos if necessary, by the daily record during other software collapse collected in step s101 and Message file, auxiliary carries out the quick positioning of crash issue, has checked this bar analysis result log information, has been marked as looking into See;Can also continue to check next analysis result daily record, when reaching last or first, reminding has not had more points Analysis daily record can be checked.
6. described a kind of analysis dump file as arbitrary in claim 3-5 method it is characterised in that:
Described s202 comprises the steps of further:
S301, determine whether to download dump compressed package:
Compressed package be added with two ways: download new dump compressed package, add locally existing dump compressed package.Now, Can select to download new dump compressed package, select to need to download one or more dump compressed packages;
S302, add manually existing dump compressed package: compressed package be added with two ways: download new dump compressed package, add Plus local existing dump compressed package;At this point it is possible to select to add locally existing dump compressed package, selection is one or more There is dump compressed package;
S303, automated log on dump storage end: when opening download window in dump analytical tool, from analytical parameters configuration file The default login username of middle acquisition, password, network address, automatically open up dump and download webpage and log in, login successfully in rear webpage All Downloadable dump compressed packages will be shown by sequencing by date, login failure, then prompting cannot open webpage;
S304, select one or more dump compressed packages to be downloaded: dump download webpage in select one or more will under The dump compressed package carrying, clicks on download button, and now, dump automatically analyzes instrument and intercepts and captures download button click event, and obtains The dump compressed package title of selection, the information such as compressed package date of formation, and prepare to create downloading task, it is added to downloading task Queue, starts to download;
S305, create a downloading task for each dump compressed package, and be added to downloading task queue: according to selection Dump compression package informatin, and presupposition analysis parameter information in dump compressed package storing path, for each need download Dump compressed package creates a downloading task, and is added in downloading task queue, and when initial, the state of all downloading task is all It is " not actuated ";It is the downloading task of " not actuated " that downloading task starts state in thread meeting circular test downloading task queue, And start these downloading task successively, then by downloading task status modifier be " in download ".
7. described a kind of analysis dump file as arbitrary in claim 3-6 method it is characterised in that:
Described s204 comprises the steps of further:
Whether there is the analysis task that state is " not actuated ": analysis task starts thread and follows in s401, discriminatory analysis task queue Ring searches in analysis task queue whether there is not actuated analysis task, has not actuated analysis task, then continues to determine whether Meet startup task condition;Otherwise, need to wait certain time (this time is typically less than one second) recirculation to judge;
Whether s402, current analysis task have reached maximum analysis is entered number of passes: the state in analysis task queue that obtains is " analysis In " analysis task quantity, and it is compared with default maximum analysis number of processes, enters number of passes less than maximum analysis, then Start analysis task;Otherwise, certain time (this time is typically less than one second) is waited to reattempt startup analysis task;
S403, create a new thread, start analysis process in thread, start to analyze dump file, and by analysis task Status modifier is " in analysis ": finds, in analysis task queue, the analysis task that a state is " not actuated ", by its status maintenance It is changed to " in startup ", creates a thread, the details passing through analysis task in thread start an analysis process for it, Start to analyze dump file, process initiation completes, the status modifier of analysis task is " in analysis ";
S404, it is controlled the need of to analysis task: analysis can be controlled operating after analysis task starts, bag Include the task of stopping analyzing, delete analyzing of task, restart the analysis task of stopping;If do not needed to task Be controlled, then continue cycling through judge, search and starting state as " not actuated " analysis task;Otherwise, start analysis is appointed Business is controlled operating;
S405, wait: attempt starting the number of times of analysis process, and the time of occupancy cpu to reduce thread loops, by thread Hang up and be further continued for for a period of time, be the analysis task of " not actuated " for timely starting state, waiting time should be set smaller than One second.
8. described a kind of analysis dump file as arbitrary in claim 3-7 method it is characterised in that:
Described s205 comprises the steps of further:
S501, determine whether to stop analysis task: during dump file analysis, can hold to one or more The task of row analysis, or the task to be analyzed such as, or the analysis task of stopping being operated;
S502, determine whether to delete analysis task: during dump file analysis, can hold to one or more The task of row analysis, or the task to be analyzed such as, or the analysis task of stopping being operated, concrete operations include stopping Analysis task, restarts analysis task, deletes analysis task.
S503, determine whether to restart analysis task: during dump file analysis, can to one or more just In the task of execution analysis, or the task to be analyzed such as, or the analysis task of stopping being operated;
S504, judge whether present analysis task is " in analysis ": during dump file analysis, can be to one or many Individual be carrying out analyze appoint stopped, delete, reboot operation, be required for first judging present analysis task in these operations State whether be " in analysis ", if it is, needing first termination analysis process, otherwise, the state of direct replacement analysis task;
S505, the corresponding analysis process of termination analysis task: during dump file analysis, when analysis task state is " in analysis ", then it represents that the corresponding analysis process of this analysis task does not also exit, now, if desired stops this analysis task, then Terminate the corresponding analysis process of this analysis task;
S506, replacement analysis task status: during dump file analysis, have selected stopping analysis task, or delete Analysis task, or restart analysis task, will first terminate the corresponding analysis process of current analysis task, then according to selected The operation selected updates the state of this task.
9. described a kind of analysis dump file as arbitrary in claim 8 method it is characterised in that:
The operation of s501 including but not limited to stops analysis task, restarts analysis task, deletes analysis task.Wherein, stop dividing Analysis task first has to the corresponding analysis process being carrying out of termination analysis task, then updates present analysis task status and is " cancelling ";
Delete, in s502, the analysis process that analysis task first has to terminate being currently executing, then update this analysis task state For " deleting ".
10. described a kind of analysis dump file as arbitrary in claim 8-9 method it is characterised in that:
Operation in s503 includes stopping analysis task, restarts analysis task, deletes analysis task;
Restart analysis task and first have to the corresponding analysis process being carrying out of termination analysis task, then update this analysis task State is " not actuated ", waits analysis task startup thread to restart again and changes analysis task.
CN201610787243.3A 2016-08-30 2016-08-30 A method of analysis dump file Active CN106354646B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610787243.3A CN106354646B (en) 2016-08-30 2016-08-30 A method of analysis dump file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610787243.3A CN106354646B (en) 2016-08-30 2016-08-30 A method of analysis dump file

Publications (2)

Publication Number Publication Date
CN106354646A true CN106354646A (en) 2017-01-25
CN106354646B CN106354646B (en) 2018-12-25

Family

ID=57857520

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610787243.3A Active CN106354646B (en) 2016-08-30 2016-08-30 A method of analysis dump file

Country Status (1)

Country Link
CN (1) CN106354646B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109062718A (en) * 2018-07-12 2018-12-21 联想(北京)有限公司 A kind of server and data processing method
CN109086125A (en) * 2017-06-14 2018-12-25 杭州海康威视数字技术股份有限公司 Picture analyzing method, apparatus and system, computer equipment and storage medium
CN111125015A (en) * 2019-12-20 2020-05-08 北京百度网讯科技有限公司 Method, apparatus, terminal and medium for dump file classification
CN111314437A (en) * 2020-01-20 2020-06-19 腾讯科技(深圳)有限公司 Resource package downloading method and device, storage medium and electronic device
CN112463343A (en) * 2020-12-16 2021-03-09 广州博冠信息科技有限公司 Business process restarting method and device, storage medium and electronic equipment
CN112988503A (en) * 2021-02-05 2021-06-18 深圳市锐尔觅移动通信有限公司 Analysis method, analysis device, electronic device, and storage medium
CN115865905A (en) * 2023-02-21 2023-03-28 深圳依时货拉拉科技有限公司 Method and device for downloading compressed package, computer equipment and computer readable storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11841788B2 (en) 2021-06-10 2023-12-12 International Business Machines Corporation Self-optimizing analysis system for core dumps

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101719090A (en) * 2009-12-25 2010-06-02 珠海市君天电子科技有限公司 Method for automatically analyzing crash cause of computer software system
CN101944059A (en) * 2010-08-20 2011-01-12 北京神州泰岳软件股份有限公司 Automatic analysis method and device of crash information of computer software
CN103077108A (en) * 2013-01-07 2013-05-01 北京奇虎科技有限公司 Method and system for warning browser crash
CN103544071A (en) * 2012-07-17 2014-01-29 阿里巴巴集团控股有限公司 Processing method, device and system of collapse information
CN103678091A (en) * 2013-12-19 2014-03-26 北京奇虎科技有限公司 Method and device for processing crash data of application software
CN103678109A (en) * 2012-09-25 2014-03-26 腾讯科技(深圳)有限公司 Dump document analysis method, device and system
WO2016121077A1 (en) * 2015-01-30 2016-08-04 株式会社日立製作所 Dump file generation method and dump file generation device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101719090A (en) * 2009-12-25 2010-06-02 珠海市君天电子科技有限公司 Method for automatically analyzing crash cause of computer software system
CN101944059A (en) * 2010-08-20 2011-01-12 北京神州泰岳软件股份有限公司 Automatic analysis method and device of crash information of computer software
CN103544071A (en) * 2012-07-17 2014-01-29 阿里巴巴集团控股有限公司 Processing method, device and system of collapse information
CN103678109A (en) * 2012-09-25 2014-03-26 腾讯科技(深圳)有限公司 Dump document analysis method, device and system
CN103077108A (en) * 2013-01-07 2013-05-01 北京奇虎科技有限公司 Method and system for warning browser crash
CN103678091A (en) * 2013-12-19 2014-03-26 北京奇虎科技有限公司 Method and device for processing crash data of application software
WO2016121077A1 (en) * 2015-01-30 2016-08-04 株式会社日立製作所 Dump file generation method and dump file generation device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109086125A (en) * 2017-06-14 2018-12-25 杭州海康威视数字技术股份有限公司 Picture analyzing method, apparatus and system, computer equipment and storage medium
CN109086125B (en) * 2017-06-14 2021-01-22 杭州海康威视数字技术股份有限公司 Picture analysis method, device and system, computer equipment and storage medium
CN109062718A (en) * 2018-07-12 2018-12-21 联想(北京)有限公司 A kind of server and data processing method
CN109062718B (en) * 2018-07-12 2021-08-17 联想(北京)有限公司 Server and data processing method
CN111125015A (en) * 2019-12-20 2020-05-08 北京百度网讯科技有限公司 Method, apparatus, terminal and medium for dump file classification
CN111125015B (en) * 2019-12-20 2023-04-14 北京百度网讯科技有限公司 Method, apparatus, terminal and medium for dump file classification
CN111314437A (en) * 2020-01-20 2020-06-19 腾讯科技(深圳)有限公司 Resource package downloading method and device, storage medium and electronic device
CN112463343A (en) * 2020-12-16 2021-03-09 广州博冠信息科技有限公司 Business process restarting method and device, storage medium and electronic equipment
CN112463343B (en) * 2020-12-16 2023-09-26 广州博冠信息科技有限公司 Restarting method and device of business process, storage medium and electronic equipment
CN112988503A (en) * 2021-02-05 2021-06-18 深圳市锐尔觅移动通信有限公司 Analysis method, analysis device, electronic device, and storage medium
CN115865905A (en) * 2023-02-21 2023-03-28 深圳依时货拉拉科技有限公司 Method and device for downloading compressed package, computer equipment and computer readable storage medium
CN115865905B (en) * 2023-02-21 2023-06-13 深圳依时货拉拉科技有限公司 Method, apparatus, computer device and computer readable storage medium for downloading compressed package

Also Published As

Publication number Publication date
CN106354646B (en) 2018-12-25

Similar Documents

Publication Publication Date Title
CN106354646A (en) Method for analyzing dump files
CN101821728B (en) Batch processing system
CN109460279A (en) Forms pages development approach, device, equipment and storage medium based on small routine
CN108958927A (en) Dispositions method, device, computer equipment and the storage medium of container application
US9733919B2 (en) Updating web resources
US20140108087A1 (en) Log management system and log management method
WO2008106643A2 (en) Forms conversion and deployment system for mobile devices
JP5375910B2 (en) Map information sharing / updating system and terminal device
CN107797823B (en) Business rule management method and device, storage medium and computer equipment
CN110286939A (en) Development approach, device, equipment and the storage medium of Software Development Kit
US20130346992A1 (en) Computing system, method for controlling thereof, and computer-readable recording medium having computer program for controlling thereof
CN110532182B (en) Automatic testing method and device for virtualization platform
CN108829430A (en) Java Web project update method and relevant apparatus based on Eclipse and Tomcat
CN111352612A (en) Scheduling method and device for code deployment, electronic equipment and storage medium
JPH11282686A (en) Network computer system
CN112559525B (en) Data checking system, method, device and server
CN116016702A (en) Application observable data acquisition processing method, device and medium
CN115687119A (en) Interface fuzzy test system based on generation and variation modes
US7620887B1 (en) System and method of evaluating the integrity of a set of files
CN113282308A (en) Mirror image construction method and device, storage medium and electronic device
CN112487218A (en) Content processing method, system, device, computing equipment and storage medium
CN110780983A (en) Task exception handling method and device, computer equipment and storage medium
CN112286800B (en) Auxiliary analysis method and system for functional test points
US20090313628A1 (en) Dynamically batching remote object model commands
CN117076417B (en) File snapshot implementation method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant