CN106713453B - Application information monitoring method and device - Google Patents

Application information monitoring method and device Download PDF

Info

Publication number
CN106713453B
CN106713453B CN201611198387.1A CN201611198387A CN106713453B CN 106713453 B CN106713453 B CN 106713453B CN 201611198387 A CN201611198387 A CN 201611198387A CN 106713453 B CN106713453 B CN 106713453B
Authority
CN
China
Prior art keywords
monitoring
subprocess
main process
port
command
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.)
Active
Application number
CN201611198387.1A
Other languages
Chinese (zh)
Other versions
CN106713453A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201611198387.1A priority Critical patent/CN106713453B/en
Publication of CN106713453A publication Critical patent/CN106713453A/en
Application granted granted Critical
Publication of CN106713453B publication Critical patent/CN106713453B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/2876Pairs of inter-processing entities at each side of the network, e.g. split proxies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention discloses an application information monitoring method, which comprises the following steps: the main process creates a monitoring sub-process and starts the monitoring sub-process, and the monitoring sub-process creates a server port according to a predefined path name; the main process establishes a client port according to the predefined path name and establishes cross-process port connection between the client port and the server port; and the main process sends command characters to the monitoring subprocess through the cross-process port connection, and the monitoring subprocess monitors background application information according to the command characters. The embodiment of the invention also discloses an application information monitoring device. By adopting the embodiment of the invention, the accuracy of the obtained monitoring application information can be ensured.

Description

Application information monitoring method and device
Technical Field
The invention relates to the technical field of electronics, in particular to an application information monitoring method and device.
background
The user terminal can dynamically control the background to unload the monitoring process behavior and upload the monitored application information to the server, and the server can provide services for the user terminal according to the application information uploaded by each user terminal. In the prior art, as shown in fig. 1, firstly, a command for starting a monitoring sub-process is initiated in a Java layer of a main process in a JNI manner, all APP information is collected, and the APP information is transmitted to a C layer; secondly, the main process establishes a monitoring sub-process in a C layer in a fork mode, and thirdly, the monitoring sub-process executes unloading monitoring by adopting an inotify mechanism of a Linux system; and fourthly, reporting the uninstalling action and the APP information to the server when detecting that the APP is uninstalled. However, after the main process creates the monitoring sub-process, the main process loses the control of the monitoring sub-process, so the monitoring sub-process becomes an independent part, and if the user terminal upgrades or switches the account of the APP version, the main process cannot notify the monitoring sub-process of the changed information, which causes the data reporting error of the uninstalled information, and is not beneficial to analyzing and positioning the user uninstalled behavior.
disclosure of Invention
The embodiment of the invention provides an application information monitoring method and device. The technical problem of accurate acquisition of monitoring information in the prior art can be solved.
In a first aspect, the present invention provides an application information monitoring method, including:
The main process creates a monitoring sub-process and starts the monitoring sub-process, and the monitoring sub-process creates a server port according to a predefined path name;
The main process establishes a client port according to the predefined path name and establishes cross-process port connection between the client port and the server port;
And the main process sends command characters to the monitoring subprocess through the cross-process port connection, and the monitoring subprocess monitors background application information according to the command characters.
The method includes that the main process sends a command character to the monitoring subprocess through the cross-process port connection, and after the monitoring subprocess monitors background application information according to the command character, the method further includes:
And the monitoring subprocess sends the monitored background application information to an application server.
Wherein the command character includes at least one of start monitoring, stop monitoring, detect monitoring status and update information.
after the monitoring subprocess monitors the background application information according to the command characters, the method further comprises the following steps:
And the monitoring subprocess returns execution result information to the main process, and the execution result information is used for the main process to determine whether the command character is executed successfully.
wherein the establishing of the cross-process port connection between the client port and the server port comprises:
the main process sends a connection request carrying the predefined path name to the monitoring subprocess;
and the monitoring subprocess establishes the cross-process port connection with the server port when determining that the received predefined path name is the same as the predefined path name of the monitoring subprocess.
Accordingly, a second aspect of the present invention provides an application information monitoring apparatus, the apparatus including a main process and a monitoring sub-process, the apparatus including:
The process creation module is used for creating a monitoring subprocess by the main process and starting the monitoring subprocess, wherein the monitoring subprocess creates a server port according to a predefined path name;
The connection establishing module is used for establishing a client port by the main process according to the predefined path name and establishing cross-process port connection between the client port and the server port;
and the information monitoring module is used for sending command characters to the monitoring subprocess by the main process through the cross-process port connection, and the monitoring subprocess monitors background application information according to the command characters.
Wherein the apparatus further comprises:
and the information sending module is used for sending the background application information obtained by monitoring to an application server by the monitoring subprocess.
Wherein the command character includes at least one of start monitoring, stop monitoring, detect monitoring status and update information.
The information monitoring module is further configured to return, by the monitoring subprocess, execution result information to the host process, where the execution result information is used by the host process to determine whether the command character is successfully executed.
wherein the connection establishing module is specifically configured to:
The main process sends a connection request carrying the predefined path name to the monitoring subprocess;
and the monitoring subprocess establishes the cross-process port connection with the server port when determining that the received predefined path name is the same as the predefined path name of the monitoring subprocess.
Accordingly, a third aspect of the present invention provides an application information monitoring apparatus, comprising: the device comprises a memory, a communication bus and a processor, wherein the memory is used for storing program codes, and the processor is used for calling the program codes and executing the following operations:
The main process creates a monitoring sub-process and starts the monitoring sub-process, and the monitoring sub-process creates a server port according to a predefined path name;
The main process establishes a client port according to the predefined path name and establishes cross-process port connection between the client port and the server port;
And the main process sends command characters to the monitoring subprocess through the cross-process port connection, and the monitoring subprocess monitors background application information according to the command characters.
According to the embodiment of the invention, a main process creates a monitoring subprocess and starts the monitoring subprocess, and the monitoring subprocess creates a server port according to a predefined path name; the main process establishes a client port according to a predefined path name and establishes cross-process port connection between the client port and a server port; and the main process sends command characters to the monitoring subprocess through cross-process port connection, and the monitoring subprocess monitors background application information according to the command characters. And the main process is used for carrying out complete behavior control on the monitoring subprocess, so that the accuracy of the application information obtained by monitoring is improved and guaranteed.
drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
fig. 1 is a schematic flow chart of an application information monitoring method provided in the prior art;
Fig. 2 is a schematic flowchart of a first embodiment of an application information monitoring method according to the present invention;
Fig. 3 is a schematic view of an application information monitoring process according to an embodiment of the present invention;
Fig. 4 is a schematic flowchart of a second embodiment of an application information monitoring method according to the present invention;
fig. 5 is a schematic structural diagram of an application information monitoring apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an application information monitoring device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
referring to fig. 2, fig. 2 is a flowchart illustrating a method for monitoring application information according to a first embodiment of the present invention. As shown in the figure, the method in the embodiment of the present invention includes:
s201, the main process creates a monitoring sub-process and starts the monitoring sub-process, and the monitoring sub-process creates a server port according to a predefined path name;
in a specific implementation, as shown in fig. 3, the monitor subprocess may be used as a server, the host process may execute to the C code layer in a JNI (Java Native Interface, Java Native call) manner, then create the monitor subprocess, create a server port on the C code layer according to a predefined path address after the monitor subprocess is started, and wait for the client port created by the host process to send a connection request, where the predefined path address may be a keyword, a special character, or the like.
S202, the main process creates a client port according to the predefined path name and establishes cross-process port connection between the client port and the server port;
in a specific implementation, as shown in fig. 3, the main process may be used as a client, the main process creates a client interface in a java code layer according to a predefined path address, and establishes a cross-process port connection with a server port created by the monitoring subprocess, so that the main process can send a command character to the monitoring subprocess through the cross-process port connection.
Further, the main process may send a connection request carrying the predefined path name to the monitoring sub-process; and after receiving the connection request sent by the main process, the monitoring subprocess determines whether the received path name is the same as the path name of the monitoring subprocess, and establishes the cross-process port connection with the service port when determining that the received predefined path name is the same as the predefined path name of the monitoring subprocess.
it should be noted that, when the cross-process port connection between the main process and the monitoring sub-process is established, in addition to using Socket, the cross-process interface connection may be established through Android broadcast, Android ContentProvider (content provider), and Android Binder mechanism.
S203, the main process sends command characters to the monitoring subprocess through the cross-process port connection, and the monitoring subprocess monitors background application information according to the command characters.
In a specific implementation, as shown in fig. 3, after the cross-process port connection is successfully created, the main process may control the behavior and action of the monitoring sub-process according to the command characters defined by the convention, the main process is responsible for packing and sending the command characters, and the monitoring sub-process is responsible for analyzing the command and executing the corresponding command. Wherein the command character includes at least one of start monitoring, stop monitoring, detect monitoring status and update information.
Optionally, the monitoring subprocess returns execution result information to the main process, where the execution result information is used for the main process to determine whether the command character is executed successfully.
For example, the main process may send a start monitoring command (e.g., watch) carrying application information to the monitoring sub-process, where the application information may include user information of the APP, an application package name, an application version number, address information of the statistical server, a web page address of a feedback web page, and the like, and if a return value returned to the main process by the monitoring sub-process is 0, it indicates that the sub-process successfully executes the start monitoring command, and otherwise, it indicates that the sub-process fails to execute the start monitoring command.
alternatively, the main process may send a stop monitoring command (e.g., stop _ watch) to the monitoring sub-process, and if the return value returned by the monitoring sub-process to the main process is 0, it indicates that the sub-process successfully executes the start stop command, otherwise, it indicates that the sub-process fails to execute the stop monitoring command.
Or, the main process may send a command (e.g., check) for detecting the monitoring state to the monitoring subprocess, and if the return value returned by the monitoring subprocess to the main process is greater than 0, it indicates that the monitoring state detected by the subprocess is opened, otherwise, it indicates that the execution of the command for detecting the monitoring state by the subprocess fails.
Or, the main process may send an update information command (e.g., update) to the monitoring subprocess, and carry application information, which is the same as the application information carried by the start monitoring command, if the return value returned by the monitoring subprocess to the main process is 0, it indicates that the subprocess successfully executes the update information command, otherwise, it indicates that the subprocess fails to execute the update information command.
it should be noted that the command characters defined in the embodiment of the present invention include not only the above four command characters, but also other command characters between the main process and the monitoring sub-process may be agreed in advance, and when monitoring the background application, the main process sends the command characters, and the monitoring sub-process parses and executes the command characters.
in the embodiment of the invention, a main process creates a monitoring subprocess and starts the monitoring subprocess, and the monitoring subprocess creates a server port according to a predefined path name; the main process establishes a client port according to a predefined path name and establishes cross-process port connection between the client port and a server port; and the main process sends command characters to the monitoring subprocess through cross-process port connection, and the monitoring subprocess monitors background application information according to the command characters. And the main process is used for carrying out complete behavior control on the monitoring subprocess, so that the accuracy of the application information obtained by monitoring is improved and guaranteed.
Referring to fig. 4, fig. 4 is a flowchart illustrating a method for monitoring application information according to a second embodiment of the present invention. As shown in the figure, the method in the embodiment of the present invention includes:
s401, the main process creates a monitoring sub-process and starts the monitoring sub-process, and the monitoring sub-process creates a server port according to a predefined path name;
In a specific implementation, as shown in fig. 3, the monitor subprocess may be used as a server, the host process may execute to the C code layer in a JNI (Java Native Interface, Java Native call) manner, then create the monitor subprocess, create a server port on the C code layer according to a predefined path address after the monitor subprocess is started, and wait for the client port created by the host process to send a connection request, where the predefined path address may be a keyword, a special character, or the like.
S402, the main process creates a client port according to the predefined path name and establishes cross-process port connection between the client port and the server port;
In a specific implementation, as shown in fig. 3, the main process may be used as a client, the main process creates a client interface in a java code layer according to a predefined path address, and establishes a cross-process port connection with a server port created by the monitoring subprocess, so that the main process can send a command character to the monitoring subprocess through the cross-process port connection.
Further, the main process may send a connection request carrying the predefined path name to the monitoring sub-process; and after receiving the connection request sent by the main process, the monitoring subprocess determines whether the received path name is the same as the path name of the monitoring subprocess, and establishes the cross-process port connection with the service port when determining that the received predefined path name is the same as the predefined path name of the monitoring subprocess.
it should be noted that, when the cross-process port connection between the main process and the monitoring sub-process is established, in addition to using Socket, the cross-process interface connection may be established through Android broadcast, Android ContentProvider (content provider), and Android Binder mechanism.
And S403, the main process sends command characters to the monitoring subprocess through the cross-process port connection, and the monitoring subprocess monitors background application information according to the command characters.
in a specific implementation, as shown in fig. 3, after the cross-process port connection is successfully created, the main process may control the behavior and action of the monitoring sub-process according to the command characters defined by the convention, the main process is responsible for packing and sending the command characters, and the monitoring sub-process is responsible for analyzing the command and executing the corresponding command. Wherein the command character includes at least one of start monitoring, stop monitoring, detect monitoring status and update information.
Optionally, the monitoring subprocess returns execution result information to the main process, where the execution result information is used for the main process to determine whether the command character is executed successfully.
for example, the main process may send a start monitoring command (e.g., watch) carrying application information to the monitoring sub-process, where the application information may include user information of the APP, an application package name, an application version number, address information of the statistical server, a web page address of a feedback web page, and the like, and if a return value returned to the main process by the monitoring sub-process is 0, it indicates that the sub-process successfully executes the start monitoring command, and otherwise, it indicates that the sub-process fails to execute the start monitoring command.
Alternatively, the main process may send a stop monitoring command (e.g., stop _ watch) to the monitoring sub-process, and if the return value returned by the monitoring sub-process to the main process is 0, it indicates that the sub-process successfully executes the start stop command, otherwise, it indicates that the sub-process fails to execute the stop monitoring command.
or, the main process may send a command (e.g., check) for detecting the monitoring state to the monitoring subprocess, and if the return value returned by the monitoring subprocess to the main process is greater than 0, it indicates that the monitoring state detected by the subprocess is opened, otherwise, it indicates that the execution of the command for detecting the monitoring state by the subprocess fails.
Or, the main process may send an update information command (e.g., update) to the monitoring subprocess, and carry application information, which is the same as the application information carried by the start monitoring command, if the return value returned by the monitoring subprocess to the main process is 0, it indicates that the subprocess successfully executes the update information command, otherwise, it indicates that the subprocess fails to execute the update information command.
It should be noted that the command characters defined in the embodiment of the present invention include not only the above four command characters, but also other command characters between the main process and the monitoring sub-process may be agreed in advance, and when monitoring the background application, the main process sends the command characters, and the monitoring sub-process parses and executes the command characters.
s404, the monitoring subprocess sends the monitored background application information to an application server.
In a specific implementation, when the monitoring subprocess executes a monitoring starting command or an information updating command, the monitoring subprocess can report background application information sent to the monitoring subprocess by the main process to the application server, and the application server can provide services for the user terminals according to the background application information reported by each user terminal. The background application information may include user information of the APP, a name of an application package, an application version number, address information of the statistical server, a web page address of the feedback web page, and the like.
in the embodiment of the invention, a main process creates a monitoring subprocess and starts the monitoring subprocess, and the monitoring subprocess creates a server port according to a predefined path name; the main process establishes a client port according to a predefined path name and establishes cross-process port connection between the client port and a server port; and the main process sends command characters to the monitoring subprocess through cross-process port connection, and the monitoring subprocess monitors background application information according to the command characters. And the main process is used for carrying out complete behavior control on the monitoring subprocess, so that the accuracy of the application information obtained by monitoring is improved and guaranteed.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an application information monitoring apparatus according to an embodiment of the present invention. As shown in the figures, the apparatus in the embodiment of the present invention includes:
a process creating module 501, configured to create a monitoring subprocess for the main process and start the monitoring subprocess, where the monitoring subprocess creates a server port according to a predefined path name.
In a specific implementation, as shown in fig. 3, the monitor subprocess may be used as a server, the host process may execute to the C code layer in a JNI (Java Native Interface, Java Native call) manner, then create the monitor subprocess, create a server port on the C code layer according to a predefined path address after the monitor subprocess is started, and wait for the client port created by the host process to send a connection request, where the predefined path address may be a keyword, a special character, or the like.
a connection establishing module 502, configured to establish, by the host process, a client port according to the predefined path name, and establish a cross-process port connection between the client port and the server port.
in a specific implementation, as shown in fig. 3, the main process may be used as a client, the main process creates a client interface in a java code layer according to a predefined path address, and establishes a cross-process port connection with a server port created by the monitoring subprocess, so that the main process can send a command character to the monitoring subprocess through the cross-process port connection.
further, the main process may send a connection request carrying the predefined path name to the monitoring sub-process; and after receiving the connection request sent by the main process, the monitoring subprocess determines whether the received path name is the same as the path name of the monitoring subprocess, and establishes the cross-process port connection with the service port when determining that the received predefined path name is the same as the predefined path name of the monitoring subprocess.
an information monitoring module 503, configured to send, by the host process, a command character to the monitoring subprocess through the cross-process port connection, where the monitoring subprocess monitors background application information according to the command character.
In a specific implementation, as shown in fig. 3, after the cross-process port connection is successfully created, the main process may control the behavior and action of the monitoring sub-process according to the command characters defined by the convention, the main process is responsible for packing and sending the command characters, and the monitoring sub-process is responsible for analyzing the command and executing the corresponding command. Wherein the command character includes at least one of start monitoring, stop monitoring, detect monitoring status and update information.
Optionally, the monitoring subprocess returns execution result information to the main process, where the execution result information is used for the main process to determine whether the command character is executed successfully.
For example, the main process may send a start monitoring command (e.g., watch) carrying application information to the monitoring sub-process, where the application information may include user information of the APP, an application package name, an application version number, address information of the statistical server, a web page address of a feedback web page, and the like, and if a return value returned to the main process by the monitoring sub-process is 0, it indicates that the sub-process successfully executes the start monitoring command, and otherwise, it indicates that the sub-process fails to execute the start monitoring command.
Alternatively, the main process may send a stop monitoring command (e.g., stop _ watch) to the monitoring sub-process, and if the return value returned by the monitoring sub-process to the main process is 0, it indicates that the sub-process successfully executes the start stop command, otherwise, it indicates that the sub-process fails to execute the stop monitoring command.
Or, the main process may send a command (e.g., check) for detecting the monitoring state to the monitoring subprocess, and if the return value returned by the monitoring subprocess to the main process is greater than 0, it indicates that the monitoring state detected by the subprocess is opened, otherwise, it indicates that the execution of the command for detecting the monitoring state by the subprocess fails.
or, the main process may send an update information command (e.g., update) to the monitoring subprocess, and carry application information, which is the same as the application information carried by the start monitoring command, if the return value returned by the monitoring subprocess to the main process is 0, it indicates that the subprocess successfully executes the update information command, otherwise, it indicates that the subprocess fails to execute the update information command.
It should be noted that the command characters defined in the embodiment of the present invention include not only the above four command characters, but also other command characters between the main process and the monitoring sub-process may be agreed in advance, and when monitoring the background application, the main process sends the command characters, and the monitoring sub-process parses and executes the command characters.
optionally, as shown in fig. 5, the apparatus in the embodiment of the present invention may further include:
An information sending module 504, configured to send the monitored background application information to an application server by the monitoring sub-process.
in a specific implementation, when the monitoring subprocess executes a monitoring starting command or an information updating command, the monitoring subprocess can report background application information sent to the monitoring subprocess by the main process to the application server, and the application server can provide services for the user terminals according to the background application information reported by each user terminal. The background application information may include user information of the APP, a name of an application package, an application version number, address information of the statistical server, a web page address of the feedback web page, and the like.
in the embodiment of the invention, a main process creates a monitoring subprocess and starts the monitoring subprocess, and the monitoring subprocess creates a server port according to a predefined path name; the main process establishes a client port according to a predefined path name and establishes cross-process port connection between the client port and a server port; and the main process sends command characters to the monitoring subprocess through cross-process port connection, and the monitoring subprocess monitors background application information according to the command characters. And the main process is used for carrying out complete behavior control on the monitoring subprocess, so that the accuracy of the application information obtained by monitoring is improved and guaranteed.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an application information monitoring apparatus according to an embodiment of the present invention. As shown, the apparatus may include: at least one processor 601, e.g., a CPU, at least one communication interface 602, at least one memory 603, at least one bus 604. Bus 604 is used to enable, among other things, connectivity communications between these components. The communication interface 602 of the device in the embodiment of the present invention is a wired transmission port, and may also be a wireless device, for example, including an antenna apparatus, configured to perform signaling or data communication with other node devices. The memory 603 may be a high-speed RAM memory or a non-volatile memory (e.g., at least one disk memory). The memory 603 may optionally be at least one storage device located remotely from the processor 601. A set of program code is stored in the memory 603 and the processor 601 is used to call the program code stored in the memory for performing the following operations:
the main process creates a monitoring sub-process and starts the monitoring sub-process, and the monitoring sub-process creates a server port according to a predefined path name;
The main process establishes a client port according to the predefined path name and establishes cross-process port connection between the client port and the server port;
And the main process sends command characters to the monitoring subprocess through the cross-process port connection, and the monitoring subprocess monitors background application information according to the command characters.
Wherein, the processor 601 is further configured to perform the following operation steps:
And the monitoring subprocess sends the monitored background application information to an application server.
wherein the command character includes at least one of start monitoring, stop monitoring, detect monitoring status and update information.
Wherein, the processor 601 is further configured to perform the following operation steps:
And the monitoring subprocess returns execution result information to the main process, and the execution result information is used for the main process to determine whether the command character is executed successfully.
wherein, the processor 601 is further configured to perform the following operation steps:
The main process sends a connection request carrying the predefined path name to the monitoring subprocess;
And the monitoring subprocess establishes the cross-process port connection with the server port when determining that the received predefined path name is the same as the predefined path name of the monitoring subprocess.
It should be noted that, for simplicity of description, the above-mentioned embodiments of the method are described as a series of acts or combinations, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The content downloading method, the related device and the system provided by the embodiment of the present invention are described in detail above, and a specific example is applied in the text to explain the principle and the embodiment of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (8)

1. an application information monitoring method is applied to a user terminal, the user terminal comprises a main process and a monitoring sub-process, and the method comprises the following steps:
The main process creates a monitoring sub-process and starts the monitoring sub-process, and the monitoring sub-process creates a server port according to a predefined path name;
The main process establishes a client port according to the predefined path name and establishes cross-process port connection between the client port and the server port;
the main process sends command characters to the monitoring subprocess through the cross-process port connection, and the monitoring subprocess monitors background application information according to the command characters; the command character comprises at least one of starting monitoring, stopping monitoring, detecting a monitoring state and updating information;
And the monitoring subprocess returns execution result information to the main process, and the execution result information is used for the main process to determine whether the command character is executed successfully.
2. The method of claim 1, wherein the host process sends a command character to the monitor sub-process through the cross-process port connection, and after the monitor sub-process monitors background application information according to the command character, the method further comprises:
And the monitoring subprocess sends the monitored background application information to an application server.
3. The method of claim 1 or 2, wherein the establishing the cross-process port connection of the client port and the server port comprises:
the main process sends a connection request carrying the predefined path name to the monitoring subprocess;
And the monitoring subprocess establishes the cross-process port connection with the server port when determining that the received predefined path name is the same as the predefined path name of the monitoring subprocess.
4. An application information monitoring apparatus, the apparatus comprising a main process and a monitoring sub-process, the apparatus comprising:
The process creation module is used for creating a monitoring subprocess by the main process and starting the monitoring subprocess, wherein the monitoring subprocess creates a server port according to a predefined path name;
The connection establishing module is used for establishing a client port by the main process according to the predefined path name and establishing cross-process port connection between the client port and the server port;
The information monitoring module is used for sending command characters to the monitoring subprocess by the main process through the cross-process port connection, and the monitoring subprocess monitors background application information according to the command characters; the command character comprises at least one of starting monitoring, stopping monitoring, detecting a monitoring state and updating information;
the information monitoring module is further configured to return, by the monitoring sub-process, execution result information to the main process, where the execution result information is used by the main process to determine whether the command character is successfully executed.
5. the apparatus of claim 4, wherein the apparatus further comprises:
and the information sending module is used for sending the background application information obtained by monitoring to an application server by the monitoring subprocess.
6. The apparatus according to claim 4 or 5, wherein the connection establishing module is specifically configured to:
the main process sends a connection request carrying the predefined path name to the monitoring subprocess;
and the monitoring subprocess establishes the cross-process port connection with the server port when determining that the received predefined path name is the same as the predefined path name of the monitoring subprocess.
7. An application information monitoring apparatus, comprising: the device comprises a memory, a communication bus and a processor, wherein the memory is used for storing program codes, and the processor is used for calling the program codes and executing the following operations:
a main process creates a monitoring subprocess and starts the monitoring subprocess, and the monitoring subprocess creates a server port according to a predefined path name;
The main process establishes a client port according to the predefined path name and establishes cross-process port connection between the client port and the server port;
the main process sends command characters to the monitoring subprocess through the cross-process port connection, and the monitoring subprocess monitors background application information according to the command characters; the command character comprises at least one of starting monitoring, stopping monitoring, detecting a monitoring state and updating information;
And the monitoring subprocess returns execution result information to the main process, and the execution result information is used for the main process to determine whether the command character is executed successfully.
8. a computer-readable storage medium, characterized in that the computer storage medium stores a computer program which, when executed, is adapted to carry out the method of any one of claims 1-3.
CN201611198387.1A 2016-12-22 2016-12-22 Application information monitoring method and device Active CN106713453B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611198387.1A CN106713453B (en) 2016-12-22 2016-12-22 Application information monitoring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611198387.1A CN106713453B (en) 2016-12-22 2016-12-22 Application information monitoring method and device

Publications (2)

Publication Number Publication Date
CN106713453A CN106713453A (en) 2017-05-24
CN106713453B true CN106713453B (en) 2019-12-13

Family

ID=58938795

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611198387.1A Active CN106713453B (en) 2016-12-22 2016-12-22 Application information monitoring method and device

Country Status (1)

Country Link
CN (1) CN106713453B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108289165B (en) * 2017-12-12 2020-08-21 深圳进化动力数码科技有限公司 Method and device for realizing camera control based on mobile phone and terminal equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6182276B1 (en) * 1998-03-04 2001-01-30 International Business Machines Corporation Host application presentation space recognition producing asynchronous events
CN102681891A (en) * 2012-05-04 2012-09-19 奇智软件(北京)有限公司 Process control method and device for browser input control
CN102801961A (en) * 2012-08-21 2012-11-28 北京捷成世纪科技股份有限公司 Multiprocess-based audio/video data processing method and system
CN105337755A (en) * 2014-08-08 2016-02-17 阿里巴巴集团控股有限公司 Master-slave architecture server, service processing method thereof and service processing system thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6182276B1 (en) * 1998-03-04 2001-01-30 International Business Machines Corporation Host application presentation space recognition producing asynchronous events
CN102681891A (en) * 2012-05-04 2012-09-19 奇智软件(北京)有限公司 Process control method and device for browser input control
CN105068866A (en) * 2012-05-04 2015-11-18 北京奇虎科技有限公司 Process control method and device for browser input control
CN102801961A (en) * 2012-08-21 2012-11-28 北京捷成世纪科技股份有限公司 Multiprocess-based audio/video data processing method and system
CN105337755A (en) * 2014-08-08 2016-02-17 阿里巴巴集团控股有限公司 Master-slave architecture server, service processing method thereof and service processing system thereof

Also Published As

Publication number Publication date
CN106713453A (en) 2017-05-24

Similar Documents

Publication Publication Date Title
CN106708643B (en) Abnormal information processing method and device
US20180183651A1 (en) Content push method and server, and terminal
US10404568B2 (en) Agent manager for distributed transaction monitoring system
CN110113391B (en) Client online method and device and client operation method and device
US20170068585A1 (en) Method and Apparatus for Recovering System Software of Intelligent Terminal
CN111770174A (en) Cloud platform deployment method, device, equipment and readable storage medium
CN111245930A (en) Cross-platform message pushing method and device, computer equipment and storage medium
CN111752582A (en) Software updating method and device in local area network and electronic equipment
CN107526584B (en) Data access method and device
CN106294119B (en) Test scheduling system and method and terminal equipment
CN106713453B (en) Application information monitoring method and device
CN111786825B (en) Method, device, system and storage medium for dynamically configuring interface service
CN117724803A (en) Cloud service deployment method, device and platform
CN104346460A (en) Method and device for downloading file and browser client
CN105791514B (en) Application starting monitoring method and device
CN108989428B (en) Bluetooth terminal upgrading method, server, computer readable storage medium and system
CN114253441B (en) Method and device for enabling target function, storage medium and electronic device
CN112910956B (en) Resource creation method and device and electronic equipment
CN115357260A (en) Program upgrading method and device for terminal equipment, terminal equipment and storage medium
CN113515299A (en) Software development kit SDK hot upgrading method, device, equipment and storage medium
CN112527377A (en) Application program generation processing method and device, computer equipment and storage medium
CN113377385A (en) Client automatic deployment method and device
KR102368826B1 (en) Cloud Server And Method of Thereof
CN110311936B (en) Communication method and device between clients, electronic equipment and storage medium
CN111512612A (en) Method for remote management of devices connected to a residential gateway

Legal Events

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