CN112860408A - Process keep-alive method, device and system in cloud reality machine and storage medium - Google Patents

Process keep-alive method, device and system in cloud reality machine and storage medium Download PDF

Info

Publication number
CN112860408A
CN112860408A CN202110236668.6A CN202110236668A CN112860408A CN 112860408 A CN112860408 A CN 112860408A CN 202110236668 A CN202110236668 A CN 202110236668A CN 112860408 A CN112860408 A CN 112860408A
Authority
CN
China
Prior art keywords
alive
cloud
keep
resident
machine
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
CN202110236668.6A
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.)
Suzhou Qinyou Network Technology Co ltd
Original Assignee
Suzhou Qinyou Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Qinyou Network Technology Co ltd filed Critical Suzhou Qinyou Network Technology Co ltd
Priority to CN202110236668.6A priority Critical patent/CN112860408A/en
Publication of CN112860408A publication Critical patent/CN112860408A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention discloses a process keep-alive method, a device, a system and a storage medium in a cloud real machine, wherein the method comprises the following steps: respectively establishing a process to be kept alive and a resident keep-alive process in the cloud real machine, periodically acquiring basic equipment information of the cloud real machine in an operating state through the process to be kept alive, sending the basic equipment information to the cloud real machine server through the resident keep-alive process, and restarting the process to be kept alive when a restart instruction is received through the resident keep-alive process, wherein the restart instruction is generated by the cloud real machine server according to the receiving condition of the basic equipment information. According to the embodiment of the invention, whether the process to be kept alive is in the running state is reflected to the cloud real machine server by utilizing the basic equipment information, and when the restart instruction sent by the cloud real machine server for determining that the process to be kept alive is closed is received, the process to be kept alive is restarted, so that the external keep-alive of the process to be kept alive is realized, and the keep-alive performance of the process to be kept alive in the cloud real machine is improved.

Description

Process keep-alive method, device and system in cloud reality machine and storage medium
Technical Field
The embodiment of the invention relates to computer technology, in particular to a process keep-alive method, a device and a system in a cloud real machine and a storage medium.
Background
In the android devices on the market, an assistant program is required to be operated in the background all the time to be responsible for data transmission, but due to system reasons, background tasks can be killed regularly.
To address the above issues, it is often necessary to use an android process keep-alive scheme for individual devices. For example, when an external program needs to perform specific operation on a device, and some processes on the device are resident and are not easily killed, a user needs to perform some background operations on the device.
In the prior art, the process to be alive-kept is always made to reside in the following three ways: 1. and searching system bugs, and enabling the process to be kept alive to bypass recovery of the system through a hook function (hook) method. 2. And setting a corresponding keep-alive process for the process to be kept alive, and if the process to be kept alive is searched and killed by the system, re-calling the process to be kept alive through the keep-alive process. 3. And drawing a transparent interface of one pixel for the process to be kept alive on a display interface of the equipment, and using the transparent interface as a foreground process so as to disguise the process to be kept alive into the foreground process.
However, the above approaches have some drawbacks: for the first mode, since the android system is customized by various vendors, fragmentation is very serious, and compatibility of the hook method is too poor to guarantee effectiveness for all devices. For the second mode, the situation that the process is killed together with the keep-alive process inevitably exists in the practical situation, so that the keep-alive effect of the process to be kept alive is poor. Aiming at the third mode, when the memory of the equipment is in shortage, the process to be kept alive, which is disguised as a foreground process, is still checked and killed. Therefore, how to improve the keep-alive performance of the process becomes a technical problem to be solved urgently.
Disclosure of Invention
The embodiment of the invention provides a process keep-alive method, a device and a system in a cloud real machine and a storage medium, which can improve the keep-alive performance of a process.
In a first aspect, an embodiment of the present invention provides a process keep-alive method in a cloud-based live machine, which is applied to the cloud-based live machine, and includes:
respectively establishing a process to be kept alive and a resident keep-alive process in the cloud machine;
periodically acquiring basic equipment information of the cloud real machine through the process to be kept alive in the running state, and sending the basic equipment information to a cloud real machine server through the resident keep-alive process;
and when the resident keep-alive process receives a restart instruction, carrying out process restart on the process to be kept alive, wherein the restart instruction is generated by the cloud real machine server according to the receiving condition of the basic equipment information.
In a second aspect, an embodiment of the present invention further provides a process keep-alive method in a cloud real machine, which is applied to a cloud real machine server, and includes:
monitoring basic equipment information of a real cloud machine, which is periodically sent by a process to be kept alive in the real cloud machine through a resident keep-alive process in the real cloud machine;
and if the basic equipment information is not received within a second preset time period, sending a restart instruction to the resident keep-alive process so that the resident keep-alive process can restart the process to be kept alive.
In a third aspect, an embodiment of the present invention further provides a process keep-alive device in a cloud server, which is applied to the cloud server, and includes:
the process establishing module is used for respectively establishing a process to be kept alive and a resident keep-alive process in the cloud machine;
the information sending module is used for periodically obtaining basic equipment information of the cloud real machine through the process to be kept alive in the running state and sending the basic equipment information to the cloud real machine server through the resident keep-alive process;
and the process restarting module is used for restarting the process to be kept alive when the resident keep-alive process receives a restarting instruction, and the restarting instruction is generated by the cloud real machine server according to the receiving condition of the basic equipment information.
In a fourth aspect, an embodiment of the present invention further provides a process keep-alive device in a cloud server, which is applied to a cloud server, and includes:
the information monitoring module is used for monitoring basic equipment information of the real cloud machine, which is periodically sent by a process to be kept alive in the real cloud machine through a resident keep-alive process in the real cloud machine;
and the restart instruction sending module is used for sending a restart instruction to the resident keep-alive process if the basic equipment information is not received within a second preset time period so as to enable the resident keep-alive process to restart the process to be kept alive.
In a fifth aspect, an embodiment of the present invention further provides a cloud live machine service system, including: the cloud real machine server is connected with the cloud real machine server;
the cloud real machine is used for executing the process keep-alive method applied to the cloud real machine of the cloud real machine, provided by any embodiment of the invention;
the cloud real machine server is used for executing the process keep-alive method applied to the cloud real machine of the cloud real machine server provided by any embodiment of the invention.
In a sixth aspect, embodiments of the present invention further provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the process keep-alive method in a cloud server provided in any embodiment of the present invention.
The method and the device for restarting the cloud real machine comprise the steps that a process to be kept alive and a resident keep-alive process are respectively established in the cloud real machine, basic equipment information of the cloud real machine is periodically obtained through the process to be kept alive in an operating state, the basic equipment information is sent to a cloud real machine server through the resident keep-alive process, the process to be kept alive is restarted when a restart instruction is received through the resident keep-alive process, and the restart instruction is generated by the cloud real machine server according to the receiving condition of the basic equipment information. According to the embodiment of the invention, whether the process to be kept alive is in the running state is reflected to the cloud real machine server by utilizing the basic equipment information, and when the restart instruction sent by the cloud real machine server for determining that the process to be kept alive is closed is received, the process to be kept alive is restarted, so that the external keep-alive of the process to be kept alive is realized, and the keep-alive performance of the process to be kept alive in the cloud real machine is improved.
Drawings
Fig. 1 is a flowchart of a process keep-alive method applied to a cloud host in the cloud host according to an embodiment of the present invention;
fig. 2 is a flowchart of another process keep-alive method applied to a real cloud machine in the real cloud machine according to the second embodiment of the present invention;
fig. 3 is a flowchart of a process keep-alive method applied to a cloud live machine in a cloud live machine server according to a third embodiment of the present invention;
fig. 4 is a flowchart of another process keep-alive method applied to a real cloud machine in a real cloud machine server according to the fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a process keep-alive device applied to a real cloud machine in the real cloud machine according to the fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a process keep-alive device applied to a real cloud machine in a real cloud machine server according to a sixth embodiment of the present invention;
fig. 7 is a schematic structural diagram of a cloud reality machine according to a seventh embodiment of the present invention;
fig. 8 is a schematic structural diagram of a cloud real machine server according to an eighth embodiment of the present invention;
fig. 9 is a schematic structural diagram of a process keep-alive system in a cloud live machine according to a ninth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a process keep-alive method applied to a cloud host in the cloud host according to an embodiment of the present invention, where the embodiment is applicable to keep-alive of a process in the cloud host, and the method may be executed by a process keep-alive device in the cloud host, and the device may be implemented in a software and/or hardware manner. The device can be configured in a cloud and real machine. As shown in fig. 1, the method includes:
and S110, respectively establishing a process to be kept alive and a resident keep-alive process in the cloud machine.
The cloud real machine can be a real machine or a virtual machine deployed at the cloud end and used for providing remote real machine service. For example, the cloud server may be a real android device or the like.
The process to be kept alive can be a background process needing to be kept alive in the cloud machine. For example, for a cloud-live machine with a built-in operating system, the process to be kept alive can be a background process corresponding to the operating system. The process to be kept alive can be used for acquiring data of the cloud real machine and sending the acquired data to the resident keep-alive process.
The resident keep-alive process can be a background process which is not easy to be checked and killed in the cloud real machine. For example, for a cloud machine with a built-in operating system, the resident keep-alive process can be a background process in the cloud machine that does not correspond to the operating system. The resident keep-alive process can be used for receiving data sent by the process to be kept alive and forwarding the data to the real cloud server, so that the real cloud server processes the data or forwards the data according to the received data.
Illustratively, a process needing keep-alive is selected as a process to be kept alive in a background process of the cloud real machine, and a process which is not easy to be checked and killed is selected as a resident keep-alive process, so that the establishment of the process to be kept alive and the resident keep-alive process in the cloud real machine is realized.
And step S120, periodically acquiring basic equipment information of the cloud real machine through the process to be kept alive in the running state, and sending the basic equipment information to the cloud real machine server through the resident keep-alive process.
The basic equipment information is used for the cloud real machine server to determine whether the process to be kept alive is in the running state or not. For example, the base device information may be device storage information, power information, a device serial number, a device model number, and/or a system version, etc. When the process to be kept alive can periodically acquire basic equipment information of the cloud real machine, the process to be kept alive is in an operating state; and when the process to be kept alive cannot acquire the basic equipment information of the cloud real machine, the process to be kept alive is closed.
Specifically, basic equipment information of the cloud real machine is periodically acquired by the process to be kept alive in the running state, the basic equipment information is sent to the resident keep-alive process, the basic equipment information is received by the resident keep-alive process, and the basic equipment information is forwarded to the cloud real machine server, so that the cloud real machine server determines whether the process to be kept alive is in the running state or not according to the received basic equipment information.
Here, the periodic acquisition may be understood as acquisition according to a preset period. For example, the process to be kept alive may obtain the basic device information every ten seconds, so that the resident keep-alive process forwards the basic device information every ten seconds to the cloud machine server, so that the cloud machine server may determine that the process to be kept alive is in an operating state when receiving the basic device information, and may determine that the process to be kept alive is closed within a preset time period or when not receiving the basic device information for a preset number of times.
And S130, carrying out process restarting on the process to be kept alive when the resident keep-alive process receives the restarting instruction.
The restarting instruction is generated by the cloud real machine server according to the receiving condition of the basic equipment information. For example, the restart instruction may be sent after determining that the process to be kept alive is closed, for the cloud live machine server not receiving the basic device information within a preset time period. The restart instruction may be used to instruct the resident keep-alive process to restart the process to be kept alive. For example, the restart instruction may be an adb (Android Debug Bridge ) restart command. The process to be kept alive is closed, namely the process to be kept alive is in an unoperated state or an abnormal operation state, and basic equipment information of the cloud real machine cannot be normally acquired or sent.
Specifically, when the resident keep-alive process receives the restart instruction, the process is restarted for the keep-alive process according to the restart instruction.
Illustratively, when the resident keep-alive process in the cloud live machine does not send basic device information to the cloud live machine server within a preset time period or for a preset number of times, the cloud live machine server determines that the process to be kept alive is closed, the cloud live machine sends a restart instruction to the resident keep-alive process, and the resident keep-alive process restarts the process to be kept alive when receiving the restart instruction so as to keep the process to be kept alive.
The method and the device for restarting the cloud real machine comprise the steps that a process to be kept alive and a resident keep-alive process are respectively established in the cloud real machine, basic equipment information of the cloud real machine is periodically obtained through the process to be kept alive in an operating state, the basic equipment information is sent to a cloud real machine server through the resident keep-alive process, the process to be kept alive is restarted when a restart instruction is received through the resident keep-alive process, and the restart instruction is generated by the cloud real machine server according to the receiving condition of the basic equipment information. According to the embodiment of the invention, whether the process to be kept alive is in the running state is reflected to the cloud real machine server by using the basic equipment information under the condition that the communication connection is normal, and the process to be kept alive is restarted when the restart instruction sent by the cloud real machine server for determining that the process to be kept alive is closed is received, so that the external keep-alive of the process to be kept alive is realized, and the keep-alive performance of the process to be kept alive in the cloud real machine is improved.
Example two
Fig. 2 is a flowchart of another process keep-alive method applied to a cloud live machine in the cloud live machine according to the second embodiment of the present invention, where the present embodiment performs optimization based on the foregoing embodiment, and as shown in fig. 2, the method includes:
step S210, establishing a process to be kept alive and a resident keep-alive process in the cloud machine respectively.
Optionally, an Android operating system may be built in the cloud machine, the process to be kept alive is an Android process, and the resident keep-alive process is a java process.
In the normal working process of the real cloud machine, a background process in the real cloud machine can transmit data to the real cloud machine client in real time, so that a user can receive the data transmitted by the real cloud machine at the real cloud machine client or remotely operate the real cloud machine. After being checked and killed by the cloud real-time machine system, a background process in the cloud real-time machine is easy to cause some functions of the cloud real-time machine to be abnormal, and further the cloud real-time machine client cannot receive data of the cloud real-time machine and cannot remotely operate some functions of the cloud real-time machine. For example, a killer program in the Android operating system may kill an Android process, so that the Android process is closed, the killer program in the Android operating system does not kill a java process, and the java process may exist in a background process of the cloud real machine all the time.
Optionally, the process to be kept alive may be preset as a foreground service and displayed in the notification bar.
Illustratively, the background service configuration parameters are modified into foreground service configuration parameters in the source code of the process to be kept alive, and the process to be kept alive is displayed in the notification bar. The background service configuration parameters are used for setting the process to be kept alive as background services, and the foreground service configuration parameters are used for setting the process to be kept alive as foreground services. The embodiment sets the process to be kept alive as foreground service and displays the foreground service in the notification bar, thereby improving the process grade of the process to be kept alive, ensuring that the process to be kept alive cannot be easily checked and killed, and improving the internal keep-alive performance of the process to be kept alive.
And S220, establishing and maintaining communication connection between the process to be kept alive and the resident keep-alive process and communication connection between the resident keep-alive process and the cloud real machine server.
The real cloud machine server can be a server in communication connection with the real cloud machine and is used for keeping the process to be kept alive in the real cloud machine alive.
Specifically, a communication connection between a process to be kept alive and a resident keep-alive process in the cloud machine is established, the communication connection is kept uninterrupted, a communication connection between the resident process in the cloud machine and a cloud machine server is established, and the communication connection is kept uninterrupted. Wherein the communication connection may be a Socket connection or the like.
When the communication connection between the keep-alive process and the resident keep-alive process in the cloud real machine is successfully established and the communication connection between the resident keep-alive process and the cloud real machine server is successfully established, the keep-alive process can send data to the cloud real machine server through the resident keep-alive process, so that the cloud real machine server can receive the data sent by the keep-alive process through the resident keep-alive process. And when the number of the processes to be kept alive is at least two, the resident keep-alive processes uniformly send data to the cloud machine server, so that the communication efficiency between the cloud machine and the cloud machine server can be improved.
Step S230, a first heartbeat packet is sent to the process to be kept alive regularly through the resident keep-alive process, and when response information of the first heartbeat packet is not received in a first preset time period, communication connection between the first heartbeat packet and the process to be kept alive is reestablished.
The first heartbeat packet can be a heartbeat packet sent by a resident keep-alive process in the cloud machine to a to-be-keep-alive process, and is used for judging whether normal communication connection exists between the resident keep-alive process and the to-be-keep-alive process.
The response information of the first heartbeat packet may be response information fed back to the resident keep-alive process after the to-be-keep-alive process in the cloud real machine receives the first heartbeat packet sent by the resident keep-alive process, and is used for determining that the communication connection between the resident keep-alive process and the to-be-keep-alive process is normal.
Specifically, a first heartbeat packet is sent to the process to be kept alive through the resident keep-alive process according to a first preset period, and if response information of the first heartbeat packet is received, the communication connection between the resident keep-alive process and the process to be kept alive is normal; and if the response information of the first heartbeat packet is not received in the first preset time period, indicating that the communication connection between the process to be kept alive is interrupted or abnormal, and reestablishing the communication connection between the process to be kept alive and the process to be kept alive.
Optionally, reestablishing, by the resident keep-alive process, a communication connection with the process to be kept alive may include:
and directly sending a communication connection establishment request to the process to be kept alive through the resident keep-alive process, or sending the communication connection establishment request to the process to be kept alive when the resident keep-alive process detects a communication signal of the process to be kept alive, so that the process to be kept alive reestablishes the communication connection with the resident keep-alive process according to the communication connection establishment request.
Specifically, the resident keep-alive process establishes the connection with the process to be kept alive when detecting that the connection with the process to be kept alive is interrupted, and may directly send a communication connection establishment request to the process to be kept alive, and when receiving a communication connection establishment completion message sent by the process to be kept alive, indicate that the establishment of the communication connection with the process to be kept alive is completed. Or detecting the communication signal of the process to be kept alive, sending a communication connection establishment request to the process to be kept alive only when the communication signal of the process to be kept alive is detected, and indicating that the establishment of the communication connection with the process to be kept alive is completed when a communication connection establishment completion message sent by the process to be kept alive is received.
Optionally, after the communication connection with the process to be kept alive is reestablished, the method may further include:
and when the communication connection establishment failure between the resident keep-alive process and the process to be kept alive is detected, carrying out process restart on the process to be kept alive through the cloud real machine operating system or the resident keep-alive process.
Specifically, the communication connection establishment condition between the resident keep-alive process and the to-be-keep-alive process is detected, when the communication connection establishment failure is detected, the to-be-keep-alive process may be closed, and the to-be-keep-alive process is restarted through the cloud machine operating system or the resident keep-alive process.
In the embodiment, the process restart is carried out on the process to be kept alive when the communication connection establishment failure between the resident keep-alive process and the process to be kept alive is detected, so that the internal keep-alive of the cloud terminal of the process to be kept alive is realized, double guarantee is provided for the keep-alive of the process to be kept alive, and the keep-alive performance of the process to be kept alive is further improved.
Step S240, receiving the second heartbeat packet sent by the cloud server through the resident keep-alive process, and sending response information of the second heartbeat packet to the cloud server, so as to maintain the communication connection with the cloud server.
The second heartbeat packet can be a heartbeat packet sent by a resident keep-alive process in the cloud real machine to the cloud real machine server, and is used for judging whether normal communication connection exists between the cloud real machine server and the resident keep-alive process.
The response information of the second heartbeat packet may be response information fed back to the true cloud machine server by the resident keep-alive process in the true cloud machine after receiving the second heartbeat packet sent by the true cloud machine server, and is used for determining that the communication connection between the true cloud machine server and the resident keep-alive process is normal.
Specifically, the cloud live machine server sends a second heartbeat packet to a resident keep-alive process in the cloud live machine according to a second preset period. And the resident keep-alive process receives the second heartbeat packet and sends response information of the second heartbeat packet to the cloud real machine server. If the cloud real machine server receives the response information of the second heartbeat packet, the communication connection between the cloud real machine server and the resident keep-alive process is normal; and if the response information of the second heartbeat packet is not received within a certain time period, indicating that the communication connection between the second heartbeat packet and the resident keep-alive process is interrupted or abnormal, and reestablishing the communication connection between the second heartbeat packet and the resident keep-alive process. The process of reestablishing the communication connection is basically the same as the principle of reestablishing the communication connection with the process to be kept alive through the resident keep-alive process, and details are not described herein.
In the embodiment, the heartbeat packets are arranged between the processes to be kept alive and the resident keep-alive process and between the resident keep-alive process and the cloud server, so that normal communication between the processes and the cloud server is ensured, abnormal transmission of basic equipment information caused by communication interruption or abnormality is avoided, and the transmission stability of the basic equipment information is improved.
Optionally, in a case where the cloud host and the cloud host server are connected by a USB (Universal Serial Bus), the communication between the resident keep-alive process and the cloud host server is established based on a USB communication protocol.
According to the embodiment, the USB is used for connecting the cloud real machine and the cloud real machine server, so that the probability of communication connection interruption or abnormity between the resident keep-alive process and the cloud real machine server can be reduced, and the communication efficiency between the resident keep-alive process and the cloud real machine server is improved.
And S250, periodically acquiring basic equipment information of the cloud real machine through the process to be kept alive in the running state, and sending the basic equipment information to the cloud real machine server through the resident keep-alive process.
The basic equipment information is used for the cloud real machine server to determine whether the process to be kept alive is in the running state or not.
Optionally, the basic device information may be sent in association with identification information of the process to be kept alive.
The identification information is used for uniquely identifying the process to be kept alive. In the embodiment, the basic device information and the identification information of the process to be kept alive are sent in an associated manner, so that the cloud real machine server can determine the process to be kept alive to which the received basic device information belongs. For example, when the number of the processes to be kept alive is at least two, the basic device information of the cloud real machine is periodically acquired by the at least two processes to be kept alive respectively in the running state, and for each process to be kept alive, the basic device information and the identification information of the process to be kept alive are sent to the cloud real machine server through the resident keep-alive process, so that the cloud real machine server can determine which process to be kept alive the basic device information comes from according to the identification information.
And step S260, carrying out process restarting on the process to be kept alive when the resident keep-alive process receives the restarting instruction.
The restarting instruction is generated by the cloud real machine server according to the receiving condition of the basic equipment information.
Optionally, when an administrator permission instruction sent by the cloud real machine server is received, an administrator permission program of the process to be kept alive is started according to the administrator permission instruction.
The administrator permission instruction can be used for instructing the cloud real machine to start an administrator permission program of the process to be kept alive. For example, the administrator permission instruction may be an adb administrator permission command. The adb administrator permission command may specifically include an adb general administrator permission command and an adb super administrator permission command. The adb common administrator permission command can correspond to a common administrator permission, the adb super administrator permission command can correspond to a super administrator permission, and the permission level of the common administrator permission is lower than that of the super administrator permission.
The administrator authority program may be a preset program for setting the authority level of the process to be kept alive as the administrator authority. For example, the administrator privileges may include general administrator privileges and super administrator privileges. The common administrator permission program is used for setting the permission level of the process to be kept alive as the common administrator permission, and the super administrator permission program is used for setting the permission level of the process to be kept alive as the super administrator permission.
According to the embodiment, when the administrator permission instruction sent by the cloud real machine server is received, the administrator permission program of the process to be kept alive is started, the permission level of the process to be kept alive can be improved, the keep-alive level of the process to be kept alive is further improved, the process to be kept alive is prevented from being manually checked and killed, and the keep-alive performance of the process to be kept alive is further improved.
According to the embodiment of the invention, the normal communication between the process to be kept alive and the resident keep-alive process is ensured through the first heartbeat packet detection between the process to be kept alive and the resident keep-alive process, and the normal communication between the resident keep-alive process and the cloud server is ensured through the second heartbeat packet detection between the resident keep-alive process and the cloud server, so that the transmission stability of basic equipment information is improved. The basic equipment information of the cloud real machine is regularly acquired by the process to be kept alive in the running state, and is transmitted to the cloud real machine server through the resident keep-alive process, so that the cloud real machine server judges whether the process to be kept alive is closed or not, and the process to be kept alive is restarted when a restart instruction is received by the resident keep-alive process. The external keep-alive of the process to be kept alive is realized, the requirement on the equipment of the cloud real machine is low, and the applicability of the keep-alive scheme is improved. The resident keep-alive process is not easy to be searched and killed, so that the resident keep-alive process and the keep-alive process are prevented from being searched and killed together, and the keep-alive effect of the process to be kept alive is improved. Because the basic equipment information occupies a small memory, the basic equipment information is not easy to be searched and killed even when the memory of the cloud real machine is tense, and the keep-alive efficiency of the process to be kept alive is improved.
EXAMPLE III
Fig. 3 is a flowchart of a process keep-alive method applied to a cloud host in a cloud host server according to a third embodiment of the present invention, where the third embodiment is applicable to keep-alive of a process in the cloud host, and the method may be executed by a process keep-alive device in the cloud host, and the device may be implemented in a software and/or hardware manner. The device can be configured in a cloud real machine server. As shown in fig. 3, the method includes:
and S310, monitoring basic equipment information of the real cloud machine, which is periodically sent by a process to be kept alive in the real cloud machine through a resident keep-alive process in the real cloud machine.
The cloud real machine can be used for executing the process keep-alive method in the cloud real machine provided by any embodiment of the invention. The cloud machine can comprise a keep-alive process and a resident keep-alive process. And the process to be kept alive is in communication connection with the resident keep-alive process in the cloud real machine.
Specifically, basic equipment information of the cloud real machine is periodically acquired through a process to be kept alive in the cloud real machine in an operating state, and the basic equipment information is sent to a resident keep-alive process; and monitoring basic equipment information forwarded by the resident keep-alive process.
And step S320, if the basic equipment information is not received in the second preset time period, sending a restart instruction to the resident keep-alive process so that the resident keep-alive process restarts the process to be kept alive.
The second preset time period can be determined based on a set period for acquiring basic equipment information by a process to be kept alive in the cloud real machine. For example, when the set period is ten seconds, the second preset time period may be set to one minute. The basic device information is not received within one minute, that is, the basic device information is not received six times in succession.
Illustratively, the process to be kept alive in the cloud real machine can acquire basic device information of the cloud real machine once every ten seconds and send the basic device information to the cloud real machine server through the resident keep-alive process. And the cloud real machine server receives basic equipment information sent by the resident keep-alive process every ten seconds in the running state of the keep-alive process. When the communication condition between the real cloud server and the resident keep-alive process is unstable, the real cloud server may miss receiving of the basic device information for several times. At this time, when the number of times of omission is less than six times, it can be considered that the process to be kept alive in the real cloud machine is not closed, and only the communication condition between the real cloud machine server and the resident keep-alive process is unstable. When the cloud real machine server does not receive the basic equipment information within one minute, the basic equipment information can be considered to be not received for six times continuously, the process to be kept alive in the cloud real machine can be considered to be closed, and a restart instruction is sent to the resident keep-alive process, so that the process to be kept alive is restarted, and the normal operation of the process to be kept alive is further ensured.
According to the embodiment of the invention, the basic equipment information of the real cloud machine is periodically sent by monitoring the process to be kept alive in the real cloud machine through the resident keep-alive process in the real cloud machine, and if the basic equipment information is not received in the second preset time period, the restart instruction is sent to the resident keep-alive process, so that the resident keep-alive process restarts the process to be kept alive. According to the embodiment of the invention, whether the process to be kept alive in the cloud real machine is in the running state is determined by utilizing the basic equipment information forwarded by the resident keep-alive process in the cloud real machine, and when the process to be kept alive is determined to be closed, the restart instruction is sent to the resident keep-alive process, so that the resident keep-alive process restarts the process to be kept alive, the external keep-alive of the process to be kept alive is realized, and the keep-alive performance of the process to be kept alive in the cloud real machine is improved.
Example four
Fig. 4 is a flowchart of another process keep-alive method applied to a cloud live machine in a cloud live machine server according to a fourth embodiment of the present invention, where the present embodiment is optimized based on the foregoing embodiment, and as shown in fig. 4, the method includes:
and S410, establishing and maintaining communication connection with the resident keep-alive process in the cloud machine.
Wherein the communication connection may be a Socket connection or the like.
Optionally, in a case where the cloud host and the cloud host server are connected by a USB (Universal Serial Bus), the communication with the resident keep-alive process is established based on a USB communication protocol.
According to the embodiment, the USB is used for connecting the cloud real machine and the cloud real machine server, so that the probability of communication connection interruption or abnormity between the resident keep-alive process and the cloud real machine server can be reduced, and the communication efficiency between the resident keep-alive process and the cloud real machine server is improved.
Optionally, establishing and maintaining a communication connection with a resident keep-alive process in the cloud machine may include:
and sending the second heartbeat packet to a resident keep-alive process in the cloud machine.
And when the response information of the second heartbeat packet is not received in a third preset time period, reestablishing the communication connection with the resident keep-alive process.
Specifically, when the response information of the second heartbeat packet is not received within the third preset time period, it is described that the communication connection with the resident keep-alive process is interrupted or abnormal, and the communication connection with the resident keep-alive process is reestablished.
According to the embodiment of the invention, the second heartbeat packet is sent to the resident keep-alive process in the cloud real machine, and when the response information of the second heartbeat packet is not received in the third preset time period, the communication connection with the resident keep-alive process is reestablished, so that the communication connection with the resident keep-alive process in the cloud real machine is ensured, and the transmission stability of the basic equipment information is improved.
Further, after the communication connection with the resident keep-alive process is reestablished, the method may further include:
and when the communication connection with the resident keep-alive process is detected to be established unsuccessfully, the resident keep-alive process is restarted through the cloud real machine operating system.
Specifically, a communication connection establishment condition between the cloud live machine server and the resident keep-alive process is detected, when a communication connection establishment failure is detected, the resident keep-alive process may be closed, and the resident keep-alive process is restarted through the cloud live machine operating system.
In the embodiment, the resident keep-alive process is restarted when the communication connection between the cloud live machine server and the resident keep-alive process is detected to be failed to establish, and although the resident keep-alive process is not easy to be checked and killed, the detection step can be added to the resident keep-alive process so as to avoid the accidental closing of the resident keep-alive process. The internal keep-alive of the cloud machine of the resident keep-alive process is realized, and the keep-alive performance of the process to be kept alive is further improved.
And S420, monitoring basic equipment information of the real cloud machine, which is periodically sent by a process to be kept alive in the real cloud machine through a resident keep-alive process in the real cloud machine.
Optionally, before step S420, the method may further include:
and sending an administrator permission instruction to the cloud real machine so that the cloud real machine starts an administrator permission program of the process to be kept alive according to the administrator permission instruction.
Optionally, the cloud real machine server may record the received basic device information.
According to the embodiment, the user can conveniently obtain and check the running condition of the process to be kept alive by recording the received basic equipment information.
And step S430, if the basic equipment information is not received in the second preset time period, sending a restart instruction to the resident keep-alive process so that the resident keep-alive process restarts the process to be kept alive.
And step S440, judging whether the sending times of the restart instruction corresponding to the process to be kept alive in the fourth preset time period exceed a preset threshold, if so, executing step S450, otherwise, returning to execute step S420.
And S450, sending abnormal information of the process to be kept alive to the cloud real machine client.
The real cloud machine client can be a client in communication connection with the real cloud machine server and is used for receiving data transmitted by the real cloud machine server or remotely operating the real cloud machine.
Specifically, if the sending times of the restart instruction corresponding to the process to be kept alive in the fourth preset time period exceed the preset threshold, which indicates that the restarting times of the process to be kept alive in the fourth preset time period exceed the preset threshold, it may be determined that the process to be kept alive is abnormal, and abnormal information of the process to be kept alive is sent to the cloud real machine client.
According to the embodiment of the invention, the communication connection with the resident keep-alive process in the cloud real machine is established and maintained, the information of the basic equipment of the cloud real machine, which is periodically sent by the to-be-keep-alive process in the cloud real machine through the resident keep-alive process in the cloud real machine, is monitored, and if the information of the basic equipment is not received in the second preset time period, a restart instruction is sent to the resident keep-alive process, so that the to-be-keep-alive process is restarted, the external keep-alive of the to-be-keep-alive process is realized, and the keep-alive performance of the to-be-keep-alive process in the cloud. And determining whether the process to be kept alive is abnormal or not by judging whether the sending times of the restart instruction corresponding to the process to be kept alive in the fourth preset time period exceed the preset threshold value or not, so that the monitoring performance of the process to be kept alive is improved.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a process keep-alive device applied to a real cloud machine in the real cloud machine according to the fifth embodiment of the present invention. The device can be realized by software and/or hardware, can be generally integrated in a cloud real machine, and can improve the keep-alive performance of the process by executing a process keep-alive method in the cloud real machine. As shown in fig. 5, the apparatus includes:
a process establishing module 510, configured to respectively establish a to-be-keep-alive process and a resident keep-alive process in the cloud and trueness machine;
an information sending module 520, configured to periodically obtain, in an operating state, basic device information of the telepresence machine through the process to be kept alive, and send the basic device information to a telepresence machine server through the resident keep-alive process;
and the process restarting module 530 is configured to restart the process to be kept alive when the resident keep-alive process receives a restart instruction, where the restart instruction is generated by the trum server according to the receiving condition of the basic device information.
The embodiment of the invention provides a process keep-alive device applied to a cloud real machine in the cloud real machine, which reflects whether a process to be kept alive is in an operating state or not to a cloud real machine server by utilizing basic equipment information, and restarts the process to be kept alive when a restart instruction sent by the cloud real machine server for determining that the process to be kept alive is closed is received, so that external keep-alive of the process to be kept alive is realized, and the keep-alive performance of the process to be kept alive in the cloud real machine is improved.
Optionally, the apparatus further comprises:
the first connection establishing module is used for establishing and maintaining the communication connection between the process to be kept alive and the resident keep-alive process and the communication connection between the resident keep-alive process and the cloud machine server after the process to be kept alive and the resident keep-alive process are respectively established in the cloud machine.
Optionally, the first connection establishing module is specifically configured to:
sending a first heartbeat packet to the process to be kept alive periodically through the resident keep-alive process, and reestablishing communication connection with the process to be kept alive when response information of the first heartbeat packet is not received in a first preset time period;
and receiving a second heartbeat packet sent by the cloud real machine server through the resident keep-alive process, and sending response information of the second heartbeat packet to the cloud real machine server so as to maintain the communication connection with the cloud real machine server.
Optionally, the first connection establishing module is specifically further configured to:
after the communication connection between the process to be kept alive and the resident keep-alive process is reestablished, when the communication connection between the resident keep-alive process and the process to be kept alive is detected to be failed to be established, the process to be kept alive is restarted through a cloud machine operating system or the resident keep-alive process.
Optionally, the apparatus further comprises:
and the administrator permission starting module is used for starting an administrator permission program of the process to be kept alive according to the administrator permission instruction when receiving the administrator permission instruction sent by the cloud real machine server.
The process keep-alive device in the cloud terminal provided by the embodiment of the invention can execute the process keep-alive method in the cloud terminal provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
EXAMPLE six
Fig. 6 is a schematic structural diagram of a process keep-alive device applied to a real cloud machine in a real cloud machine server according to a sixth embodiment of the present invention. The device can be realized by software and/or hardware, can be generally integrated in a cloud real machine server, and can improve the keep-alive performance of the process by executing a process keep-alive method in the cloud real machine. As shown in fig. 6, the apparatus includes:
the information monitoring module 610 is used for monitoring basic equipment information of the real cloud machine, which is periodically sent by a process to be kept alive in the real cloud machine through a resident keep-alive process in the real cloud machine;
a restart instruction sending module 620, configured to send a restart instruction to the resident keep-alive process if the basic device information is not received within a second preset time period, so that the resident keep-alive process performs process restart on the process to be kept alive.
The embodiment of the invention provides a process keep-alive device applied to a cloud machine in a cloud machine server, which determines whether a process to be kept alive in the cloud machine is in an operating state or not by utilizing basic equipment information forwarded by a resident keep-alive process in the cloud machine, and sends a restart instruction to the resident keep-alive process when the process to be kept alive is determined to be closed, so that the resident keep-alive process restarts the process to be kept alive, the external keep-alive of the process to be kept alive is realized, and the keep-alive performance of the process to be kept alive in the cloud machine is improved.
Optionally, the apparatus further comprises:
and the second connection establishing module is used for establishing and maintaining the communication connection with the resident keep-alive process in the real cloud machine before the basic equipment information of the real cloud machine is periodically sent by the resident keep-alive process in the real cloud machine during the process of monitoring the to-be-keep-alive process in the real cloud machine.
Optionally, the second connection establishing module is specifically configured to:
sending a second heartbeat packet to a resident keep-alive process in the cloud machine;
and when the response information of the second heartbeat packet is not received in a third preset time period, reestablishing the communication connection with the resident keep-alive process.
Optionally, the apparatus further comprises:
the administrator instruction sending module is used for sending an administrator authority instruction to the real cloud machine before basic equipment information of the real cloud machine is monitored, and the real cloud machine starts an administrator authority program of the process to be kept alive according to the administrator authority instruction.
Optionally, the apparatus further comprises:
and the exception sending module is used for sending exception information of the process to be kept alive to the cloud real machine client if the sending times of the restart instruction corresponding to the process to be kept alive in a fourth preset time period exceed a preset threshold value after sending the restart instruction to the resident keep-alive process.
The process keep-alive device in the cloud terminal provided by the embodiment of the invention can execute the process keep-alive method in the cloud terminal provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
EXAMPLE seven
Fig. 7 is a schematic structural diagram of a cloud terminal according to a seventh embodiment of the present invention, as shown in fig. 7, the cloud terminal includes a processor 700, a memory 710, an input device 720, and an output device 730; the number of the processors 700 in the cloud machine may be one or more, and one processor 700 is taken as an example in fig. 7; the processor 700, the memory 710, the input device 720 and the output device 730 in the cloud computer may be connected by a bus or other means, and fig. 7 illustrates an example of connection by a bus.
The memory 710, which is a computer-readable storage medium, may be used for storing software programs, computer-executable programs, and modules, such as program instructions and/or modules corresponding to the process keep-alive method in the cloud computer in the embodiments of the present invention (for example, the process establishing module 510, the information sending module 520, and the process restarting module 530 in the process keep-alive apparatus in the cloud computer). The processor 700 executes various functional applications and data processing of the cloud real machine by running software programs, instructions and modules stored in the memory 710, that is, the process keep-alive method in the cloud real machine is implemented. The method can comprise the following steps:
respectively establishing a process to be kept alive and a resident keep-alive process in the cloud machine;
periodically acquiring basic equipment information of the cloud real machine through the process to be kept alive in the running state, and sending the basic equipment information to a cloud real machine server through the resident keep-alive process;
and when the resident keep-alive process receives a restart instruction, carrying out process restart on the process to be kept alive, wherein the restart instruction is generated by the cloud real machine server according to the receiving condition of the basic equipment information.
The memory 710 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 710 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 710 may further include memory located remotely from processor 700, which may be connected to a cloud server over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 720 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the fax machine. The output device 730 may include a display device such as a display screen.
Example eight
Fig. 8 is a schematic structural diagram of a cloud real machine server according to an eighth embodiment of the present invention, and as shown in fig. 8, the cloud real machine server includes a processor 800, a memory 810, an input device 820, and an output device 830; the number of the processors 800 in the cloud live machine server may be one or more, and one processor 800 is taken as an example in fig. 8; the processor 800, the memory 810, the input device 820 and the output device 830 in the cloud server may be connected by a bus or other means, and fig. 8 illustrates an example of connection by a bus.
The memory 810 may be used as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program instructions and/or modules corresponding to the process keep-alive method in the cloud computer in the embodiment of the present invention (for example, the information monitoring module 610 and the restart instruction sending module 620 in the process keep-alive device in the cloud computer). The processor 800 executes various functional applications and data processing of the cloud server by running software programs, instructions and modules stored in the memory 810, that is, the process keep-alive method in the cloud server is implemented. The method can comprise the following steps:
monitoring basic equipment information of a real cloud machine, which is periodically sent by a process to be kept alive in the real cloud machine through a resident keep-alive process in the real cloud machine;
and if the basic equipment information is not received within a second preset time period, sending a restart instruction to the resident keep-alive process so that the resident keep-alive process can restart the process to be kept alive.
The memory 810 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 810 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 810 may further include memory located remotely from processor 800, which may be connected to a cloud server over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 820 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cloud server. The output device 830 may include a display device such as a display screen.
Example nine
Fig. 9 is a schematic structural diagram of a process keep-alive system in a cloud live machine according to a ninth embodiment of the present invention. The system can improve the keep-alive performance of the process by executing the process keep-alive method in the cloud real machine. As shown in fig. 9, the system includes at least one cloud server according to any embodiment of the present invention and a cloud server according to any embodiment of the present invention.
The cloud machine can comprise a keep-alive process and a resident keep-alive process. And the cloud terminal machine establishes and maintains the communication connection between the process to be kept alive and the resident keep-alive process and the communication connection between the resident keep-alive process and the cloud terminal machine server. The cloud real machine periodically acquires basic equipment information of the cloud real machine in an operating state through the process to be kept alive, and sends the basic equipment information to the cloud real machine server through the resident keep-alive process. And the cloud real machine server monitors basic equipment information periodically sent by the resident keep-alive process, and if the basic equipment information is not received in a second preset time period, a restart instruction is sent to the resident keep-alive process so that the process to be kept alive is restarted.
Optionally, the system may further include a cloud live client. The cloud real machine client can be used for receiving data transmitted by the cloud real machine through the cloud real machine server or remotely operating the cloud real machine. This embodiment is through setting up the real quick-witted server of cloud between real machine of cloud and the real quick-witted customer end of cloud, not only through real quick-witted server transmission data of cloud, avoids the data between real machine of cloud and the real quick-witted customer end of cloud to take place the accident and lead to data loss in the transmission course, improves data transmission's stability, still carries out outside keep-alive to the real machine of cloud through real quick-witted server of cloud, has improved the keep-alive performance of treating the keep-alive process in the real machine of cloud, has also had very high promotion to the stability of system.
The embodiment of the invention provides a process keep-alive system in a cloud real machine, which is characterized in that basic equipment information of the cloud real machine is periodically acquired through a to-be-keep-alive process in the cloud real machine, and the basic equipment information is sent to a cloud real machine server through a resident keep-alive process. And sending a restart instruction to a resident keep-alive process in the cloud live machine through the cloud live machine server when judging that the process to be kept alive is closed according to the basic equipment information, so as to restart the process to be kept alive through the resident keep-alive process. The external keep-alive of the process to be kept alive is realized, and the keep-alive performance of the process to be kept alive in the cloud real machine is improved.
Example ten
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are executed by a computer processor to perform a process keep-alive method in a cloud server, and the method is applied to the cloud server, and the method includes:
respectively establishing a process to be kept alive and a resident keep-alive process in the cloud machine;
periodically acquiring basic equipment information of the cloud real machine through the process to be kept alive in the running state, and sending the basic equipment information to a cloud real machine server through the resident keep-alive process;
and when the resident keep-alive process receives a restart instruction, carrying out process restart on the process to be kept alive, wherein the restart instruction is generated by the cloud real machine server according to the receiving condition of the basic equipment information.
Or, the method is used for executing a process keep-alive method in the cloud real machine, and is applied to a cloud real machine server, and the method includes:
monitoring basic equipment information of a real cloud machine, which is periodically sent by a process to be kept alive in the real cloud machine through a resident keep-alive process in the real cloud machine;
and if the basic equipment information is not received within a second preset time period, sending a restart instruction to the resident keep-alive process so that the resident keep-alive process can restart the process to be kept alive.
Of course, the storage medium containing the computer-executable instructions provided by the embodiments of the present invention is not limited to the method operations described above, and may also perform related operations in the process keep-alive method in the cloud server provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the process keep-alive device in the cloud real machine, each unit and each module included in the embodiment are only divided according to functional logic, but are not limited to the above division, as long as corresponding functions can be implemented; in addition, the specific names of the functional units are only for the convenience of distinguishing from each other, and are not used for limiting the keep-alive range of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the spirit of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (16)

1. A process keep-alive method in a cloud real machine is characterized by being applied to the cloud real machine and comprising the following steps:
respectively establishing a process to be kept alive and a resident keep-alive process in the cloud machine;
periodically acquiring basic equipment information of the cloud real machine through the process to be kept alive in the running state, and sending the basic equipment information to a cloud real machine server through the resident keep-alive process;
and when the resident keep-alive process receives a restart instruction, carrying out process restart on the process to be kept alive, wherein the restart instruction is generated by the cloud real machine server according to the receiving condition of the basic equipment information.
2. The method according to claim 1, wherein after the process to keep alive and the resident keep alive process are respectively established in the cloud machine, the method further comprises:
and establishing and maintaining the communication connection between the process to be kept alive and the resident keep-alive process and the communication connection between the resident keep-alive process and the cloud real machine server.
3. The method of claim 2, wherein establishing and maintaining the communication connection between the process to keep alive and the resident keep alive process, and the resident keep alive process and the cloud server comprises:
sending a first heartbeat packet to the process to be kept alive periodically through the resident keep-alive process, and reestablishing communication connection with the process to be kept alive when response information of the first heartbeat packet is not received in a first preset time period;
and receiving a second heartbeat packet sent by the cloud real machine server through the resident keep-alive process, and sending response information of the second heartbeat packet to the cloud real machine server so as to maintain the communication connection with the cloud real machine server.
4. The method of claim 3, further comprising, after reestablishing the communication connection with the process to keep alive:
and when the communication connection establishment failure between the resident keep-alive process and the process to be kept alive is detected, carrying out process restart on the process to be kept alive through a cloud machine operating system or the resident keep-alive process.
5. The method of claim 1, further comprising:
and when receiving an administrator permission instruction sent by the cloud real machine server, starting an administrator permission program of the process to be kept alive according to the administrator permission instruction.
6. A process keep-alive method in a cloud real machine is characterized by being applied to a cloud real machine server and comprising the following steps:
monitoring basic equipment information of a real cloud machine, which is periodically sent by a process to be kept alive in the real cloud machine through a resident keep-alive process in the real cloud machine;
and if the basic equipment information is not received within a second preset time period, sending a restart instruction to the resident keep-alive process so that the resident keep-alive process can restart the process to be kept alive.
7. The method of claim 6, wherein before monitoring the basic device information of the cloud real machine, the process to be alive sent periodically by the process to be alive in the cloud real machine via the resident keep-alive process in the cloud real machine, further comprises:
and establishing and maintaining communication connection with the resident keep-alive process in the cloud machine.
8. The method of claim 7, wherein establishing and maintaining a communication connection with a keep-alive process resident in a cloud machine comprises:
sending a second heartbeat packet to a resident keep-alive process in the cloud machine;
and when the response information of the second heartbeat packet is not received in a third preset time period, reestablishing the communication connection with the resident keep-alive process.
9. The method of claim 6, wherein before monitoring the basic device information of the cloud real machine, the process to be alive sent periodically by the process to be alive in the cloud real machine via the resident keep-alive process in the cloud real machine, further comprises:
and sending an administrator permission instruction to the cloud terminal so that the cloud terminal starts an administrator permission program of the process to be kept alive according to the administrator permission instruction.
10. The method of claim 6, further comprising, after sending a restart instruction to the resident keep-alive process:
and if the sending times of the restart instruction corresponding to the process to be kept alive in a fourth preset time period exceed a preset threshold, sending abnormal information of the process to be kept alive to the cloud real machine client.
11. The utility model provides a process keep-alive device in real machine of cloud which characterized in that is applied to real machine of cloud, includes:
the process establishing module is used for respectively establishing a process to be kept alive and a resident keep-alive process in the cloud machine;
the information sending module is used for periodically obtaining basic equipment information of the cloud real machine through the process to be kept alive in the running state and sending the basic equipment information to the cloud real machine server through the resident keep-alive process;
and the process restarting module is used for restarting the process to be kept alive when the resident keep-alive process receives a restarting instruction, and the restarting instruction is generated by the cloud real machine server according to the receiving condition of the basic equipment information.
12. The apparatus of claim 11, further comprising:
and the administrator permission starting module is used for starting an administrator permission program of the process to be kept alive according to the administrator permission instruction when receiving the administrator permission instruction sent by the cloud real machine server.
13. The utility model provides a process keep-alive device in real machine of cloud which characterized in that is applied to real machine of cloud server, includes:
the information monitoring module is used for monitoring basic equipment information of the real cloud machine, which is periodically sent by a process to be kept alive in the real cloud machine through a resident keep-alive process in the real cloud machine;
and the restart instruction sending module is used for sending a restart instruction to the resident keep-alive process if the basic equipment information is not received within a second preset time period so as to enable the resident keep-alive process to restart the process to be kept alive.
14. The apparatus of claim 13, further comprising:
the administrator instruction sending module is used for sending an administrator authority instruction to the real cloud machine before basic equipment information of the real cloud machine is monitored, and the real cloud machine starts an administrator authority program of the process to be kept alive according to the administrator authority instruction.
15. A cloud-real-machine service system is characterized by comprising: the cloud real machine server is connected with the cloud real machine server;
the cloud real machine is used for executing the process keep-alive method in the cloud real machine according to any one of claims 1-5;
the cloud real machine server is used for executing the process keep-alive method in the cloud real machine according to any one of claims 6 to 10.
16. A storage medium containing computer-executable instructions for performing the process keep-alive method in a telepresence machine as claimed in any one of claims 1 to 5 or 6 to 10 when executed by a computer processor.
CN202110236668.6A 2021-03-03 2021-03-03 Process keep-alive method, device and system in cloud reality machine and storage medium Pending CN112860408A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110236668.6A CN112860408A (en) 2021-03-03 2021-03-03 Process keep-alive method, device and system in cloud reality machine and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110236668.6A CN112860408A (en) 2021-03-03 2021-03-03 Process keep-alive method, device and system in cloud reality machine and storage medium

Publications (1)

Publication Number Publication Date
CN112860408A true CN112860408A (en) 2021-05-28

Family

ID=75991405

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110236668.6A Pending CN112860408A (en) 2021-03-03 2021-03-03 Process keep-alive method, device and system in cloud reality machine and storage medium

Country Status (1)

Country Link
CN (1) CN112860408A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114064234A (en) * 2021-09-26 2022-02-18 荣耀终端有限公司 Method and device for repairing WMI service
CN114826981A (en) * 2022-04-27 2022-07-29 广东悦伍纪网络技术有限公司 System and method for realizing application resident in cloud mobile phone
CN115209478A (en) * 2022-09-16 2022-10-18 南京博鼎资讯科技有限公司 Data processing method for long-term keep-alive of new-generation mobile communication based on artificial intelligence

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060277538A1 (en) * 2005-06-02 2006-12-07 Microsoft Corporation Dynamic process recovery in a distributed environment
CN105335171A (en) * 2014-06-24 2016-02-17 北京奇虎科技有限公司 Method and device for long residence of application program in background of operating system
CN106484461A (en) * 2016-09-13 2017-03-08 北京智能管家科技有限公司 Service keepalive method and device in intelligent terminal
CN107678782A (en) * 2017-09-14 2018-02-09 平安科技(深圳)有限公司 A kind of process protection method, device, equipment and computer-readable recording medium
CN107704274A (en) * 2017-08-24 2018-02-16 武汉斗鱼网络科技有限公司 Method, storage medium, equipment and the system waken up for Android application host process
CN108845875A (en) * 2018-07-09 2018-11-20 北京顺丰同城科技有限公司 A kind of Resident Process keep-alive system and method
CN108984366A (en) * 2018-06-29 2018-12-11 百度在线网络技术(北京)有限公司 Monitor processing method, device and the equipment of terminal
CN109144677A (en) * 2017-06-16 2019-01-04 百度在线网络技术(北京)有限公司 The method and apparatus of keep-alive process for Android system
CN109257253A (en) * 2018-09-14 2019-01-22 视联动力信息技术股份有限公司 A kind of method and apparatus of APP operational monitoring
CN109426591A (en) * 2017-09-04 2019-03-05 武汉斗鱼网络科技有限公司 Guard the method and apparatus of multiple processes of the single program of windows
CN109766177A (en) * 2019-01-08 2019-05-17 深圳市网心科技有限公司 A kind of Android APP keepalive method, system and relevant device
CN109992310A (en) * 2019-03-12 2019-07-09 中国平安财产保险股份有限公司 Application program keepalive method, device, computer equipment and storage medium
CN110928586A (en) * 2019-11-15 2020-03-27 上海银基信息安全技术股份有限公司 APP background keep-alive method and device
CN111090562A (en) * 2019-11-25 2020-05-01 广东科徕尼智能科技有限公司 Business process monitoring method, equipment and storage medium of edge intelligent gateway
CN112286652A (en) * 2020-09-17 2021-01-29 福州云联畅想软件科技有限公司 Android APP background keep-alive method
CN112350895A (en) * 2020-11-05 2021-02-09 深圳Tcl新技术有限公司 Keep-alive method and device for application program, equipment and computer readable storage medium

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060277538A1 (en) * 2005-06-02 2006-12-07 Microsoft Corporation Dynamic process recovery in a distributed environment
CN105335171A (en) * 2014-06-24 2016-02-17 北京奇虎科技有限公司 Method and device for long residence of application program in background of operating system
CN106484461A (en) * 2016-09-13 2017-03-08 北京智能管家科技有限公司 Service keepalive method and device in intelligent terminal
CN109144677A (en) * 2017-06-16 2019-01-04 百度在线网络技术(北京)有限公司 The method and apparatus of keep-alive process for Android system
CN107704274A (en) * 2017-08-24 2018-02-16 武汉斗鱼网络科技有限公司 Method, storage medium, equipment and the system waken up for Android application host process
CN109426591A (en) * 2017-09-04 2019-03-05 武汉斗鱼网络科技有限公司 Guard the method and apparatus of multiple processes of the single program of windows
CN107678782A (en) * 2017-09-14 2018-02-09 平安科技(深圳)有限公司 A kind of process protection method, device, equipment and computer-readable recording medium
CN108984366A (en) * 2018-06-29 2018-12-11 百度在线网络技术(北京)有限公司 Monitor processing method, device and the equipment of terminal
CN108845875A (en) * 2018-07-09 2018-11-20 北京顺丰同城科技有限公司 A kind of Resident Process keep-alive system and method
CN109257253A (en) * 2018-09-14 2019-01-22 视联动力信息技术股份有限公司 A kind of method and apparatus of APP operational monitoring
CN109766177A (en) * 2019-01-08 2019-05-17 深圳市网心科技有限公司 A kind of Android APP keepalive method, system and relevant device
CN109992310A (en) * 2019-03-12 2019-07-09 中国平安财产保险股份有限公司 Application program keepalive method, device, computer equipment and storage medium
CN110928586A (en) * 2019-11-15 2020-03-27 上海银基信息安全技术股份有限公司 APP background keep-alive method and device
CN111090562A (en) * 2019-11-25 2020-05-01 广东科徕尼智能科技有限公司 Business process monitoring method, equipment and storage medium of edge intelligent gateway
CN112286652A (en) * 2020-09-17 2021-01-29 福州云联畅想软件科技有限公司 Android APP background keep-alive method
CN112350895A (en) * 2020-11-05 2021-02-09 深圳Tcl新技术有限公司 Keep-alive method and device for application program, equipment and computer readable storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114064234A (en) * 2021-09-26 2022-02-18 荣耀终端有限公司 Method and device for repairing WMI service
CN114064234B (en) * 2021-09-26 2022-11-18 荣耀终端有限公司 Method and device for repairing WMI service
CN114826981A (en) * 2022-04-27 2022-07-29 广东悦伍纪网络技术有限公司 System and method for realizing application resident in cloud mobile phone
CN114826981B (en) * 2022-04-27 2023-09-22 广东悦伍纪网络技术有限公司 System and method for realizing application resident in cloud mobile phone
CN115209478A (en) * 2022-09-16 2022-10-18 南京博鼎资讯科技有限公司 Data processing method for long-term keep-alive of new-generation mobile communication based on artificial intelligence
CN115209478B (en) * 2022-09-16 2022-11-25 南京博鼎资讯科技有限公司 Data processing method for long-term alive-keeping of new-generation mobile communication based on artificial intelligence

Similar Documents

Publication Publication Date Title
CN112860408A (en) Process keep-alive method, device and system in cloud reality machine and storage medium
US20190324797A1 (en) Task processing method, apparatus, and system
CN106598633B (en) Configuration file updating method, client and server
US11218541B2 (en) Data storage method, storage server, and storage medium and system
JP2001101033A (en) Fault monitoring method for operating system and application program
CN109040295B (en) Method and device for determining abnormal disconnection, terminal and storage medium
US9658917B2 (en) Server performance correction using remote server actions
CN112506702B (en) Disaster recovery method, device, equipment and storage medium for data center
CN112769652B (en) Node service monitoring method, device, equipment and medium
CN110618864A (en) Interrupt task recovery method and device
CN111124761B (en) Equipment restarting method, device, equipment and medium
CN115658113A (en) Server self-starting method and device, readable storage medium and electronic equipment
CN111143099A (en) BMC process monitoring method and device
CN109766197A (en) A kind of 4G module stability working method based on android system
CN115023919A (en) Firewall rule updating method and device, server and storage medium
CN108595195B (en) Application program updating method, device, terminal and storage medium
CN113765690A (en) Cluster switching method, system, device, terminal, server and storage medium
CN108391120B (en) Camera starting test method, device, equipment and storage medium
CN113422784B (en) Login certificate updating method and device, computer equipment and storage medium
CN107179911B (en) Method and equipment for restarting management engine
CN115314361A (en) Server cluster management method and related components thereof
CN112416698B (en) Expansion method and device of monitoring system, storage medium and electronic equipment
CN110673710B (en) Server case resetting method, device, equipment and medium
CN113849135A (en) Log access method and device and server
CN112367386A (en) Ignite-based automatic operation and maintenance method, apparatus and computer equipment

Legal Events

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