[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN106126419A - The adjustment method of a kind of application program and device - Google Patents

The adjustment method of a kind of application program and device Download PDF

Info

Publication number
CN106126419A
CN106126419A CN201610451160.7A CN201610451160A CN106126419A CN 106126419 A CN106126419 A CN 106126419A CN 201610451160 A CN201610451160 A CN 201610451160A CN 106126419 A CN106126419 A CN 106126419A
Authority
CN
China
Prior art keywords
event
destination application
described destination
log
application 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.)
Pending
Application number
CN201610451160.7A
Other languages
Chinese (zh)
Inventor
寇立强
高传集
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201610451160.7A priority Critical patent/CN106126419A/en
Publication of CN106126419A publication Critical patent/CN106126419A/en
Pending legal-status Critical Current

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/3644Software debugging by instrumenting at runtime

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 provides adjustment method and the device of a kind of application program, method includes: development goal application program in cloud environment, and is that the distribution of described destination application runs container;Described destination application is run in described operation container;Obtain the log of described destination application, and the leak that there is described destination application according to described log is debugged.According to this programme, by development goal application program in cloud environment, and run container for destination application distribution, so that user can get destination application and run the log during container runs, owing to this log describes the running of application program, therefore, according to log, destination application is determined whether there is leak, more comprehensive relative to prior art.

Description

The adjustment method of a kind of application program and device
Technical field
The present invention relates to field of cloud computer technology, particularly to adjustment method and the device of a kind of application program.
Background technology
Application program running occurs that the situation of various leaks happens occasionally, as a result, it is often necessary to certain debugger Application program is debugged, to know leak present in application program, and then it is constantly repaired.Traditional tune Trial work tool, mostly for interface debugger, is used for providing some basic debugging functions, and application program completes basic function tune Examination, the leak learnt is not comprehensive, thus brings impact to the exploitation of application program and debugging.
Summary of the invention
Embodiments provide adjustment method and the device of a kind of application program, to know more fully leak.
First aspect, embodiments provides the adjustment method of a kind of application program, including:
Development goal application program in cloud environment, and be that the distribution of described destination application runs container;
Described destination application is run in described operation container;
Obtain the log of described destination application, and according to described log, described destination application is deposited Leak debug.
Preferably, farther include: when application program carries out event registration, record at least in following event information Kind: event title, Time To Event, event generation state and event source code;The event information of record is placed into In websocket;Wherein, application program performs event registration when proceeding as follows: version is issued, version updating and version Operating at least one;
The log of the described destination application of described acquisition, and according to described log to described intended application journey The leak that sequence exists is debugged, including: from websocket, extract the object event letter that described destination application is corresponding Breath;According to the event generation state that each event is corresponding in described object event information, determine that event generation state is corresponding The object event of leak;Obtain the event source code that described object event is corresponding, the event source generation corresponding to described object event Code is debugged.
Preferably,
Farther include: to application program configuration log catalogue watch-dog, in application program running, generate Journal file;
The log of the described destination application of described acquisition, and according to described log to described intended application journey The leak that sequence exists is debugged, including: when receiving the log request for described destination application, pass through Target journaling file corresponding for described destination application is fed back by rabitmq, so that user is according to described target journaling File determines whether there is leak, and debugs source code according to the leak existed.
Preferably, the log of the described destination application of described acquisition, and according to described log to described mesh The leak that mark application program exists is debugged, including:
The cloud environment that described destination application runs is signed in by online shell terminal;
The container daily record of described destination application correspondence object run container is checked in cloud environment;
Determine whether that process breaks down according to container daily record, if, it is determined that there is leak in described destination application, and Determine the source code of correspondence according to the process broken down, this source code determined is debugged.
Preferably,
Farther include: installation space threshold value;
Farther include: when described destination application reaches described capacity-threshold at the running space run in container Time, distribute new operation container for described destination application, so that described destination application is in the multiple fortune distributed for it Row container runs.
Second aspect, the embodiment of the present invention additionally provides the debugging apparatus of a kind of application program, including:
Development block, for development goal application program in cloud environment;
Allocation unit, for running container for the distribution of described destination application;
Running unit, for running described destination application in described operation container;
Debugging unit, for obtaining the log of described destination application, according to described log to described mesh The leak that mark application program exists is debugged.
Preferably,
Farther include: event recording unit, for when application program carries out event registration, record following event information In at least one: event title, Time To Event, event generation state and event source code;Event information by record It is placed in websocket;Wherein, application program performs event registration when proceeding as follows: version is issued, version updating Operating with version at least one;
Described debugging unit, the object event corresponding specifically for extracting described destination application from websocket Information;According to the event generation state that each event is corresponding in described object event information, determine event generation state pair Answer the object event of leak;Obtain the event source code that described object event is corresponding, the event source corresponding to described object event Code is debugged.
Preferably,
Farther include: Log Directory watch-dog, in application program running, generate journal file;
Described debugging unit, specifically for when receiving the log request for described destination application, passing through Target journaling file corresponding for described destination application is fed back by rabitmq, so that user is according to described target journaling File determines whether there is leak, and debugs source code according to the leak existed.
Preferably, described debugging unit, transport specifically for signing in described destination application by online shell terminal The cloud environment of row;The container daily record of described destination application correspondence object run container is checked in cloud environment;According to container Daily record determines whether that process breaks down, if, it is determined that there is leak in described destination application, and true according to the process broken down Fixed corresponding source code, debugs this source code determined.
Preferably,
Farther include: memory element, for installation space threshold value;
Described allocation unit, is further used for when described destination application reaches institute at the running space run in container When stating capacity-threshold, for the described destination application new operation container of distribution, so that described destination application is for its point The multiple operation containers joined run.
Embodiments provide adjustment method and the device of a kind of application program, owing to cloud environment can provide exploitation Environment and test environment, it is therefore not necessary to proceed by application program on the premise of changing data central hardware and software Establishment work, by development goal application program in cloud environment, and for destination application distribution run container so that User can get destination application and run the log during container runs, owing to this log is recorded The running of application program, therefore, determines whether there is leak according to log to destination application, relative to existing There is technology more comprehensive.
Accompanying drawing explanation
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 embodiment or existing In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is the present invention Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to according to These accompanying drawings obtain other accompanying drawing.
Fig. 1 is a kind of method flow diagram that one embodiment of the invention provides;
Fig. 2 is the another kind of method flow diagram that one embodiment of the invention provides;
Fig. 3 is a kind of event tracking schematic diagram that one embodiment of the invention provides;
Fig. 4 is a kind of daily record monitoring schematic diagram that one embodiment of the invention provides;
Fig. 5 is the hardware structure figure of a kind of device place equipment that one embodiment of the invention provides;
Fig. 6 is a kind of apparatus structure schematic diagram that one embodiment of the invention provides.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is The a part of embodiment of the present invention rather than whole embodiments, based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained on the premise of not making creative work, broadly falls into the scope of protection of the invention.
As it is shown in figure 1, embodiments provide the adjustment method of a kind of application program, the method can include following Step:
Step 101: development goal application program in cloud environment, and be that the distribution of described destination application runs container.
Wherein, cloud environment refers to from dynamic virtualized resource pool to user or various application system is on-demand carries The Internet or big data environment for computing capability, storage capacity or virtual machine service etc..
The operation container of application program can manage the dependence between the life cycle of object, object and object, can To use the configuration file definition title of object, producing method, an object to must be set to as certain object after producing Attributes etc., after startup optimization container, all of object can directly be taken, and need not write any a line program code Produce object, or set up the dependence between object and object.
Wherein, for the number running container of application assigned, can take in running according to application program Running space determine.
Step 102: run described destination application in described operation container.
Step 103: obtain the log of described destination application, and should to described target according to described log The leak existed by program is debugged.
According to such scheme, owing to cloud environment can provide development environment and test environment, it is therefore not necessary to data center Hardware and software proceed by the establishment work of application program on the premise of changing, should by development goal in cloud environment By program, and run container for destination application distribution, hold running so that user can get destination application Log during device operation, owing to this log describes the running of application program, therefore, according to operation Record determines whether there is leak to destination application, more comprehensive relative to prior art.
In the present embodiment, for obtaining the log of described destination application, and according to described log pair The leak that described destination application exists is debugged, and at least can realize in following three kinds of modes:
1, event tracking.
In an embodiment of the invention, application program is carrying out at least one situation following: version is issued, version updating When running with version, all can register this event, in order to know application program event in running, permissible Farther include: when application program carries out event registration, record at least one in following event information: event title, thing Part time of origin, event generation state and event source code;The event information of record is placed in websocket.So, may be used To facilitate user to search the problem that destination application occurs in running.
The log of the described destination application of described acquisition, and according to described log to described intended application journey The leak that sequence exists is debugged, including: from websocket, extract the object event letter that described destination application is corresponding Breath;According to the event generation state that each event is corresponding in described object event information, determine that event generation state is corresponding The object event of leak;Obtain the event source code that described object event is corresponding, the event source generation corresponding to described object event Code is debugged.
Wherein, from websocket, extract the object event information that described destination application is corresponding, can by user eventually End realizes, and user terminal can be according to the event information of self-demand each application program of extract real-time.
2, daily record monitoring.
In an embodiment of the invention, the acquisition of log can be realized by the way of daily record monitors.Permissible Farther include: to application program configuration log catalogue watch-dog, in application program running, generate daily record literary composition Part;
The log of the described destination application of described acquisition, and according to described log to described intended application journey The leak that sequence exists is debugged, including: when receiving the log request for described destination application, pass through Target journaling file corresponding for described destination application is fed back by rabitmq, so that user is according to described target journaling File determines whether there is leak, and debugs source code according to the leak existed.
Wherein, when feeding back to user terminal by rabitmq, user terminal gets for mesh by logging in cloud environment Mark application program multiple journal files, each journal file may include that file name, file size, the renewal time with And for the function provided.
Wherein, it is provided that at least can include following several function to the function of user: download log file, preview daily record literary composition Part, Clear Log content and deletion journal file.
3, online shell terminal.
Prior art needs to check the container daily record run in container, needs to utilize ftp instrument, by using server pair The IP address answered and password, just can be with login service device.In an embodiment of the invention, described acquisition described intended application journey The log of sequence, and the leak that there is described destination application according to described log debugs, and may include that
The cloud environment that described destination application runs is signed in by online shell terminal;
The container daily record of described destination application correspondence object run container is checked in cloud environment;
Determine whether that process breaks down according to container daily record, if, it is determined that there is leak in described destination application, and Determine the source code of correspondence according to the process broken down, this source code determined is debugged.
This online shell terminal, can install scan tool, it is not required that IP address, can be directly by browsing The mode of device clicks on button to realize automated log on, such that it is able to improve the efficiency to application program debugging.
In an embodiment of the invention, run container for realizing the operation of application program, for application assigned When running container, the number running container can determine according to the running space of application program.Wherein it is possible to wrap further Include: installation space threshold value;
Farther include: when described destination application reaches described capacity-threshold at the running space run in container Time, distribute new operation container for described destination application, so that described destination application is in the multiple fortune distributed for it Row container runs.
Such as, the capacity-threshold of setting is run container 80%.At initial dispensing phase, distribute for destination application 1 operation container, in this operation container operational objective application program, in destination application running, it runs When space reaches run container 80%, distribute 1 new operation container for this destination application, with by this intended application journey Sequence is run in two the operation containers distributed for it.
Above-mentioned three kinds obtain logs debugging source codes mode, can by mode based on one way in which, Perfect as to basal profile of other two mode, to ensure to obtain application program more comprehensively leak, improves application The development efficiency of program.
Mode based on event tracking mode below, using daily record monitor mode and online shell terminal mode as As a example by event tracking mode is improved, the adjustment method of a kind of application program that the embodiment of the present invention provides is carried out specifically Bright, refer to Fig. 2, the method may comprise steps of:
Step 201: develop multiple application program in cloud environment, and run container for each application assigned.
Cloud environment refers to provide meter to user or various application system are on-demand from dynamic virtualized resource pool The Internet of calculation ability, storage capacity or virtual machine service etc. or big data environment.Wherein, cloud environment can provide exploitation Environment and test environment, may be employed exploitation and the debugging of program in cloud environment.
The operation container of application program can manage the dependence between the life cycle of object, object and object, can To use the configuration file definition title of object, producing method, an object to must be set to as certain object after producing Attributes etc., after startup optimization container, all of object can directly be taken, and need not write any a line program code Produce object, or set up the dependence between object and object.
Wherein, for the number running container of application assigned, can take in running according to application program Running space determine.When original allocation, this operation container of each application assigned 1 can be defaulted as.
Step 202: determine the destination application of required debugging, in the operation container that will distribute for this destination application Run this destination application.
In the present embodiment, can develop with destination application in cloud environment, often develop a version, permissible The destination application of this version is published to the Debugging interface of cloud environment, at Debugging interface, destination application is debugged After success, show that the version that this destination application is corresponding has been developed.
Application code storage repository can also be included in cloud environment, going out respectively for each application development After individual version comes, can upload to source code corresponding for each version this application code storage repository is deposited Storage.User, to certain version of application program whenever necessary, can find this from this application code storage repository Version is downloaded.
Step 203: when application program carries out event registration, records at least one in following event information: event name Title, Time To Event, event generation state and event source code;The event information of record is placed in websocket.
Step 204: extract the object event information that described destination application is corresponding from websocket;At described mesh According to the event generation state that each event is corresponding in mark event information, determine the target thing of event generation state correspondence leak Part;Obtain the event source code that described object event is corresponding, the event source code that described object event is corresponding is debugged.
In cloud environment, the installation of applied environment, configure, update and application version issue, version updating, version Run, all can register this event, in order to record occurrence.
The leak occurred during user searches application program for convenience, has often monitored event and has succeeded in registration, to this event Information carries out record.
Refer to Fig. 3, from websocket, extract, for user, the object event information that described destination application is corresponding, In figure 3, this object event information includes: Time To Event, event title and event generation state.Such as, event title For " kouzi-tomcat-gfaVaidd services replacement ", Time To Event is " 2016-05-23 16:55:34 ", and event is sent out Raw state is " starting successfully ".
Object event information can be included the event that event generation state is " unsuccessfully " by user, is defined as including leak Event, user can be according to event source code corresponding to this this event of object event acquisition of information, to enter event source code Row debugging.
Step 205: to application program configuration log catalogue watch-dog, in application program running, generates day Will file.
In order to improve the discovery of the leak to destination application further, event tracking can utilized event source generation On the basis of code is debugged, determine whether also to include other leaks in the mode monitored further with daily record.
Step 206: when receiving the log request for described destination application, by rabitmq by described mesh The target journaling file that mark application program is corresponding feeds back, so that user determines whether there is according to described target journaling file Leak, and according to the leak existed, source code is debugged.
Wherein, rabitmq is a kind of application program communication means to application program.Application program goes out to join the team by read-write The message (for the data of application program) of row communicates, and links them without special connection.Message transmission refers to journey Communicate rather than communicate each other by directly invoking by sending data in the message between sequence, directly invoking generally It it is the technology for such as remote procedure call.Queuing is referred to application program and is communicated by queue.The use of queue removes Receive and send the requirement that application program performs simultaneously.
Daily record monitor mode be each event occurred for application program as a node, run at application program During, each behavior of this node can produce a journal file, and multiple journal files that this node is corresponding can be deposited Storage is in the path that corresponding catalogue daily record is corresponding.
Wherein, when feeding back to user terminal by rabitmq, user terminal gets for mesh by logging in cloud environment Mark application program multiple journal files, each journal file may include that file name, file size, the renewal time with And for the function provided.Refer to Fig. 4, for server feedback to the journal file of user terminal.
Wherein, it is provided that at least can include following several function to the function of user: download log file, preview daily record literary composition Part, Clear Log content and deletion journal file.
User can check whether include other leaks in journal file by download log file to local;Also may be used To directly utilize the function of preview journal file online preview journal file, such that it is able to save local spatial.
Step 207: sign in the cloud environment that described destination application runs by online shell terminal;At cloud environment In check the container daily record of described destination application correspondence object run container;Determine whether that process is delayed according to container daily record Fall, if, it is determined that there is leak in described destination application, and determines corresponding source code according to the process broken down, to really This fixed source code is debugged.
In order to improve the discovery of the leak to destination application further, event tracking can utilized event source generation Code debug, and utilize daily record monitoring source code is debugged on the basis of, further with online shell terminal Mode determine whether also to include other leaks.
This online shell terminal, can install scan tool, it is not required that IP address, can be directly by browsing The mode of device clicks on button to trigger shell-command, realizes automated log on, such that it is able to improve the effect to application program debugging Rate.
Step 208: the destination application after debugging is re-started issue, and performs step 202, until finding this mesh When mark application program does not includes leak, exploitation completes.
As shown in Figure 5, Figure 6, the debugging apparatus of a kind of application program is embodiments provided.Device embodiment is permissible Realized by software, it is also possible to realize by the way of hardware or software and hardware combining.For hardware view, as it is shown in figure 5, For a kind of hardware structure diagram of debugging apparatus place equipment of the application program that the embodiment of the present invention provides, shown in Fig. 5 Outside processor, internal memory, network interface and nonvolatile memory, in embodiment, the equipment at device place is the most all right Including other hardware, such as the forwarding chip etc. of responsible process message.As a example by implemented in software, as shown in Figure 6, patrol as one Collect the device in meaning, be that computer program instructions corresponding in nonvolatile memory is read by the CPU by its place equipment Get and internal memory runs formation.The debugging apparatus of the application program that the present embodiment provides, including:
Development block 601, for development goal application program in cloud environment;
Allocation unit 602, for running container for the distribution of described destination application;
Running unit 603, for running described destination application in described operation container;
Debugging unit 604, for obtaining the log of described destination application, according to described log to described The leak that destination application exists is debugged.
In an embodiment of the invention, the debugging apparatus of this application program may further include: event recording unit, For when application program carries out event registration, record at least one in following event information: when event title, event occur Between, event generation state and event source code;The event information of record is placed in websocket;Wherein, application program exists When proceeding as follows perform event registration: version issue, version updating and version operating at least one;
Described debugging unit, the object event corresponding specifically for extracting described destination application from websocket Information;According to the event generation state that each event is corresponding in described object event information, determine event generation state pair Answer the object event of leak;Obtain the event source code that described object event is corresponding, the event source corresponding to described object event Code is debugged.
In an embodiment of the invention, the debugging apparatus of this application program may further include: Log Directory monitors Device, in application program running, generates journal file;
Described debugging unit, specifically for when receiving the log request for described destination application, passing through Target journaling file corresponding for described destination application is fed back by rabitmq, so that user is according to described target journaling File determines whether there is leak, and debugs source code according to the leak existed.
In an embodiment of the invention, described debugging unit, described specifically for being signed in by online shell terminal The cloud environment that destination application runs;The container of described destination application correspondence object run container is checked in cloud environment Daily record;Determine whether that process breaks down according to container daily record, if, it is determined that there is leak, and root in described destination application Determine the source code of correspondence according to the process broken down, this source code determined is debugged.
In an embodiment of the invention, the debugging apparatus of this application program may further include: memory element, is used for Installation space threshold value;
Described allocation unit, is further used for when described destination application reaches institute at the running space run in container When stating capacity-threshold, for the described destination application new operation container of distribution, so that described destination application is for its point The multiple operation containers joined run.
In sum, each embodiment of the present invention at least can realize following beneficial effect:
1, in embodiments of the present invention, owing to cloud environment can provide development environment and test environment, it is therefore not necessary to logarithm The establishment work of application program is proceeded by according to central hardware and software, by developing in cloud environment on the premise of changing Destination application, and run container, so that user can get destination application and exist for destination application distribution Run the log during container runs, owing to this log describes the running of application program, therefore, root According to log, destination application is determined whether there is leak, more comprehensive relative to prior art.
2, in embodiments of the present invention, by using at least one debud mode to realize the debugging to application program, from And application program after can ensure that debugging is safer, and the development efficiency of application program can be improved.
The contents such as the information between each unit in said apparatus is mutual, execution process, owing to implementing with the inventive method Example is based on same design, and particular content can be found in the narration in the inventive method embodiment, and here is omitted.
It should be noted that in this article, the relational terms of such as first and second etc is used merely to an entity Or operation separates with another entity or operating space, and not necessarily require or imply existence between these entities or operation The relation of any this reality or order.And, term " includes ", " comprising " or its any other variant are intended to non- Comprising of exclusiveness, so that include that the process of a series of key element, method, article or equipment not only include those key elements, But also include other key elements being not expressly set out, or also include being consolidated by this process, method, article or equipment Some key elements.In the case of there is no more restriction, statement the key element " including " and limiting, do not arrange Except there is also other same factor in including the process of described key element, method, article or equipment.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can be passed through The hardware that programmed instruction is relevant completes, and aforesaid program can be stored in the storage medium of embodied on computer readable, this program Upon execution, perform to include the step of said method embodiment;And aforesaid storage medium includes: ROM, RAM, magnetic disc or light In the various medium that can store program code such as dish.
Last it should be understood that the foregoing is only presently preferred embodiments of the present invention, it is merely to illustrate the skill of the present invention Art scheme, is not intended to limit protection scope of the present invention.All made within the spirit and principles in the present invention any amendment, Equivalent, improvement etc., be all contained in protection scope of the present invention.

Claims (10)

1. the adjustment method of an application program, it is characterised in that including:
Development goal application program in cloud environment, and be that the distribution of described destination application runs container;
Described destination application is run in described operation container;
Obtain the log of described destination application, and according to described log, described destination application is existed Leak is debugged.
Method the most according to claim 1, it is characterised in that
Farther include: when application program carries out event registration, record at least one in following event information: event name Title, Time To Event, event generation state and event source code;The event information of record is placed in websocket;Its In, application program performs event registration when proceeding as follows: version is issued, version updating and version operating at least Kind;
The log of the described destination application of described acquisition, and according to described log, described destination application is deposited Leak debug, including: from websocket, extract the object event information that described destination application is corresponding;? According to the event generation state that each event is corresponding in described object event information, determine event generation state correspondence leak Object event;Obtain the event source code that described object event is corresponding, the event source code that described object event is corresponding is carried out Debugging.
Method the most according to claim 1, it is characterised in that
Farther include: to application program configuration log catalogue watch-dog, in application program running, generate daily record File;
The log of the described destination application of described acquisition, and according to described log, described destination application is deposited Leak debug, including: when receiving the log request for described destination application, by rabitmq will The target journaling file that described destination application is corresponding feeds back, so that user determines according to described target journaling file is The no leak that exists, and according to the leak existed, source code is debugged.
Method the most according to claim 1, it is characterised in that the log of the described destination application of described acquisition, And the leak that there is described destination application according to described log debugs, including:
The cloud environment that described destination application runs is signed in by online shell terminal;
The container daily record of described destination application correspondence object run container is checked in cloud environment;
Determine whether that process breaks down according to container daily record, if, it is determined that there is leak in described destination application, and according to The process broken down determines the source code of correspondence, debugs this source code determined.
5. according to described method arbitrary in claim 1-4, it is characterised in that
Farther include: installation space threshold value;
Farther include: when described destination application running space in running container reaches described capacity-threshold, for The operation container that the distribution of described destination application is new, so that described destination application is at the multiple operation containers distributed for it Middle operation.
6. the debugging apparatus of an application program, it is characterised in that including:
Development block, for development goal application program in cloud environment;
Allocation unit, for running container for the distribution of described destination application;
Running unit, for running described destination application in described operation container;
Debugging unit, for obtaining the log of described destination application, should to described target according to described log The leak existed by program is debugged.
The debugging apparatus of application program the most according to claim 6, it is characterised in that
Farther include: event recording unit, for when application program carries out event registration, record in following event information At least one: event title, Time To Event, event generation state and event source code;The event information of record is placed In websocket;Wherein, application program performs event registration when proceeding as follows: version is issued, version updating and version This most operating at least one;
Described debugging unit, the object event information corresponding specifically for extracting described destination application from websocket; According to the event generation state that each event is corresponding in described object event information, determine event generation state correspondence leak Object event;Obtain the event source code that described object event is corresponding, the event source code that described object event is corresponding is entered Row debugging.
The debugging apparatus of application program the most according to claim 6, it is characterised in that
Farther include: Log Directory watch-dog, in application program running, generate journal file;
Described debugging unit, specifically for when receiving the log request for described destination application, passing through rabitmq Target journaling file corresponding for described destination application is fed back, so that user determines according to described target journaling file Whether there is leak, and according to the leak existed, source code is debugged.
The debugging apparatus of application program the most according to claim 6, it is characterised in that described debugging unit, specifically for The cloud environment that described destination application runs is signed in by online shell terminal;In cloud environment, check that described target should Container daily record with program correspondence object run container;Determine whether that process breaks down according to container daily record, if, it is determined that institute State destination application and there is leak, and determine corresponding source code according to the process broken down, this source code determined is carried out Debugging.
10. according to the debugging apparatus of described application program arbitrary in claim 6-9, it is characterised in that
Farther include: memory element, for installation space threshold value;
Described allocation unit, is further used for when described destination application reaches described sky at the running space run in container Between threshold value time, for the described destination application new operation container of distribution, so that described destination application is distributing for it Multiple operation containers run.
CN201610451160.7A 2016-06-21 2016-06-21 The adjustment method of a kind of application program and device Pending CN106126419A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610451160.7A CN106126419A (en) 2016-06-21 2016-06-21 The adjustment method of a kind of application program and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610451160.7A CN106126419A (en) 2016-06-21 2016-06-21 The adjustment method of a kind of application program and device

Publications (1)

Publication Number Publication Date
CN106126419A true CN106126419A (en) 2016-11-16

Family

ID=57471212

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610451160.7A Pending CN106126419A (en) 2016-06-21 2016-06-21 The adjustment method of a kind of application program and device

Country Status (1)

Country Link
CN (1) CN106126419A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789303A (en) * 2016-12-29 2017-05-31 北京奇艺世纪科技有限公司 A kind of container log collection method and device
CN107169016A (en) * 2017-03-31 2017-09-15 北京奇艺世纪科技有限公司 A kind of application log acquisition method and device
CN107426023A (en) * 2017-07-21 2017-12-01 携程旅游信息技术(上海)有限公司 Cloud platform log collection and retransmission method, system, equipment and storage medium
CN110806976A (en) * 2019-10-24 2020-02-18 青岛英泰软件技术有限公司 Method for remotely pushing shell and CMD (command-to-command) commands
CN112148420A (en) * 2019-06-28 2020-12-29 杭州海康威视数字技术股份有限公司 Abnormal task processing method based on container technology, server and cloud platform

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103049385A (en) * 2012-12-29 2013-04-17 百度在线网络技术(北京)有限公司 PHP (professional hypertext preprocessor) code debugging method and PHP code debugging system in cloud environment
US20140366004A1 (en) * 2013-01-31 2014-12-11 International Business Machines Corporation Remote Debugging in a Cloud Computing Environment
CN104281520A (en) * 2013-07-10 2015-01-14 腾讯科技(深圳)有限公司 Tracking and debugging method, device and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103049385A (en) * 2012-12-29 2013-04-17 百度在线网络技术(北京)有限公司 PHP (professional hypertext preprocessor) code debugging method and PHP code debugging system in cloud environment
US20140366004A1 (en) * 2013-01-31 2014-12-11 International Business Machines Corporation Remote Debugging in a Cloud Computing Environment
CN104281520A (en) * 2013-07-10 2015-01-14 腾讯科技(深圳)有限公司 Tracking and debugging method, device and system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789303A (en) * 2016-12-29 2017-05-31 北京奇艺世纪科技有限公司 A kind of container log collection method and device
CN106789303B (en) * 2016-12-29 2020-04-03 北京奇艺世纪科技有限公司 Container log collection method and device
CN107169016A (en) * 2017-03-31 2017-09-15 北京奇艺世纪科技有限公司 A kind of application log acquisition method and device
CN107169016B (en) * 2017-03-31 2020-01-10 北京奇艺世纪科技有限公司 Application program log acquisition method and device
CN107426023A (en) * 2017-07-21 2017-12-01 携程旅游信息技术(上海)有限公司 Cloud platform log collection and retransmission method, system, equipment and storage medium
CN107426023B (en) * 2017-07-21 2020-05-29 携程旅游信息技术(上海)有限公司 Cloud platform log collection and forwarding method, system, equipment and storage medium
CN112148420A (en) * 2019-06-28 2020-12-29 杭州海康威视数字技术股份有限公司 Abnormal task processing method based on container technology, server and cloud platform
CN112148420B (en) * 2019-06-28 2024-04-02 杭州海康威视数字技术股份有限公司 Abnormal task processing method based on container technology, server and cloud platform
CN110806976A (en) * 2019-10-24 2020-02-18 青岛英泰软件技术有限公司 Method for remotely pushing shell and CMD (command-to-command) commands

Similar Documents

Publication Publication Date Title
US9940373B2 (en) Method and system for implementing an operating system hook in a log analytics system
US9697066B2 (en) Method for processing data quality exceptions in a data processing system
WO2020147419A1 (en) Monitoring method and apparatus, computer device and storage medium
US8762931B2 (en) Generating an encoded package profile
CN108521339B (en) Feedback type node fault processing method and system based on cluster log
US8635617B2 (en) Tracking requests that flow between subsystems using transaction identifiers for generating log data
US20110296397A1 (en) Systems and methods for generating cached representations of host package inventories in remote package repositories
US20220138069A1 (en) Agent profiler to monitor activities and performance of software agents
CN106126419A (en) The adjustment method of a kind of application program and device
US10452463B2 (en) Predictive analytics on database wait events
US11609913B1 (en) Reassigning data groups from backup to searching for a processing node
CN106339273A (en) Application program restoration method, terminal and server
CN111475376A (en) Method and device for processing test data, computer equipment and storage medium
CN112737800A (en) Service node fault positioning method, call chain generation method and server
US20100333066A1 (en) Method and system for managing software issues
US10083070B2 (en) Log file reduction according to problem-space network topology
CN116974874A (en) Database testing method and device, electronic equipment and readable storage medium
CN112182089B (en) Report generation method, device and equipment based on data warehouse model
CN108228432A (en) A kind of distributed link tracking, analysis method and server, global scheduler
US7711812B2 (en) Definition system and method for web services that monitor other web services
CN111130882A (en) Monitoring system and method of network equipment
KR20170122874A (en) Apparatus for managing log of application based on data distribution service
CN106557530A (en) Operation system, data recovery method and device
CN116700779A (en) Code dynamic adjustment method, device, equipment, medium and program product
CN111651330B (en) Data acquisition method, data acquisition device, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20161116