CN108279994A - A kind of connection Citrix has issued the automation solution of application exception - Google Patents

A kind of connection Citrix has issued the automation solution of application exception Download PDF

Info

Publication number
CN108279994A
CN108279994A CN201810058462.7A CN201810058462A CN108279994A CN 108279994 A CN108279994 A CN 108279994A CN 201810058462 A CN201810058462 A CN 201810058462A CN 108279994 A CN108279994 A CN 108279994A
Authority
CN
China
Prior art keywords
session
chained list
citrix
ingress
connection
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.)
Granted
Application number
CN201810058462.7A
Other languages
Chinese (zh)
Other versions
CN108279994B (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.)
Beijing Simulation Center
Original Assignee
Beijing Simulation Center
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 Beijing Simulation Center filed Critical Beijing Simulation Center
Priority to CN201810058462.7A priority Critical patent/CN108279994B/en
Publication of CN108279994A publication Critical patent/CN108279994A/en
Application granted granted Critical
Publication of CN108279994B publication Critical patent/CN108279994B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0748Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a remote unit communicating with a single-box computer node experiencing an error/fault
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0793Remedial or corrective actions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present invention discloses a kind of connection Citrix and has issued using abnormal automation solution, including:Obtain the process ID and session id of all processes of high-performance server;Empty chain table is established for the session id more than zero;Ingress to be inserted corresponded into the process ID of process as nodal value and judging corresponded to the presence or absence of ingress to be inserted in each chained list ancestors' process of process:If being otherwise inserted into and being inserted into when the session id of ancestors' process is the session id of chained list the process ID of ancestors' process;If being then inserted into and keeping the process ID of all ancestors' processes by without the insertion chained list repeated;If there is exception, counts all abnormal session ids and be simultaneously stored in document;The corresponding chained list of each session id, terminates the corresponding process of process ID of each node successively since head node therein in locating documents;Sequence deletes all nodes therein.System can be restored to available mode by the present invention in the case where not influencing high-performance server other users operation from abnormality.

Description

A kind of connection Citrix has issued the automation solution of application exception
Technical field
The present invention relates to server technology fields.It has been issued using exception more particularly, to a kind of connection Citrix Automate solution.
Background technology
In many units, especially R&D institution, designer often has the demand for carrying out high-performance calculation, emulation.It is high Performance calculation server can install the application issuing function that the computer sim- ulations such as VC, MATLAB software then utilizes Citrix softwares, Publication will be applied.Designer can connect the application of high performance computing service device publication using computer, submit code, execute Program.Designer normally execute cancellation, shut down computer do not influence and issued application between connection, can after being again coupled to Obtain with nullify before application connection, only after user closes specific session in Citrix connections centers, computer with Having issued the connection of application can just be deleted.
But in practice, designer is again coupled to announced in application, often appearance can not after calculating task The case where normal connection.The function that Citrix AppCenter provide cancellation connection user (nullifies connection user and works as user Close specific session in Citrix connections center), 95% or so probability, computer capacity is again coupled to announced after cancellation Using.But there are still fewer situation, the cancellation function of being provided using CitrixAppCenter and has issued application at computer Link information can only be eliminated several seconds, then restore, believe due to nullifying failed, computer and having issued the connection of application There are still designer can not be again coupled to announced application to breath always, only restart high-performance server, designer is It can reconnect.And on high-performance server moment all other users calculating task, it is unacceptable to restart.
Accordingly, it is desirable to provide one kind can thoroughly be deleted under the premise of not restarting high-performance server nullifying the when of connecting user Except the connection Citrix of computer and the Citrix link information for having issued application has been issued using abnormal automation solution party Method.
Invention content
The purpose of the present invention is to provide one kind can connecting user under the premise of not restarting high-performance server nullifying When complete deletion computer and the connection Citrix of the Citrix link informations for having issued application issued using abnormal automatic Change solution.
In order to achieve the above objectives, the present invention uses following technical proposals:
A kind of connection Citrix has issued the automation solution of application exception, including:
The first step, all processes for traversing high-performance server, obtain the process ID and session id of each process;
Second step, the opening space in high-performance server memory confirm that return value is correct, zero meeting are more than for each Words ID establishes an empty chain table respectively;
Third walks, for each ingress to be inserted, judges that whether having occurred ingress to be inserted in each chained list corresponds to Ancestors' process of process:
If being otherwise inserted into the ingress to be inserted, nodal value is the process ID that the ingress to be inserted corresponds to process, and if only if The ingress to be inserted correspond to ancestors' process of process session id be chained list session id when be inserted into the ingress to be inserted correspond into The process ID of ancestors' process of journey, before keeping all child nodes to appear in father node;
If being then inserted into the ingress to be inserted, nodal value is that the ingress to be inserted corresponds to the process ID of process and keeps to be inserted The process ID that ingress corresponds to all ancestors' processes of process is inserted into without what is repeated in chained list;
If exception occur in the 4th step, connection Citrix publication applications, counted on Citrix AppCenter all different Normal session id establishes session id document to be deleted and all abnormal session ids is written to session id document to be deleted;
5th step reads session id document to be deleted, the positioning wherein corresponding chained list of each session id, from calmly line by line Head node in the chained list of position starts to terminate the corresponding process of process ID of each node successively;
6th step, sequence delete all nodes in the chained list of positioning.
Preferably, the first step is realized using the Windows library functions that VC++ is provided.
Preferably, second step is realized by C++ programming interface.
Preferably, session id of each in second step more than zero is positive integer.
Preferably, the process ID for terminating each node in the 5th step successively since the head node in the chained list of positioning is corresponding Process includes:The process ID for obtaining head node in the chained list of positioning, terminates the corresponding process of the process ID, after determining successfully, eventually Only the corresponding processes of progress ID of the chained list next node until the process ID for terminating all nodes in the chained list it is corresponding Process.
Beneficial effects of the present invention are as follows:
Technical solution of the present invention can realize that user has been issued using computer connection Citrix using appearance exception In the case of, Parameter File is specified by executable program, Compulsory Removal computer and application has been issued on high-performance server The corresponding process of link information.In the case where connection is more extremely, can be made with batch-automated deletion error connection status Issued application can be normally again coupled to by obtaining user, the case where not influencing high-performance server other users operation Under, system is restored to available mode from abnormality.
Description of the drawings
Specific embodiments of the present invention will be described in further detail below in conjunction with the accompanying drawings;
Fig. 1 shows that connection Citrix has issued the flow chart using abnormal automation solution.
Specific implementation mode
In order to illustrate more clearly of the present invention, the present invention is done further with reference to preferred embodiments and drawings It is bright.Similar component is indicated with identical reference numeral in attached drawing.It will be appreciated by those skilled in the art that institute is specific below The content of description is illustrative and be not restrictive, and should not be limited the scope of the invention with this.
As shown in Figure 1, connection Citrix provided in this embodiment has been issued using abnormal automation solution, packet It includes:
The first step, the Windows library functions provided using VC++, are traversed all processes of high-performance server, obtain institute There are the process ID (ProcessID) and session id (SessionID) of process;
Second step, by C++ programming interface, a block space is opened up in high-performance server memory, is confirming return value just Really, it is that the session id that each is more than zero establishes an empty chain table respectively, it should be noted that each session id is just Integer;
Third walks, for each ingress to be inserted, judges that whether having occurred ingress to be inserted in each chained list corresponds to Ancestors' process of process:
If being otherwise considered as situation A:It is inserted into the ingress to be inserted, nodal value is the process that the ingress to be inserted corresponds to process ID, the session id that ancestors' process of process is corresponded to and if only if the ingress to be inserted are inserted into this when being the session id of chained list and are inserted into Node corresponds to the process ID of ancestors' process of process, before keeping all child nodes to appear in father node;
If being then considered as situation B:It is inserted into the ingress to be inserted, nodal value is the process ID that the ingress to be inserted corresponds to process And holding ingress to be inserted corresponds to the process ID of all ancestors' processes of process by being inserted into chained list without repetition;
If exception occur in the 4th step, connection Citrix publication applications, (designer has fed back connection Citrix hairs in other words There are abnormal conditions in cloth application), all abnormal session ids are counted on Citrix AppCenter, are established to be deleted Simultaneously session id document to be deleted is written in all abnormal session ids by session id document;
5th step reads session id document to be deleted line by line, for each meeting in session id document to be deleted Talk about ID, the corresponding chained lists of location sessions ID obtain the process ID of head node in the chained list of positioning, terminate the process ID it is corresponding into Journey after determining successfully, terminates the corresponding processes of carry out ID of the chained list next node until terminating all sections in the chained list The corresponding process of process ID of point;
6th step, sequence delete all nodes in the chained list of positioning.
Connection Citrix provided in this embodiment has been issued makes user use meter using abnormal automation solution Calculation machine is again coupled to Citrix and has issued using in the case of there is exception, and parameter, Compulsory Removal are specified by executable program Computer and the link information for having issued application can be connected in the case where connection is more extremely with batch-automated deletion error Connect state.
Obviously, the above embodiment of the present invention be only to clearly illustrate example of the present invention, and not be pair The restriction of embodiments of the present invention may be used also on the basis of the above description for those of ordinary skill in the art To make other variations or changes in different ways, all embodiments can not be exhaustive here, it is every to belong to this hair Row of the obvious changes or variations that bright technical solution is extended out still in protection scope of the present invention.

Claims (5)

1. a kind of connection Citrix has been issued using abnormal automation solution, which is characterized in that including:
The first step, all processes for traversing high-performance server, obtain the process ID and session id of each process;
Second step, the opening space in high-performance server memory confirm that return value is correct, zero session id are more than for each An empty chain table is established respectively;
Third walks, for each ingress to be inserted, judges that whether having occurred ingress to be inserted in each chained list corresponds to process Ancestors' process:
If being otherwise inserted into the ingress to be inserted, nodal value is the process ID that the ingress to be inserted corresponds to process, is waited for and if only if this The session id that insertion node corresponds to ancestors' process of process is inserted into the ingress to be inserted when being the session id of chained list and corresponds to process The process ID of ancestors' process, before keeping all child nodes to appear in father node;
If being then inserted into the ingress to be inserted, nodal value is that the ingress to be inserted corresponds to the process ID of process and holding is inserted into section The process ID of all ancestors' processes of the corresponding process of point is inserted into without what is repeated in chained list;
If exception occur in the 4th step, connection Citrix publication applications, counted on Citrix AppCenter all abnormal Session id establishes session id document to be deleted and all abnormal session ids is written to session id document to be deleted;
5th step reads session id document to be deleted, the positioning wherein corresponding chained list of each session id, from positioning line by line Head node in chained list starts to terminate the corresponding process of process ID of each node successively;
6th step, sequence delete all nodes in the chained list of positioning.
2. connection Citrix according to claim 1 has been issued using abnormal automation solution, which is characterized in that The first step is realized using the Windows library functions that VC++ is provided.
3. connection Citrix according to claim 1 has been issued using abnormal automation solution, which is characterized in that Second step is realized by C++ programming interface.
4. connection Citrix according to claim 1 has been issued using abnormal automation solution, which is characterized in that Session id of each in second step more than zero is positive integer.
5. connection Citrix according to claim 1 has been issued using abnormal automation solution, which is characterized in that The corresponding process of process ID for terminating each node in 5th step successively since the head node in the chained list of positioning includes:It is fixed to obtain The process ID of head node, terminates the corresponding process of the process ID, after determining successfully, terminates the next section of the chained list in the chained list of position The corresponding processes of progress ID of point are until the corresponding process of the process ID for terminating all nodes in the chained list.
CN201810058462.7A 2018-01-22 2018-01-22 Automatic solution method for connection Citrix published application exception Active CN108279994B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810058462.7A CN108279994B (en) 2018-01-22 2018-01-22 Automatic solution method for connection Citrix published application exception

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810058462.7A CN108279994B (en) 2018-01-22 2018-01-22 Automatic solution method for connection Citrix published application exception

Publications (2)

Publication Number Publication Date
CN108279994A true CN108279994A (en) 2018-07-13
CN108279994B CN108279994B (en) 2021-04-16

Family

ID=62804393

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810058462.7A Active CN108279994B (en) 2018-01-22 2018-01-22 Automatic solution method for connection Citrix published application exception

Country Status (1)

Country Link
CN (1) CN108279994B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112084091A (en) * 2020-09-09 2020-12-15 北京升鑫网络科技有限公司 System behavior auditing method, device, terminal and storage medium

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5991845A (en) * 1996-10-21 1999-11-23 Lucent Technologies Inc. Recoverable spin lock system
CN1391386A (en) * 2001-06-12 2003-01-15 华为技术有限公司 Method for protecting task process in multitask operating system
CN101369241A (en) * 2007-09-21 2009-02-18 中国科学院计算技术研究所 Cluster fault-tolerance system, apparatus and method
CN101414277A (en) * 2008-11-06 2009-04-22 清华大学 Need-based increment recovery disaster-containing system and method based on virtual machine
CN101778367A (en) * 2009-12-29 2010-07-14 北京首信科技股份有限公司 Method for restarting and restoring work of charging gateway
CN102594611A (en) * 2012-03-22 2012-07-18 江苏亿通高科技股份有限公司 Trap session chain table updating method for webmaster agent
CN103439113A (en) * 2013-06-21 2013-12-11 上海空间推进研究所 Fault diagnosis method based on link list structure
CN104331357A (en) * 2014-10-10 2015-02-04 北京金山安全软件有限公司 Application program abnormity detection method and device and mobile terminal
CN104717249A (en) * 2013-12-12 2015-06-17 北京神州泰岳软件股份有限公司 Method for issuing remote operation application, proxy server and system
CN105260257A (en) * 2015-11-12 2016-01-20 用友网络科技股份有限公司 Method and device for solving response stopping of program during operation
CN105446887A (en) * 2016-01-11 2016-03-30 中国科学院光电研究院 Satellite-borne embedded data communication fault dynamic injection system and method based on digital virtual technology
CN105468342A (en) * 2014-08-20 2016-04-06 西安慧泽知识产权运营管理有限公司 Novel operating system handle management method
CN106201698A (en) * 2016-07-15 2016-12-07 北京金山安全软件有限公司 Method and device for managing application program and electronic equipment
CN106354616A (en) * 2016-08-18 2017-01-25 北京并行科技股份有限公司 Method and device for monitoring application execution performance and high-performance computing system
CN106844026A (en) * 2017-01-03 2017-06-13 惠州Tcl移动通信有限公司 A kind of method and system for clearing up terminal device process
CN107357664A (en) * 2017-07-13 2017-11-17 郑州云海信息技术有限公司 The implementation method and device of a kind of distributed lock

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5991845A (en) * 1996-10-21 1999-11-23 Lucent Technologies Inc. Recoverable spin lock system
CN1391386A (en) * 2001-06-12 2003-01-15 华为技术有限公司 Method for protecting task process in multitask operating system
CN101369241A (en) * 2007-09-21 2009-02-18 中国科学院计算技术研究所 Cluster fault-tolerance system, apparatus and method
CN101414277A (en) * 2008-11-06 2009-04-22 清华大学 Need-based increment recovery disaster-containing system and method based on virtual machine
CN101778367A (en) * 2009-12-29 2010-07-14 北京首信科技股份有限公司 Method for restarting and restoring work of charging gateway
CN102594611A (en) * 2012-03-22 2012-07-18 江苏亿通高科技股份有限公司 Trap session chain table updating method for webmaster agent
CN103439113A (en) * 2013-06-21 2013-12-11 上海空间推进研究所 Fault diagnosis method based on link list structure
CN104717249A (en) * 2013-12-12 2015-06-17 北京神州泰岳软件股份有限公司 Method for issuing remote operation application, proxy server and system
CN105468342A (en) * 2014-08-20 2016-04-06 西安慧泽知识产权运营管理有限公司 Novel operating system handle management method
CN104331357A (en) * 2014-10-10 2015-02-04 北京金山安全软件有限公司 Application program abnormity detection method and device and mobile terminal
CN105260257A (en) * 2015-11-12 2016-01-20 用友网络科技股份有限公司 Method and device for solving response stopping of program during operation
CN105446887A (en) * 2016-01-11 2016-03-30 中国科学院光电研究院 Satellite-borne embedded data communication fault dynamic injection system and method based on digital virtual technology
CN106201698A (en) * 2016-07-15 2016-12-07 北京金山安全软件有限公司 Method and device for managing application program and electronic equipment
CN106354616A (en) * 2016-08-18 2017-01-25 北京并行科技股份有限公司 Method and device for monitoring application execution performance and high-performance computing system
CN106844026A (en) * 2017-01-03 2017-06-13 惠州Tcl移动通信有限公司 A kind of method and system for clearing up terminal device process
CN107357664A (en) * 2017-07-13 2017-11-17 郑州云海信息技术有限公司 The implementation method and device of a kind of distributed lock

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ZHANGLIANGFNST: "linux进程管理----pid哈希链表", 《HTTP://BLOG.CHINAUNIX.NET/UID-25538637-ID-271546.HTML》 *
于红 等: "《计算机操作系统》", 31 May 2017, 西安电子科技大学出版社 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112084091A (en) * 2020-09-09 2020-12-15 北京升鑫网络科技有限公司 System behavior auditing method, device, terminal and storage medium

Also Published As

Publication number Publication date
CN108279994B (en) 2021-04-16

Similar Documents

Publication Publication Date Title
US8418191B2 (en) Application flow control apparatus
US8788565B2 (en) Dynamic and distributed queueing and processing system
CN102402481B (en) The fuzz testing of asynchronous routine code
CN107908494A (en) Processing method, device, electronic equipment and the storage medium of anomalous event
CN105446827B (en) Date storage method and equipment when a kind of database failure
CN113568686B (en) Asynchronous processing method and device for Lua language, computer equipment and storage medium
CN109992219A (en) Distributed storage method, device, equipment and computer readable storage medium
CN107437222B (en) Processing method and system of online business data based on front end of bank counter
CN111290958B (en) Method and device for debugging intelligent contract
CN103034564B (en) Data disaster tolerance drilling method, data disaster tolerance practice device and system
CN105843693B (en) A kind of shared drive method towards high speed Maglev emulation
US10318385B2 (en) Service recovery using snapshots and interservice messages
CN108279994A (en) A kind of connection Citrix has issued the automation solution of application exception
CN108241616B (en) Message pushing method and device
CN113254166A (en) Method for processing IO request, storage medium and virtualization simulator
CN109542841A (en) The method and terminal device of data snapshot are created in cluster
CN108241499A (en) Method and device for updating field value annotation and computer readable storage medium
US20090077243A1 (en) Conversation recovery method
CN107483635A (en) Service request processing method, processing system and message middleware
CN110764835A (en) File configuration method and device of application environment, computer equipment and storage medium
CN109783215A (en) Abnormal task processing method and relevant apparatus
CN115033351A (en) Distributed transaction compensation method and related device
CN109889645A (en) The voice communication way of recording, real-time communication device and computer program product
CN112379952B (en) Method for implementing cross-process callback
CN111090513B (en) Method for detecting link health state of Internet of vehicles platform terminal and storage medium

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
GR01 Patent grant
GR01 Patent grant