Exception handling method and device

An exception handling and exception technology, applied in the computer field, can solve problems such as insufficient memory in the java layer, failure to correctly generate and upload log files, occupying the running memory of the java layer, etc., and achieve the effect of improving the efficiency of exception handling

Active Publication Date: 2020-07-14
BEIJING BYTEDANCE NETWORK TECH CO LTD
View PDF11 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, due to the need to perform a large number of operations in the process of generating the log file according to the call stack information of the exception object, in this process, the running memory of the java layer will be occupied, which may cause the java layer to fail before generating the log file. Insufficient memory issue, which in turn caused the application to crash again, unable to properly generate and upload log files

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Exception handling method and device
  • Exception handling method and device
  • Exception handling method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0068] In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only It is a part of the embodiments of the present disclosure, but not all of them. The components of the disclosed embodiments generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations. Accordingly, the following detailed description of the embodiments of the present disclosure provided in the accompanying drawings is not intended to limit the scope of the claimed disclosure, but merely represents selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those ski...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides an exception handling method and device. The exception handling method comprises the steps of capturing an exception object; when it is detected that the type of the abnormal object is a memory overflow abnormal object, transmitting the abnormal object to a local native layer; in the local native layer, obtaining calling information corresponding to the abnormal object, writing the calling information into a log file, wherein the calling information is used for representing the calling relation between a method for throwing out the abnormal object and other methods; andtransmitting the generated log file to a server.

Description

technical field [0001] The present disclosure relates to the field of computer technology, and in particular, to an exception handling method and device. Background technique [0002] The java program runs on the java layer. When an exception occurs during the running process, an exception will be thrown. Some exceptions can be caught and handled by business code, and some exceptions cannot be handled by business code, so it may cause the application to crash and restart. [0003] In related technologies, for exceptions that cannot be captured and processed by business code, before the application is closed, the exception object will be captured by the system code, and then a log file will be generated according to the call stack information of the exception object, and uploaded when the application starts again To the server, developers can debug the application by obtaining the log files in the server. [0004] However, due to the need to perform a large number of operati...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/07
CPCG06F11/0718G06F11/0775G06F11/0793Y02D10/00
Inventor 朴英敏
Owner BEIJING BYTEDANCE NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products