CN107958414B - Method and system for eliminating long transactions of CICS (common integrated circuit chip) system - Google Patents

Method and system for eliminating long transactions of CICS (common integrated circuit chip) system Download PDF

Info

Publication number
CN107958414B
CN107958414B CN201711083086.9A CN201711083086A CN107958414B CN 107958414 B CN107958414 B CN 107958414B CN 201711083086 A CN201711083086 A CN 201711083086A CN 107958414 B CN107958414 B CN 107958414B
Authority
CN
China
Prior art keywords
transaction
list
online transaction
online
cics
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711083086.9A
Other languages
Chinese (zh)
Other versions
CN107958414A (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.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN201711083086.9A priority Critical patent/CN107958414B/en
Publication of CN107958414A publication Critical patent/CN107958414A/en
Application granted granted Critical
Publication of CN107958414B publication Critical patent/CN107958414B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/02Banking, e.g. interest calculation or account maintenance

Abstract

The invention provides a method and a system for clearing long transactions of a CICS (common integrated circuit chip) system, wherein the method comprises the following steps: acquiring a monitoring transaction list preset in a CICS system and overtime time corresponding to the monitoring transaction list; inquiring the current online transaction of the CICS system at regular time according to a preset interval, and recording the current online transaction number and the online transaction list inquired each time; comparing the two online transaction lists with the query time interval equal to the overtime time, and judging whether the same transaction number exists or not; if the same transaction number exists in the two online transaction lists, judging whether the same transaction number is also on the monitoring transaction list; if the same transaction number is also on the monitoring transaction list, the transaction corresponding to the transaction number is cleared by utilizing a clearing instruction. By utilizing the embodiment of the invention, the specific transactions needing to be monitored can be flexibly configured, the specific overtime time is appointed for each transaction, the system control during upstream and downstream interaction is realized, and the stable operation of each product is powerfully ensured.

Description

Method and system for eliminating long transactions of CICS (common integrated circuit chip) system
Technical Field
The invention belongs to the technical field of computers, and particularly relates to a method and a system for clearing long transactions of a CICS (common integrated circuit chip) system.
Background
The CICS is a transaction middleware, and the english meaning is a Customer Information Control System, i.e., a Customer Information Control System. CICS is a product that provides online transaction processing and transaction management for applications on IBM and non-IBM platforms, and functions to provide a transaction processing environment for business applications, suitable for use in a system such as a bank with a large number of emergency online events. The CICS is established on an operating system, a Distributed Computing Environment (DCE) of ISO and an Encina service, and can be tightly combined with the DCE to meet special requirements of the Distributed Environment on security, name service and the like.
At present, a financial institution uses CICS in a plurality of products in production, a timeout parameter is set according to business requirements during communication between the CICS, in order to avoid long hanging of a transaction, a technician usually sets the timeout in a TD configuration file of the CICS through the timeout parameter, but the minimum unit of parameter setting is minute, the timeout setting of a second-level unit cannot be realized, for example, the timeout of an upstream product is defined as 50 seconds, and according to a funnel principle, the timeout definition of a downstream product cannot be less than 50 seconds, for example, 45 seconds, so that certain limitation is brought to application.
Disclosure of Invention
In order to solve the above technical problem, embodiments of the present invention provide a method and a system for clearing long transactions in a CICS system.
In one aspect, an embodiment of the present invention provides a method for clearing long transactions in a CICS system, where the method includes:
acquiring a monitoring transaction list preset in a CICS system and overtime time corresponding to the monitoring transaction list;
inquiring the current online transaction of the CICS system at regular time according to a preset interval, and recording the current online transaction number and the online transaction list inquired each time;
comparing the two online transaction lists with the query time interval equal to the overtime time, and judging whether the two online transaction lists have the same transaction number or not;
if the same transaction number exists in the two online transaction lists, judging whether the same transaction number is also on the monitoring transaction list;
if the same transaction number is also on the monitored transaction list, the transaction corresponding to the transaction number is cleared by utilizing a clearing instruction.
In an embodiment, the method further comprises: recording the transaction to be monitored into a corresponding monitored transaction list according to the overtime time of each transaction; wherein, the overtime time of the transaction recorded on the same monitoring transaction list is the same.
In one embodiment, when regularly inquiring the current online transaction of the CICS system at preset intervals, the method further includes:
dynamically applying for a memory according to the current online transaction number so as to store the current online transaction number and an online transaction list; and the online transaction list records the transaction number of the current online transaction.
In one embodiment, after determining whether the same transaction number exists in both online transaction lists, the method further comprises: and releasing the memory occupied by the online transaction list with the earlier query time in the two online transaction lists.
In one embodiment, the timeout time is an integer multiple of the predetermined interval.
On the other hand, the embodiment of the invention also provides a system for clearing long transactions of the CICS system, which comprises the following steps:
the system comprises an information acquisition unit, a transaction processing unit and a transaction processing unit, wherein the information acquisition unit is used for acquiring a monitoring transaction list preset in a CICS (common integrated circuit chip) system and overtime time corresponding to the monitoring transaction list;
the online transaction query unit is used for regularly querying the current online transactions of the CICS system according to preset intervals and recording the current online transaction number and the online transaction list queried each time;
the comparison unit is used for comparing the two online transaction lists with the query time interval equal to the overtime time and judging whether the same transaction number exists in the two online transaction lists or not;
the first judging unit is used for judging whether the same transaction number is also on the monitoring transaction list when the same transaction number exists in the two online transaction lists;
and the second judgment unit is used for clearing the transaction corresponding to the transaction number by utilizing a clearing instruction when the same transaction number is also on the monitored transaction list.
In one embodiment, the system further comprises: the monitoring transaction list setting unit is used for recording the transactions needing to be monitored into the corresponding monitoring transaction list according to the overtime of each transaction; wherein, the overtime time of the transaction recorded on the same monitoring transaction list is the same.
In one embodiment, the system further comprises: the memory application unit is used for dynamically applying for a memory according to the current online transaction number when the online transaction query unit regularly queries the current online transaction of the CICS system according to a preset interval so as to store the current online transaction number and an online transaction list; and the online transaction list records the transaction number of the current online transaction.
In one embodiment, the system further comprises: and the memory release unit is used for releasing the memory occupied by the online transaction list with the earlier query time in the two online transaction lists after the first judgment unit judges whether the two online transaction lists have the same transaction number.
In one embodiment, the timeout time is an integer multiple of the predetermined interval.
By utilizing the embodiment of the invention, the monitoring parameters can be configured according to the user requirements, the limitation of the middleware product of the CICS system is broken through, the specific transaction needing to be monitored can be flexibly configured, the specific timeout time is appointed for each transaction, the system control during upstream and downstream interaction is realized, and the stable operation of each product is powerfully ensured.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for clearing long transactions in a CICS system according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for clearing long transactions in a CICS system according to another embodiment of the present invention;
fig. 3 is a schematic diagram of a system structure for clarifying long transaction in a CICS system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Defining transaction timeout in a CICS system, although it can be configured in RD, where the parameter is XPRecvTimeout, it is also configured to be applicable to all transactions, although it can be set to the second level, but it is hard, and once defined, all transactions use the same timeout parameter. If the configuration is performed in a manner that defines the TD in the CICS, the parameter in the TD is Timeout, which sets the parameter at least on the order of minutes, although it is possible to set a personalized Timeout for a single transaction. Along with the development of science and technology, interfaces among financial products are various, requirements of the interfaces are also various, and the requirements that various products stipulate different overtime return requirements are particularly important for protecting the system from being hung up by long transactions. The invention is based on the flexible configuration of the specific transaction and specific overtime, realizes system control and ensures the stable operation of products.
Fig. 1 is a flowchart illustrating a method for clearing long transactions in a CICS system according to an embodiment of the present invention. As shown in fig. 1, the method mainly comprises the following steps:
step S11, obtaining a monitoring transaction list preset in the CICS system and the timeout time corresponding to the monitoring transaction list.
Before implementing embodiments of the present invention, a technician is typically required to maintain the transaction list and timeout parameter information to be monitored in the context file of the CICS system. The TIMEOUT parameter information is generally referred to as a TIMEOUT, and when a transaction is not completed within a defined TIMEOUT (TIMEOUT), the transaction needs to be cleared by a clear (PURGE) command.
In the embodiment of the invention, when a technician records the transaction number of each transaction in the corresponding monitored transaction list according to the timeout time of each transaction, the transactions with the same timeout time are generally recorded in the same monitored transaction list for the sake of convenience in monitoring.
After the CICS system is started, a background process of the CICS system firstly reads parameter information in an environment file, and a monitoring transaction list preset in the CICS system by a technician and corresponding timeout time are obtained. The step is only needed to be executed once when the CICS system is started.
And step S12, regularly inquiring the current online transaction of the CICS system according to a preset interval, and recording the current online transaction number and the online transaction list inquired each time.
Typically, the timeout time is related to the preset interval by: the former being an integer multiple of the latter. For example, if the timeout period of a certain monitored transaction list is set to 50 seconds, the query interval may be set to be 5 seconds for one query, or 2.5 seconds for one query, or may be set to other values as long as the ratio of the timeout period to the preset interval is guaranteed to be an integer. Typically, this query step is performed as long as the CICS system is running, until the CICS system is stopped or the technician manually stops.
And step S13, comparing the two online transaction lists with the query time interval equal to the overtime time, and judging whether the two online transaction lists have the same transaction number.
The primary purpose of this step is to determine whether certain transactions have ended within a preset timeout period. When the timeout time is set to 50 seconds and the query interval is set to 5 seconds, the query time of the two transaction lists compared here may be obtained by querying when t is 5 seconds and t is 55 seconds, for example, if the same transaction number is recorded on the two online transaction lists, it is described that the transactions corresponding to the same transaction number are still running within the timeout time, and it may be further determined whether the transactions are the transactions monitored by the user through step S14. If the same transaction number does not exist on the two online transaction lists, which indicates that no long transaction occurs within the timeout period, the query number I is increased by 1 in the manner of step S16, and the next pair of online transaction lists spaced 50 seconds is continuously compared according to the current step, that is, the online transaction list obtained by query is continuously compared when t is 10 seconds and t is 60 seconds. As long as step S12 is performed, and a new online transaction list is queried and recorded, step S13 is continued.
Step S14, if the same transaction number exists in the two online transaction lists, determine whether the same transaction number is also on the monitoring transaction list.
When the judgment result of the step is as follows: if a same transaction number exists on both online transaction lists but is on the monitored transaction list set by the user, the process proceeds to step S15. If the same transaction number does not exist in the two online transaction lists on the monitored transaction list, it is indicated that the same transaction number is a transaction that does not need to be monitored, and the number of times of inquiry I may be added by 1 according to step S16, and whether the same transaction number still exists in the two online transaction lists may be continued.
And step S15, clearing the transaction corresponding to the transaction number by using a clearing instruction so as to avoid long hanging of the transaction.
In this step, when the long transaction is cleared, the number of times of inquiry I is increased by 1, usually according to step S16, so as to compare the new two online transaction lists with the inquiry time interval equal to the timeout.
By utilizing the embodiment of the invention, the monitoring parameters can be configured according to the user requirements, the limitation of the middleware product of the CICS system is broken through, the specific transaction needing to be monitored can be flexibly configured, the specific timeout time is appointed for each transaction, the system control during upstream and downstream interaction is realized, and the stable operation of each product is powerfully ensured.
In an embodiment, when the current online transaction of the CICS system is regularly queried according to the preset interval, a memory is dynamically applied according to the number of the current online transactions to store the number of the current online transactions and an online transaction list, and the transaction data and the online transaction list are usually stored in different data sets, but may also be stored in the same data set. Wherein, the online transaction list records the transaction number of the current online transaction.
In one embodiment, in order to save memory and reduce occupied resources, after determining whether the two online transaction lists have the same transaction number, the embodiment of the present invention usually releases the memory occupied by the online transaction list with the earlier query time in the two online transaction lists. For example, when the two online transaction lists are obtained by querying when t is 5 seconds and t is 55 seconds respectively, after determining whether the two online transaction lists have the same transaction number, the obtained online transaction list queried when t is 5 seconds may be released to save resources.
In order to more clearly illustrate the technical solution provided by the embodiment of the present invention, another embodiment of the present invention describes the technical solution of the present invention in detail through a specific program code execution flow, and specific steps are shown in fig. 2.
1. Since the background transaction servers of the bank are usually arranged in a cluster, a set of CICS systems is mostly deployed on each server. In order to be able to start a long transaction monitoring process at the same time as each CICS system is started, the technician is required to predefine the following main variables:
int dnum,. dtask; defining the number of transactions (task), task pointer
int + task [ K ]; defining a task pointer array, wherein the array is used for storing a task list, K is a number and is used for expressing the ratio of the timeout time set by a user to the query interval, namely the number of times of querying the current online transaction in the timeout time, and the specific value of the number depends on different settings of the user. For example, when the user lists a partial transaction with a timeout of 50 seconds on the same monitored transaction list and sets a query interval of 5 seconds, the number of queries is 10.
int num [10 ]; defining a task number pointer array for storing the number of tasks
2. And acquiring an environment variable recorded with a monitoring transaction list and corresponding timeout time in the CICS system.
Usually, a technician will define a transaction list and timeout time to be monitored in an environment variable of the CICS system, and after a monitoring program is started, the technician needs to read the environment variable of the CICS system to obtain the transaction list and corresponding timeout time to be monitored. For example, if a transaction list to be monitored is defined in an environment variable (for example, designated as ECTR _ TRAN) and a TIMEOUT time corresponding to the monitored transaction list is defined in another environment variable (for example, designated as ECTR _ TIMEOUT), the monitored transaction list and the TIMEOUT time of the current CICS system may be obtained from ECTR _ TRAN and ECTR _ TIMEOUT, respectively.
3. The first loop is entered to make K equal to 0 at its initial value.
4. And judging whether K is less than 10. The purpose of this step is to jump out of the first cycle when K is greater than or equal to 10.
5. And calling a CICS function (e.g. request function) to inquire the current online transaction, and acquiring the transaction number and the transaction number of the current online transaction.
6. And dynamically applying for the memory according to the size of the transaction number, and placing the applied memory address in the pointer array. Wherein the number of transactions determines the size of the memory requested.
7. Copy the list of transactions (task) from step 6 to the task K via memcpy instruction. In this embodiment, the address stored in the transaction list (containing the transaction number of the online transaction) is usually placed in the storage area pointed by the pointer dtask, that is, the online transaction list is placed in the pointer array tatsk, and the transaction number is written into the dnum variable.
8. And delaying for 5s, inquiring the online transaction every 5 seconds, and opening up a section of memory space for storing the inquired online transaction list and the current online transaction number every inquiry.
K plus 1 for the next query.
10. When K is 10, jumping out of the first loop, the system has already made 10 online transaction inquiries within the timeout time (50 seconds), and has recorded the transaction number and transaction list obtained by the 10 inquiries, entering the second loop, the variable of the loop number is represented by J, making the initial value of J be 0, and when J is 0, actually making 11 th inquiry.
11. It is determined whether J is less than 10. The purpose of this step is to jump out of the second cycle when J is greater than or equal to 10.
12. And calling a CICS function to inquire the current online transaction, acquiring the transaction number and the transaction list of the current online transaction, and applying a memory to store the online transaction list and the transaction number according to the transaction number. In particular, the transaction number may be written to the dnum variable, and the transaction list may be placed in the storage area pointed to by the pointer, dtask, i.e., in the pointer array, task [ J ].
13. And entering an internal loop, wherein the loop frequency is dnum, the loop variable is set as I, and the initial value of the I is set as 0. The purpose of the inner loop is to determine whether the same transaction number exists on two online transaction lists (for example, online transaction lists obtained by querying for t 5 seconds and t 55 seconds) with query intervals equal to the timeout time, and at the time of determination, the inner loop queries according to the number of online transactions when the query time is later (t 55 seconds).
14. And judging whether the I is less than the transaction number dnum. The purpose of this step is to jump out of the inner loop when I is greater than or equal to dnun.
15. This step is used to determine one by one whether there are identical transaction numbers on the two online transaction lists with the query interval equal to the timeout time.
16. When step 15 finds that the same transaction number exists in the two online transaction lists, it is further checked whether the same transaction number exists in the monitored transaction list to determine whether the same transaction number is a monitored transaction.
17. If the determination result in step 16 is "yes", it indicates that the transaction corresponding to the same transaction number is still running within the set TIMEOUT period, and it is necessary to clear (PURGE) the long transaction, otherwise, step 18 is entered to continue the query and comparison.
I is increased by 1 for the next decision. The content judged at this time is still whether the same transaction number exists on the two online transaction lists.
19. When I is equal to dnum, the transaction numbers on the two online transaction lists are compared, and the internal loop is skipped. After the two online transaction lists with the query interval equal to the timeout time are judged, the storage space pointed by the pointer array set [ K ] is released, and the memory occupied by the online transaction list with the query time ahead is released.
20. And inquiring the online transactions of the system again according to a preset interval (t is 5 seconds), and dynamically applying for the memory again according to the number of the online transactions.
21. The online transaction list resulting from the query is copied into task [ J ] by memcpy.
22. Delay 5 seconds.
23. And finally, entering the next processing period in the second loop. The purpose of the loop is to query an online transaction every 5 seconds, compare the result of each query with the transaction stored in the pointer array # task [ K ] before, and if the same transaction number is found, the system is considered to have a long transaction, and need to perform PURGE, and at the same time, write back the latest online transaction to the pointer array # task [ K ].
In the embodiment of the present invention, from the development point of view, the technician needs to do the following work: the first is to define the frequency of querying the transaction TRAN running online, which is to temporarily set 5 seconds in the program flow, that is, 5 seconds scan the transaction TRAN and TASK number running at the time, and the second is to set the cycle number, which is defined as 10 times in this embodiment, that is, perform PURGE on long transaction which exceeds 5 × 10 to 50 seconds. The first loop stores the result of each query in the pointer array (K), and after 50 seconds, the result of the second loop query is compared with the result stored in the first loop, namely the 5 th time in the first loop and the 5 th time in the second loop, and when the condition is met, PURGE is performed, and the latest query result is written back to the pointer array (K) so as to be processed in the next cycle. The embodiment of the invention has the advantages of small occupied system resource source by dynamically applying the memory and releasing the last recorded memory in the processing process, and the elimination of the long transaction of the system is realized by the embodiment of the invention. By utilizing the embodiment of the invention, a technician only needs to maintain the transaction list and the overtime parameter information which need to be monitored in the environment file, after the CICS system is started, the background process firstly reads the parameter information in the environment file, and stores the online transaction and the transaction number which are inquired each time in the pointer array, and the transaction and the overtime parameter which need to be monitored are utilized for comparison, thereby realizing the clearing of the long hanging transaction.
Based on the same inventive concept as the method for clearing long transactions of the CICS system shown in fig. 1, the embodiment of the present invention further provides a system for clearing long transactions of the CICS system, which is specifically described in the following embodiments. Since the principle of the system for solving the technical problem is similar to the method shown in fig. 1, the implementation of the system can refer to the implementation of the method shown in fig. 1, and repeated descriptions are omitted.
In another embodiment, the present invention further provides a system for clearing long transactions in a CICS system, which is substantially as shown in fig. 3, and mainly includes: an information acquisition unit 31, an online transaction inquiry unit 32, a comparison unit 33, a first judgment unit 34 and a second judgment unit 35.
The information obtaining unit 31 is configured to obtain a monitored transaction list preset in the CICS system and timeout time corresponding to the monitored transaction list. The online transaction query unit 32 is configured to query the current online transactions of the CICS system at regular time according to a preset interval, and record the number of the current online transactions and the online transaction list obtained by each query. The comparing unit 33 is configured to compare the two online transaction lists with the query time interval equal to the timeout time, and determine whether the same transaction number exists in the two online transaction lists. The first judging unit 34 is configured to judge whether the same transaction number is also on the monitored transaction list when the same transaction number exists in the two online transaction lists. The second judging unit 35 is configured to, when the same transaction number is also on the monitored transaction list, clear the transaction corresponding to the transaction number by using a clearing instruction.
In an embodiment, the system further includes a monitored transaction list setting unit 36, configured to record the transactions to be monitored in the corresponding monitored transaction list according to the timeout time of each transaction. Wherein, the overtime time of the transaction recorded on the same monitoring transaction list is the same.
In an embodiment, the system further includes a memory application unit 37, configured to dynamically apply for a memory according to the current online transaction number when the online transaction query unit periodically queries the current online transaction of the CICS system according to a preset interval, so as to store the current online transaction number and the online transaction list. And the online transaction list records the transaction number of the current online transaction.
In an embodiment, the system further includes a memory releasing unit 38, configured to release the memory occupied by the online transaction list with an earlier query time in the two online transaction lists after the first determining unit determines whether the same transaction number exists in the two online transaction lists.
Generally, the timeout time is usually an integer multiple of the preset interval.
By utilizing the embodiment of the invention, the monitoring parameters can be configured according to the user requirements, the limitation of the middleware product of the CICS system is broken through, the specific transaction needing to be monitored can be flexibly configured, the specific timeout time is appointed for each transaction, the system control during upstream and downstream interaction is realized, and the stable operation of each product is powerfully ensured.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The principle and the implementation mode of the invention are explained by applying specific embodiments in the invention, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for clearing long transactions in a CICS system, the method comprising:
acquiring a monitoring transaction list preset in a CICS system and overtime time corresponding to the monitoring transaction list;
inquiring the current online transaction of the CICS system at regular time according to a preset interval, and recording the current online transaction number and the online transaction list inquired each time;
comparing the two online transaction lists with the query time interval equal to the overtime time, and judging whether the two online transaction lists have the same transaction number or not;
if the same transaction number exists in the two online transaction lists, judging whether the same transaction number is also on the monitoring transaction list;
if the same transaction number is also on the monitored transaction list, the transaction corresponding to the transaction number is cleared by utilizing a clearing instruction.
2. The method for clearing long transactions in a CICS system according to claim 1, wherein said method further comprises:
recording the transaction to be monitored into a corresponding monitored transaction list according to the overtime time of each transaction; wherein, the overtime time of the transaction recorded on the same monitoring transaction list is the same.
3. The method for clearing long transactions of a CICS system according to claim 1, wherein when the transactions currently on-line in the CICS system are inquired periodically at preset intervals, the method further comprises:
dynamically applying for a memory according to the current online transaction number so as to store the current online transaction number and an online transaction list; and the online transaction list records the transaction number of the current online transaction.
4. A method for clearing long transactions in a CICS system according to claim 3, wherein after determining whether the same transaction number exists in both online transaction lists, the method further comprises: and releasing the memory occupied by the online transaction list with the earlier query time in the two online transaction lists.
5. A method for clearing long transactions in a CICS system according to claim 1, wherein the timeout period is an integer multiple of the preset interval.
6. A system for clearing long transactions in a CICS system, the system comprising:
the system comprises an information acquisition unit, a transaction processing unit and a transaction processing unit, wherein the information acquisition unit is used for acquiring a monitoring transaction list preset in a CICS (common integrated circuit chip) system and overtime time corresponding to the monitoring transaction list;
the online transaction query unit is used for regularly querying the current online transactions of the CICS system according to preset intervals and recording the current online transaction number and the online transaction list queried each time;
the comparison unit is used for comparing the two online transaction lists with the query time interval equal to the overtime time and judging whether the same transaction number exists in the two online transaction lists or not;
the first judging unit is used for judging whether the same transaction number is also on the monitoring transaction list when the same transaction number exists in the two online transaction lists;
and the second judgment unit is used for clearing the transaction corresponding to the transaction number by utilizing a clearing instruction when the same transaction number is also on the monitored transaction list.
7. The system for clearing long transactions in a CICS system as claimed in claim 6, further comprising:
the monitoring transaction list setting unit is used for recording the transactions needing to be monitored into the corresponding monitoring transaction list according to the overtime of each transaction; wherein, the overtime time of the transaction recorded on the same monitoring transaction list is the same.
8. The system for clearing long transactions in a CICS system as claimed in claim 6, further comprising:
the memory application unit is used for dynamically applying for a memory according to the current online transaction number when the online transaction query unit regularly queries the current online transaction of the CICS system according to a preset interval so as to store the current online transaction number and an online transaction list; and the online transaction list records the transaction number of the current online transaction.
9. The system for clearing long transactions in a CICS system as claimed in claim 8, further comprising:
and the memory release unit is used for releasing the memory occupied by the online transaction list with the earlier query time in the two online transaction lists after the first judgment unit judges whether the two online transaction lists have the same transaction number.
10. A system for clearing long transactions in a CICS system according to claim 6, wherein said timeout period is an integer multiple of said predetermined interval.
CN201711083086.9A 2017-11-07 2017-11-07 Method and system for eliminating long transactions of CICS (common integrated circuit chip) system Active CN107958414B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711083086.9A CN107958414B (en) 2017-11-07 2017-11-07 Method and system for eliminating long transactions of CICS (common integrated circuit chip) system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711083086.9A CN107958414B (en) 2017-11-07 2017-11-07 Method and system for eliminating long transactions of CICS (common integrated circuit chip) system

Publications (2)

Publication Number Publication Date
CN107958414A CN107958414A (en) 2018-04-24
CN107958414B true CN107958414B (en) 2021-09-21

Family

ID=61963590

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711083086.9A Active CN107958414B (en) 2017-11-07 2017-11-07 Method and system for eliminating long transactions of CICS (common integrated circuit chip) system

Country Status (1)

Country Link
CN (1) CN107958414B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111309548B (en) * 2020-02-03 2024-04-12 中国银联股份有限公司 Timeout monitoring method and device and computer readable storage medium
CN114244729A (en) * 2021-12-01 2022-03-25 中国邮政储蓄银行股份有限公司 Funnel-type timeout control method and device suitable for service arrangement

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1558691A (en) * 2004-01-14 2004-12-29 中兴通讯股份有限公司 Method for timed monitoring of memory database in mobile communication equipment
CN101727648A (en) * 2009-12-01 2010-06-09 中国建设银行股份有限公司 Overtime control method in service system and service system
CN103093342A (en) * 2013-01-11 2013-05-08 北京掌上汇通科技发展有限公司 Online transaction processing platform and transaction processing method thereof
CN105631743A (en) * 2016-03-14 2016-06-01 中国银行股份有限公司 Method and system for ATM transaction real-time traffic control
CN106161140A (en) * 2016-06-28 2016-11-23 中国联合网络通信集团有限公司 Determine method, monitor node and the group system of monitored node duty
CN106533845A (en) * 2016-12-27 2017-03-22 海尔优家智能科技(北京)有限公司 Long-connection state monitoring method and device
CN107168775A (en) * 2016-03-07 2017-09-15 阿里巴巴集团控股有限公司 It is a kind of to hang the method and apparatus that affairs are automatically processed

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8140483B2 (en) * 2007-09-28 2012-03-20 International Business Machines Corporation Transaction log management
CN104679881B (en) * 2015-03-13 2019-03-08 华为技术有限公司 A kind of concurrency control method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1558691A (en) * 2004-01-14 2004-12-29 中兴通讯股份有限公司 Method for timed monitoring of memory database in mobile communication equipment
CN101727648A (en) * 2009-12-01 2010-06-09 中国建设银行股份有限公司 Overtime control method in service system and service system
CN103093342A (en) * 2013-01-11 2013-05-08 北京掌上汇通科技发展有限公司 Online transaction processing platform and transaction processing method thereof
CN107168775A (en) * 2016-03-07 2017-09-15 阿里巴巴集团控股有限公司 It is a kind of to hang the method and apparatus that affairs are automatically processed
CN105631743A (en) * 2016-03-14 2016-06-01 中国银行股份有限公司 Method and system for ATM transaction real-time traffic control
CN106161140A (en) * 2016-06-28 2016-11-23 中国联合网络通信集团有限公司 Determine method, monitor node and the group system of monitored node duty
CN106533845A (en) * 2016-12-27 2017-03-22 海尔优家智能科技(北京)有限公司 Long-connection state monitoring method and device

Also Published As

Publication number Publication date
CN107958414A (en) 2018-04-24

Similar Documents

Publication Publication Date Title
US7698602B2 (en) Systems, methods and computer products for trace capability per work unit
EP2851799B1 (en) Fault tolerant batch processing
TWI267782B (en) Deallocation of computer data in a multithreaded computer
CN112346829B (en) Method and equipment for task scheduling
CN106569891B (en) Method and device for scheduling and executing tasks in storage system
EP2225633B1 (en) Data parallel production and consumption
CN109067841B (en) Service current limiting method, system, server and storage medium based on ZooKeeper
CN107040578A (en) Method of data synchronization, device and system
CN110704438B (en) Method and device for generating bloom filter in blockchain
CN106685894B (en) Risk identification method, device and system
CN112748993A (en) Task execution method and device, storage medium and electronic equipment
EP2761462B1 (en) Method and device for obtaining using-frequency of application program
CN107958414B (en) Method and system for eliminating long transactions of CICS (common integrated circuit chip) system
CN116302708A (en) Data backup method, device, equipment and storage medium based on load balancing
CN111309548A (en) Timeout monitoring method and device and computer readable storage medium
CN113590285A (en) Method, system and equipment for dynamically setting thread pool parameters
CN111078418B (en) Operation synchronization method, device, electronic equipment and computer readable storage medium
CN115934272A (en) Online batch task processing method and device
CN115220887A (en) Processing method of scheduling information, task processing system, processor and electronic equipment
CN115499493A (en) Asynchronous transaction processing method and device, storage medium and computer equipment
US10102052B2 (en) Dumping resources
CN114327835A (en) Distributed task scheduling method and device, processor and electronic equipment
CN114327259A (en) Flash memory channel controller operation method, device, equipment and storage medium
CN111767125A (en) Task execution method and device, electronic equipment and storage medium
CN113918299A (en) Processing method and system for batch operation

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