CN107544849A - A kind of WEB server concurrency management method and system - Google Patents

A kind of WEB server concurrency management method and system Download PDF

Info

Publication number
CN107544849A
CN107544849A CN201710940014.5A CN201710940014A CN107544849A CN 107544849 A CN107544849 A CN 107544849A CN 201710940014 A CN201710940014 A CN 201710940014A CN 107544849 A CN107544849 A CN 107544849A
Authority
CN
China
Prior art keywords
request
threshold value
magnitude threshold
present count
concurrently
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
CN201710940014.5A
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.)
Beijing Tianyuan Creative Technology Ltd
Original Assignee
Beijing Tianyuan Creative Technology 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 Beijing Tianyuan Creative Technology Ltd filed Critical Beijing Tianyuan Creative Technology Ltd
Priority to CN201710940014.5A priority Critical patent/CN107544849A/en
Publication of CN107544849A publication Critical patent/CN107544849A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the present invention provides a kind of WEB server concurrency management method and system.Methods described includes:The concurrently inspection request that receiving terminal foreground is sent;Inquire about and obtain the total request record number that there is currently in concurrency management list;Concurrency management is carried out according to total request record number and present count magnitude threshold value, obtains the response results for concurrently checking request, and the response results are back to the terminal foreground.The system is used to perform methods described.The embodiment of the present invention according to total request by recording number and present count magnitude threshold value progress concurrency management, obtain the response results for concurrently checking request, and response results are back to terminal foreground, while concurrent request to greatest extent is guaranteed, the quantity of concurrent request is effectively controlled, improves the execution efficiency of WEB server.

Description

A kind of WEB server concurrency management method and system
Technical field
The present embodiments relate to field of computer technology, more particularly to a kind of WEB server concurrency management method and it is System.
Background technology
With the development of computer technology, developer is interested to be obtained for user by disposing website on network Information, therefore, thousands of website are arisen at the historic moment.
One small-sized website, such as personal website, simplest HTML (HyperText can be used Markup Language, abbreviation html) static page is achieved that, coordinate some pictures to reach landscaping effect, all pages It is stored under a catalogue, requirement of such website to system architecture, performance is all very simple, with Internet service not Disconnected abundant, the related technology in website has been sub-divided into very thin every aspect, particularly with large-scale net by development these years For standing, used technology is even more that to be related to face very wide, from hardware to software, programming language, database, WebServer, anti- The every field such as wall with flues have very high requirement, have not been that original simple html static websites can compare.It is large-scale Website, such as portal website.Being accessed in face of a large number of users, in terms of high concurrent request, basic solution concentrates on so Several links:Held using high performance server, high performance database, efficient programming language, also high performance Web Device.But except these aspects, cannot also solve high capacity and the caused service of high concurrent that large-scale website faces at all Device performance issue, the problem of being all very difficult to handle.
For inquiry complicated in system, export, cumbersome service logic these operations very big to system resources consumption, because This, how system carries out limiting concurrent number, is nowadays urgently to improve WEB server, the execution efficiency of database server The problem of solution.
The content of the invention
The problem of existing for prior art, the embodiment of the present invention provide a kind of WEB server concurrency management method and are System.
In a first aspect, the embodiment of the present invention provides a kind of WEB server concurrency management method, including:
The concurrently inspection request that receiving terminal foreground is sent;
Inquire about and obtain the total request record number that there is currently in concurrency management list;
Concurrency management is carried out according to total request record number and present count magnitude threshold value, acquisition is described concurrently to check request Response results, and the response results are back to the terminal foreground.
Second aspect, the embodiment of the present invention provide a kind of WEB server concurrency management system, including:
Receiving module, the concurrently inspection request sent for receiving terminal foreground;
Acquisition module, number is recorded for inquiring about and obtaining the total request that there is currently in concurrency management list;
Management module, for carrying out concurrency management according to total request record number and present count magnitude threshold value, described in acquisition The response results of request are concurrently checked, and the response results are back to the terminal foreground.
The third aspect, the embodiment of the present invention provide a kind of electronic equipment, including:Processor, memory and bus, wherein,
The processor and the memory complete mutual communication by the bus;
The memory storage has and by the programmed instruction of the computing device, the processor described program can be called to refer to Order is able to carry out the method and step of first aspect.
Fourth aspect, the embodiment of the present invention provide a kind of non-transient computer readable storage medium storing program for executing, including:
The non-transient computer readable storage medium storing program for executing stores computer instruction, and the computer instruction makes the computer Perform the method and step of first aspect.
A kind of WEB server concurrency management method and system provided in an embodiment of the present invention, by being recorded according to total request Number and present count magnitude threshold value carry out concurrency management, obtain the response results for concurrently checking request, and response results are back to Terminal foreground, while concurrent request to greatest extent is guaranteed, the quantity of concurrent request is effectively controlled, is improved The execution efficiency of WEB server.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are this hairs Some bright embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can be with root Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of WEB server concurrency management method flow schematic diagram provided in an embodiment of the present invention;
Fig. 2 records schematic flow sheet for insertion provided in an embodiment of the present invention;
Fig. 3 concurrently cancels operating process schematic diagram to be provided in an embodiment of the present invention;
Fig. 4 is a kind of WEB server concurrency management method flow schematic diagram that another embodiment of the present invention provides;
Fig. 5 is a kind of WEB server concurrency management system structure diagram provided in an embodiment of the present invention;
Fig. 6 is electronic equipment entity structure schematic diagram provided in an embodiment of the present invention.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is Part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Fig. 1 is a kind of WEB server concurrency management method flow schematic diagram provided in an embodiment of the present invention, as shown in figure 1, Methods described, including:
Step 101:The concurrently inspection request that receiving terminal foreground is sent;
Specifically, terminal foreground is asked before inquiry export request is sent to system, it is necessary to first send and concurrently check, this When, the concurrently inspection that system receiving terminal foreground is sent is asked.Wherein, the parameter that concurrently checking request includes has browser meeting Words mark (webSessionID), page index (pageIndex), Tab marks (TabID) and timestamp (timeStamp), also Other specification can be included, the embodiment of the present invention is not specifically limited to this.It should be noted that terminal foreground is sent to system It is to record number for the request for making system queries be currently executing and be lined up concurrently to check request, to weigh current system Load capacity, so as to decide whether allow terminal foreground to system send inquiry export request.
Step 102:Inquire about and obtain the total request record number that there is currently in concurrency management list;
Specifically, system inquires about concurrency management list, concurrently after the concurrently inspection request of terminal foreground transmission is received A plurality of request record is stored with managing listings, therefore, can get and be stored in all request records in concurrency management list Corresponding total request record number, it should be noted that total request record number is included in the request record being performed Quantity and be waited for request record quantity.
Step 103:Concurrency management is carried out according to total request record number and present count magnitude threshold value, obtained described concurrent The response results of request are checked, and the response results are back to the terminal foreground.
Specifically, after total request record number is got, number is recorded according to total request and present count magnitude threshold value is carried out Concurrency management, so as to concurrently be checked the response results of request, it should be noted that the response results include it is executable, etc. Treat with it is busy.After getting response results, response results are back to terminal foreground, to cause terminal foreground receiving response As a result after, the operation according to corresponding to performing the response results.
The embodiment of the present invention is obtained concurrent by recording number and present count magnitude threshold value progress concurrency management according to total request The response results of request are checked, and response results are back to terminal foreground, are guaranteeing concurrent request to greatest extent Meanwhile the quantity of concurrent request is effectively controlled, improve the execution efficiency of WEB server.
On the basis of above-described embodiment, the present count magnitude threshold value is pre- including the first present count magnitude threshold value and second If order of magnitude threshold value, the first present count magnitude threshold value is less than the second present count magnitude threshold value, described according to described total Request record number and present count magnitude threshold value carry out concurrency management, obtain the response results for concurrently checking request, including:
If judgement knows that total request record number is less than the first present count magnitude threshold value, described concurrently to check request Response results are executable;
If judgement knows that total request record number is more than or equal to the first present count magnitude threshold value, and is less than the second quantity Level threshold value, then the response results for concurrently checking request are wait;
If judgement knows that total request record number is more than or equal to the second present count magnitude threshold value, described concurrently check please The response results asked are busy.
Specifically, present count magnitude threshold value can be divided into the first present count magnitude threshold value and the second present count magnitude threshold Value, and the first present count magnitude threshold value is less than the second present count magnitude threshold value, it should be noted that can be by present count magnitude threshold Value is divided into multiple grades, and contrast of the embodiment of the present invention is not specifically limited, it is to be understood that can be by the first predetermined number Second present count magnitude threshold value is subtracted the first present count magnitude threshold by level threshold value as the quantity that record is asked in executable queue Value is as the quantity that record is asked in waiting list.For example, the first present count magnitude threshold value is 20, the second present count magnitude threshold value For 50, if it is determined that learning that total request record number is more than 0, and less than 20, then illustrate executable in current concurrency management list Queue also without completely, therefore, this is concurrently checked the response results of request are arranged to executable, and is returned and can be held to terminal foreground Capable response results.If total request record number is more than or equal to 20, and less than 50, then illustrating can in current concurrency management list It is full to perform queue, but waiting list also has vacant position, at this point it is possible to which this concurrently being checked to, the response results of request are set To wait, and to the response results that terminal foreground returns to waiting for.If total request record number is more than 50, illustrate currently concurrently to manage Executable queue and waiting list in reason list is full, now, the response results for concurrently checking request is arranged into busy, And busy accordingly result is returned to terminal foreground.
The embodiment of the present invention is by according to total number of request and present count magnitude threshold value in current concurrency management list, judging to work as Preceding system load situation, response results corresponding to acquisition, on the premise of the maximum concurrent quantity of WEB server is ensured, effectively WEB server is reduced because load excessive causes the risk for the machine of delaying.
On the basis of above-described embodiment, it is described concurrently check request include browser session mark, Tab page iden-tities, Page index and timestamp, accordingly, methods described, in addition to:
If judging to know that the response results are executable, the browser meeting corresponding to request is concurrently checked by described Words mark, the Tab page iden-tities, the page index and the timestamp form a record and are inserted into the concurrency management In list.
Specifically, concurrently check request in required parameter mainly include browser session mark (webSessionID), Tab page iden-tities (TabID), page index (pageIndex) and timestamp (timeStamp), it should be noted that can be with Including other required parameters, the embodiment of the present invention is not specifically limited to this.Fig. 2 records for insertion provided in an embodiment of the present invention Schematic flow sheet, as shown in Fig. 2 step 201:Concurrency management performs inspection situation;When system is according in concurrency management list Total request record number and present count magnitude threshold value carry out concurrency management and perform inspection;Step 202:Executable state;If always please Ask record number to be more than 0 and be less than the first present count magnitude threshold value, then illustrate concurrently to check accordingly result corresponding to request for that can hold OK, and by this executable response results terminal foreground is returned to, the accordingly result that terminal foreground judges to receive is executable When, send inquiry export request to concurrency management system;Step 203:Perform the operation of page complex query;Concurrency management system exists After the inquiry export request for receiving the transmission of terminal foreground, the export operation of page complex query is performed;Step 204:Concurrency management Table is safeguarded;, it is necessary to database connection be obtained, after the completion of database connection is carried out, by simultaneously before SQL important every time is performed Send out management service and register an operation note into concurrency management list, so as to realize the maintenance to concurrency management list.Wherein, The parameter for needing to safeguard comprises at least operation mark (operID), database connection identifier (sqlSessionID), hour of log-on (operRegrDate) state (operStatus) and instance identification (jbossInstanceID), are performed.Terminate when SQL is performed, Time started is performed according to operation mark updating maintenance literary name section, performs end time and mode of operation.Step 205:Record is worked as Preceding session performs state;Increase the execution state of current sessions in concurrency management list as a record request.Wherein simultaneously Mainly include in hair managing listings:OperID, operType, sqlSessionID, operRegrDate, operExecDate, OperEndDate, operStatus, jbossInstanceID.The implication of each field is as follows:
operID:Operation mark, at most by browser session Id+ page index+browser tab page label Id+ timestamps+ SqlHash is formed.(page index is that unique ID of different browsers window is distinguished under same session).
operType:Operation note rank, it is divided into two-stage, Query ranks, SQL ranks.Wherein, the operation of Query ranks Record Id is also wrapped by browser session Id+ page index+browser tab page label Id+ timestamps, the operation note Id of SQL ranks Include sqlHash (by one section of Hashcode for performing sql productions).
sqlSessionID:This sql performs the database connection ID used.It can be obtained by following SQL.select Sid | | ', ' | | serial#as id from v $ session where audsid=userenv (' sessionid ')
operRegrDate:Hour of log-on before Query/SQL execution.It is accurate to millisecond.Recorded during operation registration.
operExecDate:Query/SQL performs the time started, and Query records may be due in waiting list, leading Cause is different from operation execution hour of log-on, is recorded for SQL, typically identical with operation execution hour of log-on.
operEndDate:SQL performs end time, Query end times.It is accurate to millisecond.Note is updated at the end of operation Record.Include abnormal ending situation.
operStatus:State has Init, Wait, Exec, NormalEnd, ExceptionEnd.Represent ready respectively, Wait, perform, normal termination, abnormal end (comprising being fallen by kill).
jbossInstanceID:JBoss example IDs.
On the basis of above-described embodiment, methods described, in addition to:
According to predetermined period in the concurrency management list it is processed into record request data delete processing.
Specifically, concurrency management list can be stored in database, system settings data storehouse is according to predetermined period pair The record request data that completion has been handled in concurrency management list carries out delete processing.Such as:Can be with every 1440 minutes (i.e. 24 Individual hour) clear up once (parameter is configurable 1440 minutes), unit minute, will more than the completed record outside setup time It is deleted.Mitigate the pressure of data storage in database with this, there is provided the speed of service of system.
On the basis of above-described embodiment, methods described, in addition to:
The cancellation operating process request that the terminal foreground is sent is received, the cancellation operating process request includes Tab pages Face identifies;
The inquiry export operation according to corresponding to obtaining the Tab page iden-tities, and terminate the inquiry export operation.
Specifically, when terminal foreground close current schedules bars, close the Tab pages, close browser when or other are unknown different Often (as overtime without response, the time can be configured to 5 minutes) etc., when there is above-mentioned special screne, terminal foreground is sent to system Cancel operating process request, cancellation operating process request includes Tab page iden-tities, and system obtains according to Tab page iden-tities Corresponding inquiry export operation, and the session processes of correlation are killed immediately, and it is abnormal results state to set operation.Fig. 3 is It is provided in an embodiment of the present invention concurrently to cancel operating process schematic diagram, as shown in figure 3, including:Step 301:Terminal foreground is closed Progress bar/closing browser Tab pages in loading;When user closes progress bar/closing browser Tab pages of loading, Terminal foreground can monitor This move.Step 302:Initiate to cancel operating process;If user close current schedules bar or The Tab pages, then terminal foreground is sent by the callback method of component to system cancels operating process request;If user closes When the browser Tab pages or browser exit, terminal foreground sends cancellation operating process by web callback method to system please Ask, wherein, cancelling operating process includes Tab page iden-tities;Step 303:According to Tab page iden-tity completion parameters;System Action layers can carry out parameter verification/completion according to Tab page iden-tities, be obtained after completion complete included in concurrency management list Portion or partial parameters;Step 304:Terminate executory SQL Session;If user closes current schedules bar or Tab pages Face, then pass through browser session Id+ browsers TAB tabs Id or browser session Id+ browser TAB tab Id+ timestamps Ongoing Query operations and SQL operations are positioned, and all SQL execution is terminated by SQLSession.If user closes When browser tab page or browser exit, all ongoing Query operations are positioned by browser session Id and SQL is grasped Make, and all SQL execution is terminated by SQLSession.
The cancellation operating process that the embodiment of the present invention is sent by receiving terminal foreground is asked, and according to cancellation operating process Request terminates corresponding process, so as to alleviate the burden of system, improves system running speed.
A kind of WEB server concurrency management method flow schematic diagram that Fig. 4 provides for another embodiment of the present invention, such as Fig. 4 It is shown, methods described, including:
Step 401:Operating user interface;User is operated by the operation interface on terminal foreground.
Step 402:Whether concurrency management container is included;Whether included by the request of terminal foreground monitoring user operation Into concurrency management list, 403 are performed if in concurrency management list, otherwise performs 406.
Step 403:Parameter completion;Terminal foreground sends concurrent inspection operation to system and asked, and is carried out in Action layers Parameter completion.
Step 404:Inquiry concurrently limits;The total request operand inquired about in current concurrency management list;If total request It is executable state when the order of magnitude of operand is less than 20 and is more than 0, performs step 406.Total request operand is less than more than 20 50 be wait state, performs step 407.Total request operand is busy condition more than 50, performs step 405.
Step 405:Response results are busy;Concurrently check that management returns to the busy response knot of system based on step 404 Fruit, and prompt user to try again later, one Timer of terminal foreground initiation, (time can be according to actual conditions after waiting 1 minute Configuration), re-execute step 403.
Step 406:Response results are executable;Concurrently check that management performs interface based on step 404, returns to user circle Face step 401, and the inquiry export request that receiving terminal foreground is sent.
Step 407:Response results are wait;Concurrently check that management waits interface based on step 404, wait state is fed back to Terminal foreground.
The embodiment of the present invention is obtained concurrent by recording number and present count magnitude threshold value progress concurrency management according to total request The response results of request are checked, and response results are back to terminal foreground, are guaranteeing concurrent request to greatest extent Meanwhile the quantity of concurrent request is effectively controlled, improve the execution efficiency of WEB server.
Fig. 5 is a kind of WEB server concurrency management system structure diagram provided in an embodiment of the present invention, as shown in figure 5, The system, including:Receiving module 501, acquisition module 502 and management module 503, wherein:
Receiving module 501 is used for the concurrently inspection request that receiving terminal foreground is sent;Acquisition module 502 is used to inquire about and obtain The total request that there is currently in concurrency management list is taken to record number;Management module 503 is for according to total request record number and in advance If order of magnitude threshold value carries out concurrency management, the response results for concurrently checking request are obtained, and the response results are returned To the terminal foreground.
Specifically, terminal foreground is asked before inquiry export request is sent to system, it is necessary to first send and concurrently check, this When, the concurrently inspection that the receiving terminal foreground of receiving module 501 is sent is asked.Wherein, the parameter that concurrently checking request includes has Browser session mark (webSessionID), page index (pageIndex), Tab marks (TabID) and timestamp (timeStamp) other specification can also, be included, the embodiment of the present invention is not specifically limited to this.It should be noted that terminal Foreground is sent to system concurrently checks that request is to record number for the request for making system queries be currently executing and be lined up, To weigh the load capacity of current system, so as to decide whether to allow terminal foreground to send inquiry export request to system.Receive mould For block 501 after the concurrently inspection request of terminal foreground transmission is received, acquisition module 502 inquires about concurrency management list, concurrently manages A plurality of request record is stored with reason list, therefore, can get and be stored in all request records pair in concurrency management list The total request record number answered, it should be noted that total request record number is included in the request record being performed The quantity of quantity and the request record being waited for.After total request record number is got, management module 503 is according to total Request record number and present count magnitude threshold value carry out concurrency management, so as to concurrently be checked the response results of request, should say It is bright, the response results include it is executable, wait and busy.After getting response results, response results are back to terminal Foreground, to cause terminal foreground after response results are received, the operation according to corresponding to performing the response results.
The embodiment of system provided by the invention specifically can be used for the handling process for performing above-mentioned each method embodiment, its Function will not be repeated here, and be referred to the detailed description of above method embodiment.
The embodiment of the present invention is obtained concurrent by recording number and present count magnitude threshold value progress concurrency management according to total request The response results of request are checked, and response results are back to terminal foreground, are guaranteeing concurrent request to greatest extent Meanwhile the quantity of concurrent request is effectively controlled, improve the execution efficiency of WEB server.
On the basis of above-described embodiment, the present count magnitude threshold value is pre- including the first present count magnitude threshold value and second If order of magnitude threshold value, the first present count magnitude threshold value is less than the second present count magnitude threshold value, the management module, tool Body is used for:
If judgement knows that total request record number is less than the first present count magnitude threshold value and more than 0, described concurrent The response results for checking request are executable;
If judgement knows that total request record number is more than or equal to the first present count magnitude threshold value, and is less than the second quantity Level threshold value, then the response results for concurrently checking request are wait;
If judgement knows that total request record number is more than or equal to the second present count magnitude threshold value, described concurrently check please The response results asked are busy.
Specifically, present count magnitude threshold value can be divided into the first present count magnitude threshold value and the second present count magnitude threshold Value, and the first present count magnitude threshold value is less than the second present count magnitude threshold value, it should be noted that can be by present count magnitude threshold Value is divided into multiple grades, and contrast of the embodiment of the present invention is not specifically limited.If management module judges to know total request record number Less than the first present count magnitude threshold value and more than 0, then the response results for concurrently checking request are executable;If judgement is known total Request record number is more than or equal to the first present count magnitude threshold value, and is less than the second order of magnitude threshold value, then concurrently checks request Response results are wait;If judgement knows that total request record number is more than or equal to the second present count magnitude threshold value, concurrently checking please The response results asked are busy.
The embodiment of the present invention is by according to total number of request and present count magnitude threshold value in current concurrency management list, judging to work as Preceding system load situation, response results corresponding to acquisition, on the premise of the maximum concurrent quantity of WEB server is ensured, effectively WEB server is reduced because load excessive causes the risk for the machine of delaying.
Fig. 6 is electronic equipment entity structure schematic diagram provided in an embodiment of the present invention, as shown in fig. 6, the electronic equipment, Including:Processor (processor) 601, memory (memory) 602 and bus 603;Wherein,
The processor 601 and memory 602 complete mutual communication by the bus 603;
The processor 601 is used to call the programmed instruction in the memory 602, to perform above-mentioned each method embodiment The method provided, such as including:The concurrently inspection request that receiving terminal foreground is sent;Inquire about and obtain in concurrency management list The total request record number that there is currently;Concurrency management is carried out according to total request record number and present count magnitude threshold value, obtained The response results for concurrently checking request, and the response results are back to the terminal foreground.
The present embodiment discloses a kind of computer program product, and the computer program product includes being stored in non-transient calculating Computer program on machine readable storage medium storing program for executing, the computer program include programmed instruction, when described program instruction is calculated When machine performs, computer is able to carry out the method that above-mentioned each method embodiment is provided, such as including:Receiving terminal foreground is sent Concurrently inspection request;Inquire about and obtain the total request record number that there is currently in concurrency management list;According to total request Record number and present count magnitude threshold value and carry out concurrency management, obtain the response results for concurrently checking request, and by the sound Should result be back to the terminal foreground.
The present embodiment provides a kind of non-transient computer readable storage medium storing program for executing, the non-transient computer readable storage medium storing program for executing Computer instruction is stored, the computer instruction makes the computer perform the method that above-mentioned each method embodiment is provided, example Such as include:The concurrently inspection request that receiving terminal foreground is sent;Inquire about and obtain there is currently in concurrency management list always please Seek record number;Concurrency management is carried out according to total request record number and present count magnitude threshold value, obtaining described concurrently check please The response results asked, and the response results are back to the terminal foreground.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through Programmed instruction related hardware is completed, and foregoing program can be stored in a computer read/write memory medium, the program Upon execution, the step of execution includes above method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or light Disk etc. is various can be with the medium of store program codes.
The embodiments such as system described above are only schematical, wherein the unit illustrated as separating component It can be or may not be physically separate, can be as the part that unit is shown or may not be physics list Member, you can with positioned at a place, or can also be distributed on multiple NEs.It can be selected according to the actual needs In some or all of module realize the purpose of this embodiment scheme.Those of ordinary skill in the art are not paying creativeness Work in the case of, you can to understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can Realized by the mode of software plus required general hardware platform, naturally it is also possible to pass through hardware.Based on such understanding, on The part that technical scheme substantially in other words contributes to prior art is stated to embody in the form of software product, should Computer software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, including some fingers Make to cause a computer equipment (can be personal computer, server, or network equipment etc.) to perform each implementation Method described in some parts of example or embodiment.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used To be modified to the technical scheme described in foregoing embodiments, or equivalent substitution is carried out to which part technical characteristic; And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and Scope.

Claims (10)

  1. A kind of 1. WEB server concurrency management method, it is characterised in that including:
    The concurrently inspection request that receiving terminal foreground is sent;
    Inquire about and obtain the total request record number that there is currently in concurrency management list;
    Concurrency management is carried out according to total request record number and present count magnitude threshold value, obtains the sound for concurrently checking request Result is answered, and the response results are back to the terminal foreground.
  2. 2. according to the method for claim 1, it is characterised in that the present count magnitude threshold value includes the first present count magnitude Threshold value and the second present count magnitude threshold value, the first present count magnitude threshold value are less than the second present count magnitude threshold value, institute State and concurrency management is carried out according to total request record number and present count magnitude threshold value, obtain the response for concurrently checking request As a result, including:
    If judgement knows that total request record number is less than the first present count magnitude threshold value and more than 0, described concurrently to check The response results of request are executable;
    If judgement knows that total request record number is more than or equal to the first present count magnitude threshold value, and is less than the second order of magnitude threshold Value, then the response results for concurrently checking request are wait;
    If judgement knows that total request record number is more than or equal to the second present count magnitude threshold value, described concurrently to check request Response results are busy.
  3. 3. according to the method for claim 2, it is characterised in that it is described concurrently check request include browser session identify, Tab page iden-tities, page index and timestamp, accordingly, methods described, in addition to:
    If judging to know that the response results are executable, the browser session mark corresponding to request is concurrently checked by described Knowledge, the Tab page iden-tities, the page index and the timestamp form a record and are inserted into the concurrency management list In.
  4. 4. according to the method for claim 1, it is characterised in that methods described, in addition to:
    According to predetermined period in the concurrency management list it is processed into record request data delete processing.
  5. 5. according to the method described in any one of claim 1, it is characterised in that methods described, in addition to:
    The cancellation operating process request that the terminal foreground is sent is received, the cancellation operating process request includes Tab page marks Know;
    The inquiry export operation according to corresponding to obtaining the Tab page iden-tities, and terminate the inquiry export operation.
  6. 6. according to the method described in claim any one of 1-5, it is characterised in that the concurrency management list, including:Operation mark Knowledge, operation note rank, database connection identifier, hour of log-on, perform the time started, perform the end time, perform state and Instance identification.
  7. A kind of 7. WEB server concurrency management system, it is characterised in that including:
    Receiving module, the concurrently inspection request sent for receiving terminal foreground;
    Acquisition module, number is recorded for inquiring about and obtaining the total request that there is currently in concurrency management list;
    Management module, for carrying out concurrency management according to total request record number and present count magnitude threshold value, obtain described concurrent The response results of request are checked, and the response results are back to the terminal foreground.
  8. 8. system according to claim 7, it is characterised in that the present count magnitude threshold value includes the first present count magnitude Threshold value and the second present count magnitude threshold value, the first present count magnitude threshold value are less than the second present count magnitude threshold value, institute Management module is stated, is specifically used for:
    If judgement knows that total request record number is less than the first present count magnitude threshold value and more than 0, described concurrently to check The response results of request are executable;
    If judgement knows that total request record number is more than or equal to the first present count magnitude threshold value, and is less than the second order of magnitude threshold Value, then the response results for concurrently checking request are wait;
    If judgement knows that total request record number is more than or equal to the second present count magnitude threshold value, described concurrently to check request Response results are busy.
  9. 9. a kind of electronic equipment, it is characterised in that including:Processor, memory and bus, wherein,
    The processor and the memory complete mutual communication by the bus;
    The memory storage has can be by the programmed instruction of the computing device, and the processor calls described program instruction energy Enough perform the method as described in claim any one of 1-6.
  10. 10. a kind of non-transient computer readable storage medium storing program for executing, it is characterised in that the non-transient computer readable storage medium storing program for executing is deposited Computer instruction is stored up, the computer instruction makes the computer perform the method as described in claim any one of 1-6.
CN201710940014.5A 2017-09-30 2017-09-30 A kind of WEB server concurrency management method and system Pending CN107544849A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710940014.5A CN107544849A (en) 2017-09-30 2017-09-30 A kind of WEB server concurrency management method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710940014.5A CN107544849A (en) 2017-09-30 2017-09-30 A kind of WEB server concurrency management method and system

Publications (1)

Publication Number Publication Date
CN107544849A true CN107544849A (en) 2018-01-05

Family

ID=60967695

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710940014.5A Pending CN107544849A (en) 2017-09-30 2017-09-30 A kind of WEB server concurrency management method and system

Country Status (1)

Country Link
CN (1) CN107544849A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108629961A (en) * 2018-05-11 2018-10-09 广州极飞科技有限公司 Equipment inspection method, equipment check device, remote controler and unmanned plane
CN109063037A (en) * 2018-07-17 2018-12-21 叶舒婷 A kind of querying method, service equipment, terminal device and computer readable storage medium
CN109104336A (en) * 2018-09-27 2018-12-28 平安普惠企业管理有限公司 Service request processing method, device, computer equipment and storage medium
CN109976920A (en) * 2019-02-20 2019-07-05 深圳点猫科技有限公司 A kind of implementation method and device of the concurrent type frog control for educating operating system
CN110377622A (en) * 2019-06-19 2019-10-25 深圳新度博望科技有限公司 Data capture method, data retrieval method and request responding method
CN110401697A (en) * 2019-06-26 2019-11-01 苏州浪潮智能科技有限公司 A kind of method, system and the equipment of concurrent processing HTTP request
CN113852663A (en) * 2021-08-18 2021-12-28 北京达佳互联信息技术有限公司 Network request processing method and device and network request processing system
CN115037802A (en) * 2022-06-02 2022-09-09 北京百度网讯科技有限公司 Request processing method and device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101192228A (en) * 2006-12-01 2008-06-04 阿里巴巴公司 Database interactive processing method and system
CN102024008A (en) * 2009-09-09 2011-04-20 浙江省电力公司 Limitation method of Web server concurrent number
US20130013744A1 (en) * 2007-07-16 2013-01-10 International Business Machines Corporation Method, system and program product for managing download requests received to download files from a server
CN104408088A (en) * 2014-11-11 2015-03-11 北京奇虎科技有限公司 Control method and device for concurrent requests
CN104461710A (en) * 2014-12-12 2015-03-25 北京国双科技有限公司 Method and device for processing tasks
CN106095775A (en) * 2016-05-24 2016-11-09 中国银行股份有限公司 A kind of method and system realizing data query or derivation
CN106201671A (en) * 2015-04-29 2016-12-07 北大方正集团有限公司 Method for scheduling task and device in one cluster deployed environment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101192228A (en) * 2006-12-01 2008-06-04 阿里巴巴公司 Database interactive processing method and system
US20130013744A1 (en) * 2007-07-16 2013-01-10 International Business Machines Corporation Method, system and program product for managing download requests received to download files from a server
CN102024008A (en) * 2009-09-09 2011-04-20 浙江省电力公司 Limitation method of Web server concurrent number
CN104408088A (en) * 2014-11-11 2015-03-11 北京奇虎科技有限公司 Control method and device for concurrent requests
CN104461710A (en) * 2014-12-12 2015-03-25 北京国双科技有限公司 Method and device for processing tasks
CN106201671A (en) * 2015-04-29 2016-12-07 北大方正集团有限公司 Method for scheduling task and device in one cluster deployed environment
CN106095775A (en) * 2016-05-24 2016-11-09 中国银行股份有限公司 A kind of method and system realizing data query or derivation

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108629961A (en) * 2018-05-11 2018-10-09 广州极飞科技有限公司 Equipment inspection method, equipment check device, remote controler and unmanned plane
CN109063037A (en) * 2018-07-17 2018-12-21 叶舒婷 A kind of querying method, service equipment, terminal device and computer readable storage medium
CN109104336A (en) * 2018-09-27 2018-12-28 平安普惠企业管理有限公司 Service request processing method, device, computer equipment and storage medium
CN109976920A (en) * 2019-02-20 2019-07-05 深圳点猫科技有限公司 A kind of implementation method and device of the concurrent type frog control for educating operating system
CN110377622A (en) * 2019-06-19 2019-10-25 深圳新度博望科技有限公司 Data capture method, data retrieval method and request responding method
CN110401697A (en) * 2019-06-26 2019-11-01 苏州浪潮智能科技有限公司 A kind of method, system and the equipment of concurrent processing HTTP request
CN113852663A (en) * 2021-08-18 2021-12-28 北京达佳互联信息技术有限公司 Network request processing method and device and network request processing system
CN115037802A (en) * 2022-06-02 2022-09-09 北京百度网讯科技有限公司 Request processing method and device, electronic equipment and storage medium
CN115037802B (en) * 2022-06-02 2024-03-08 北京百度网讯科技有限公司 Request processing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107544849A (en) A kind of WEB server concurrency management method and system
CN107665234A (en) Method for processing business, device, server and storage medium
CN105095970B (en) The execution method and system of third-party application
CN110175154A (en) A kind of processing method of log recording, server and storage medium
CN105069163B (en) Network request treating method and apparatus
CN111835790B (en) Risk identification method, device and system
CN107273194A (en) Task executing method and terminal device
CN108616668B (en) Method for monitoring dialing task, electronic device and computer readable storage medium
CN104683181B (en) A kind of method for monitoring performance, equipment and system
CN109359019A (en) Application program capacity monitoring method, device, electronic equipment and storage medium
CN107688626A (en) Slow inquiry log processing method, device and electronic equipment
CN107168813A (en) Task processing method and system
US20130173581A1 (en) Scenario-based crawling
CN109446441A (en) A kind of credible distributed capture storage system of general Web Community
CN111026947B (en) Crawler method and embedded crawler implementation method based on browser
US9405786B2 (en) System and method for database flow management
CN105760283B (en) A kind of log-output method and device
CN104657355B (en) A kind of concurrent grasping means of webpage and system
CN110109970A (en) A kind of data query processing method and processing device
CN108062224A (en) Data read-write method, device and computing device based on file handle
WO2020177495A1 (en) Database connection management method and apparatus, and device
CN110149356A (en) Method and device is uniformly processed in a kind of network request abnormality
CN108255704A (en) A kind of script calls the exception response method and its terminal of event
CN108121514A (en) Metamessage update method, device, computing device and computer storage media
WO2019134084A1 (en) Code execution method and apparatus, terminal device, and computer-readable 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180105