Process cleaning method and device

A process and processor technology, applied in the computer field, can solve problems such as the inability to provide PHP script information and the inability to meet PHP script analysis requirements, and achieve the effect of improving work efficiency

Active Publication Date: 2022-01-25
BEIJING QIHOO TECH CO LTD
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] PHP (Hypertext Preprocessor, Hypertext Preprocessor) script is a process executed by a PHP interpreter, but the existing strace and pstack can only provide the system call information of the PHP interpreter, but cannot provide the information of the PHP script. Therefore, Unable to meet the analysis needs of PHP scripts

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
  • Process cleaning method and device
  • Process cleaning method and device
  • Process cleaning method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0047] see figure 1 According to an embodiment of the present invention, a process cleaning method is provided, which may specifically include the following steps:

[0048] S101. Create a PHP tracking program in the PHP interpreter; and

[0049] S102. Use the PHP tracking program to track the function information during the execution of the operation compiled by the PHP interpreter for the process;

[0050] S103. According to the...

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 embodiment of the present invention provides a method and device for process cleaning, creating a PHP tracking program in the PHP interpreter; using the PHP tracking program to track the function information in the execution process of the operation compiled by the PHP interpreter for the process ; According to the function information, detect whether the usage rate of the processor corresponding to the PHP interpreter is greater than a preset threshold; when it is detected that the processor usage rate is greater than the preset threshold, from the running process Select non-essential processes in and clear the non-essential processes. The embodiment of the present invention can acquire and output function information in the execution process of an operation in real time, so that developers of PHP scripts can quickly locate PHP script problems.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a process cleaning method and device. Background technique [0002] There are usually multiple processes running in operating systems such as Linux and Unix. At present, when the process has problems such as long running time and running errors, it is necessary to analyze the cause of the problem by monitoring the process. [0003] Existing solutions can combine strace and pstack tools to directly find function calls that affect the running time of a process, and then perform code analysis and optimization on related functions in a targeted manner. Among them, the strace tool can track the underlying system calls used by the process, and can output the time point when the system call is executed and the time-consuming of each call; the pstack tool can output the function call stack for the process of the specified PID (Process ID, Process Identity). [0004] PHP (Hypertext Pr...

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 Patents(China)
IPC IPC(8): G06F9/44G06F8/41G06F11/30
CPCG06F9/442
Inventor 任勇全赵安安陈磊
Owner BEIJING QIHOO 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