CN110209548A - Service control method, system, electronic equipment and computer readable storage medium - Google Patents
Service control method, system, electronic equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN110209548A CN110209548A CN201810354466.XA CN201810354466A CN110209548A CN 110209548 A CN110209548 A CN 110209548A CN 201810354466 A CN201810354466 A CN 201810354466A CN 110209548 A CN110209548 A CN 110209548A
- Authority
- CN
- China
- Prior art keywords
- electronic equipment
- service
- memory
- target process
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0706—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
- G06F11/0727—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a storage system, e.g. in a DASD or network based storage system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3037—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a memory, e.g. virtual memory, cache
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Quality & Reliability (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a kind of service control methods, it is related to data processing field, process including process response is completed in monitoring service, when monitoring in the process that process response is completed, there are when target process, target end process, the memory footprint of target process is more than the memory of target process can occupied space threshold value.The invention also discloses a kind of system, electronic equipment and computer readable storage medium, the problem of transmission of data caused by the service of restarting is lost, user's request is aborted can solve.
Description
Technical field
The present invention relates to data processing field more particularly to a kind of service control method, system, electronic equipment and computers
Readable storage medium storing program for executing.
Background technique
In the operational process of service, RAM leakage phenomenon can be generated for various reasons.RAM leakage phenomenon refers to clothes
Heap memory the phenomenon that program is not discharged or can not be discharged for some reason that oneself dynamically distributes in business.This phenomenon, which will cause, is
System memory is wasted, and leads to slow even system crash etc. the serious consequences of program operation speed.
In order to reduce the generation of RAM leakage phenomenon, presently, there are a kind of service control method, the service control method is logical
Cross monitoring service memory footprint, if the service memory headroom be greater than preset memory can occupied space threshold value, restart
The service, to discharge the occupied heap memory of the service.
However, since service will interrupt service before completing to restart, above-mentioned service control method is easy to cause
Data transmission is lost, user's request is aborted.
Summary of the invention
The present invention provides a kind of service control method, system, electronic equipment and computer readable storage medium, can solve
The problem of transmission of data caused by the service of restarting is lost, user's request is aborted.
On the one hand the embodiment of the present invention provides a kind of service control method, comprising:
The process of process response is completed in monitoring service;
When monitoring in the process that process response is completed, there are when target process, terminate the target process, institute
The memory footprint for stating target process can occupied space threshold value more than the memory of the target process.
Second aspect of the present invention provides a kind of electronic equipment, comprising:
Monitoring module, for the process of process response to be completed in monitoring service;
Processing module, for when the monitoring module monitor in the process that process response is completed there are target into
Cheng Shi, terminates the target process, and the memory footprint of the target process is more than that the memory of the target process can occupy
Capacity-threshold.
A kind of service control method is provided to third aspect present invention, comprising: display configuration interface, the configuration interface
It include: the first input frame to input address information, the first control to input detection instruction;
When receiving the detection instruction, according to the address information inputted in presently described first input frame, obtaining should
The hardware configuration information of electronic equipment pointed by address information, the hardware configuration information include the physics of the electronic equipment
Memory size;
The hardware configuration information of the electronic equipment is shown in the configuration interface, so that user is based on the electronic equipment
The hardware configuration information service that configures the memory weight coefficient of the electronic equipment and the electronic equipment is allowed to run parallel
The upper limit number of process;
Wherein, memory of the memory weight coefficient and the upper limit number of the electronic equipment to the determination electronic equipment
Can occupied space threshold value, so that there are when target process, trigger the electronics to set in the service for monitoring the electronic equipment
It is standby to terminate the target process;
The service processes are the process of the service, and the target process is that memory footprint is more than that the electronics is set
Standby memory can occupied space threshold value process.
Fourth aspect present invention provides a kind of operation control system, comprising: electronic equipment and monitoring device;
The electronic equipment is the process of service for executing service processes, the service processes;
The electronic equipment is also used to monitor the process that process response is completed in the service, if the electronic equipment is supervised
Control it is described be completed process response process in there are target process, then to the control equipment transmission process ending request,
Receive it is described control equipment based on the process ending request respond allow end instruction when, terminate the target into
Journey;
Wherein, the memory footprint of the target process can occupied space threshold value more than the memory of the target process.
Service control method, system, electronic equipment or the computer readable storage medium that the embodiments of the present invention provide,
Due to the target process being simply turned off in service, rung without restarting entire service, and because process is only completed in monitoring service
The process answered, therefore the service of restarting will not be generated or terminate the transmission of data caused by handling the process of user's request and lose, use
The problem of family request is aborted.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those skilled in the art without any creative labor, can be with root
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the flow chart for the service control method that one embodiment of the invention provides;
Fig. 2 be another embodiment of the present invention provides service control method flow chart;
Fig. 3 be another embodiment of the present invention provides service control method flow chart;
Fig. 4 is a kind of process management system;
Fig. 5 be another embodiment of the present invention provides electronic equipment structural schematic diagram;
Fig. 6 be another embodiment of the present invention provides electronic equipment structural schematic diagram;
Fig. 7 be another embodiment of the present invention provides electronic equipment structural schematic diagram;
Fig. 8 be another embodiment of the present invention provides electronic equipment structural schematic diagram;
Fig. 9 be another embodiment of the present invention provides service control method in configuration interface schematic diagram;
Figure 10 be another embodiment of the present invention provides operation control system structural schematic diagram;
Figure 11 is the structural schematic diagram for the operation control system that another embodiment of invention provides.
Specific embodiment
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention
The attached drawing that embodiment provides, is clearly and completely described technical solution provided in an embodiment of the present invention, it is clear that described
Embodiment be only a part of the embodiment of the present invention, and not all embodiments.Based on embodiment provided by the invention, this field
Technical staff's every other embodiment obtained without making creative work belongs to the model that the present invention protects
It encloses.
Referring to Fig. 1, Fig. 1 is the flow chart for the service control method that one embodiment of the invention provides, as shown in Figure 1, should
Service control method includes:
101, the process of process response is completed in monitoring service.
Specifically, the process for obtaining the process that process response is completed in service, and process response being completed in service
Memory footprint and the process memory can occupied space threshold value compare, if the memory footprint of the process is greater than
The memory of the process can occupied space threshold value, then by the process demarcate position target process.
102, when monitoring in the corresponding process of the process of being completed there are when target process, terminate the target process.
In practical applications, a service frequently includes multiple processes, in the electronic device by the service configuration, refer to by
These processes are distributed the electronic equipment and are handled.In order to improve the treatment effeciency of the service, these services can also be distinguished
It distributes to multiple and different electronic equipments while being handled.Optionally, according to the difference of the hardware configuration of these electronic equipments,
Distribute to the process of distinct electronic apparatuses quantity and process memory can occupied space threshold value it is also not identical.If detecting service
In there are target process, then triggering electronic equipment where the target process terminates the target process.
It should be noted that service control method provided in this embodiment, passes through the EMS memory occupation of the process of monitoring service
Space, and terminate the target process in the service, the memory footprint of the target process is more than the memory of the target process
Can occupied space threshold value, realizing prevents the purpose of RAM leakage, with the prior art directly restart entire service compared with, be simply turned off
Target process in the service is lost, user without restarting entire service, therefore will not generate the transmission of data caused by the service of restarting
Request the problem of being aborted, meanwhile, service control method provided in this embodiment is only completed process in monitoring service and rings
The process answered will not terminate the process for handling user's request, therefore will not generate the process for terminating to handle user's request
The problem of caused data transmission is lost, user's request is aborted.
In the present embodiment, due to the target process being simply turned off in service, without restarting entire service, and due to only supervising
Control service in be completed process response process, therefore will not generate the service of restarting or terminate handling user request process lead
The problem of data transmission of cause is lost, user's request is aborted.
Referring to Fig. 2, Fig. 2 be another embodiment of the present invention provides service control method flow chart, the Service controll
Method includes:
201, the hardware configuration information of electronic equipment, the memory weight coefficient of the electronic equipment are obtained and the electronics is allowed to set
The upper limit number of the standby service processes run parallel.
Specifically, the electronic equipment is the electronic equipment configured with service, service processes refer to the process of the service.Electronics
The hardware configuration of equipment includes the physical memory size of the electronic equipment.
Optionally, the hardware configuration of the electronic equipment further includes the nucleus number of the central processing unit of the electronic equipment, according to this
The memory weight coefficient of the electronic equipment is arranged in the size of the physical memory of electronic equipment, according to the central processing of the electronic equipment
The upper limit number of the service processes for allowing the electronic equipment to run parallel of the electronic equipment is arranged in the nucleus number of device.
In practical applications, service includes multiple service processes, these service processes can be allocated to multiple electronics
Equipment is handled.The hardware configuration of these electronic equipments is obtained respectively, and according to the physical memory size of these electronic equipments
Respectively different memory weight coefficients is arranged in these electronic equipments, according to the nucleus number of the central processing unit of these electronic equipments point
Not Wei these electronic equipments the upper limit numbers of the different service processes for allowing the electronic equipment to run parallel is set.
In order to distinguish these electronic equipments, an address can also be respectively distributed for these electronic equipments, and will acquire
The hardware configuration of electronic equipment and for electronic equipment setting memory weight coefficient and allow the service that runs parallel of electronic equipment
The upper limit number of process is stored in the configurations table under the address of the electronic equipment.
202, the memory that the service processes of the electronic equipment are calculated according to threshold calculations formula can occupied space threshold value.
Specifically, the threshold calculations formula are as follows: p=α × m/n, in the threshold calculations formula, p is the clothes of the electronic equipment
The memory of business process can occupied space threshold value, α be the electronic equipment memory weight coefficient, n be allow the electronic equipment parallel
The upper limit number of the service processes of operation, m are the physical memory size of the electronic equipment.
In practical applications, when the service processes in service being allocated to multiple electronic equipments and being handled, pass through reading
Configurations table under address corresponding with electronic equipment obtains the physical memory size of electronic equipment, is arranged for electronic equipment
Memory weight coefficient and the upper limit number of service processes that runs parallel of permission electronic equipment for electronic equipment setting, count respectively
The service processes memory for calculating these electronic equipments can occupied space threshold value.
203, the process of response is completed in monitoring service.
Specifically, obtaining the memory footprint that the service processes of process response are completed, and process response will be completed
The memory footprint of service processes compare with the memory footprint threshold value of the service processes, if the service processes
Memory footprint is greater than the memory footprint threshold value of the service processes, then the service processes is demarcated as target process.
204, detect electronic equipment can work service process number whether be less than it is preset can work service process number lower limit
Number, if the electronic equipment can work service process number be less than can work service process number lower limit number, in the electronic equipment
Create new service processes, until the electronic equipment in can work service process quantity be equal to allow the electronic equipment to transport parallel
The upper limit number of capable service processes.
Specifically, can work service process number be the quantity of service processes being currently running in electronic equipment.
It should be noted that the service processes of electronic equipment are largely closed will lead to the electronic equipment can work service
Process number is very few, if the electronic equipment can work service process number be less than it is preset can work service process number lower limit number, meeting
The fluctuation of service for leading to the service for being allocated to the electronic equipment, when the electronic equipment can work service process number be zero when,
Electronic equipment process out of service causes data transmission to be lost, user's request is aborted.Therefore detect electronic equipment
Can work service process number be less than it is preset can work service process number lower limit number when, trigger the electronic equipment and create new clothes
Business process can transmit loss to avoid fluctuation of service, the data for the service for being allocated to the electronic equipment and user's request is different
The problem of often interrupting.
205, when monitoring in the process that process response is completed there are when target process, terminate the target process.
In the present embodiment, in a first aspect, due to being simply turned off the target process in servicing, without restarting entire service,
Again since the process of process response being completed in only monitoring service, therefore the service of restarting will not be generated or terminate to handle user and asked
The problem of transmission of data caused by the process asked is lost, user's request is aborted.Second aspect, due to passing through threshold calculations
Formula be calculated the service processes of the electronic equipment memory can occupied space threshold value, so there is no need to according to artificial experience be electronics
The memory that the service processes of the electronic equipment are arranged in equipment can occupied space threshold value.The third aspect, due in target end process
Before also detect electronic equipment can work service process number whether be less than it is preset can work service process number lower limit number, avoid
Due to electronic equipment can work service process number be less than it is preset can work service process number lower limit number, it is caused to be allocated to
The problem of fluctuation of service of the service of the electronic equipment.
Referring to Fig. 3, Fig. 3 be another embodiment of the present invention provides service control method flow chart, as shown, should
Service control method includes:
301, the hardware configuration information of electronic equipment, the memory weight coefficient of the electronic equipment are obtained and the electronics is allowed to set
The upper limit number of the standby service processes run parallel.
302, the memory that the service processes of the electronic equipment are calculated according to threshold calculations formula can occupied space threshold value.
303, the process of response is completed in monitoring service.
304, detect electronic equipment can work service process number whether be less than it is preset can work service process number lower limit
Number, if the electronic equipment can work service process number be less than can work service process number lower limit number, touch in the electronic equipment
The new service processes of middle creation, until in the electronic equipment can the quantity of work service process be equal to and allow the electronic equipment parallel
The upper limit number of the service processes of operation.
Specifically, this can work service process number be the quantity of service processes being currently running in electronic equipment, the service
Process is the process of service.
305, can be removed in work service process queue from electronic equipment by target process, and store the target process
RAM leakage information.
Specifically, RAM leakage information includes: the address of electronic equipment, the process number of target process, target process head
It is secondary complete time of process task, the target process last completes the time of process task, the target process committed memory it is net
Increment and the target process complete the total degree of process task.Memory overflow information is used to distribute to the electronic equipment for assessment
The service RAM leakage situation provide foundation.
306, when monitoring in the process that process response is completed there are when target process, terminate the target process.
Specifically, generating each mesh at random for each target process if there are N number of above target process in service
The delay time of mark process, and delay time of the electronic equipment based on each target process is triggered, in the corresponding delay of delay
Between after terminate corresponding target process.Wherein, delay time is randomly selected in default range, and N is not less than 2.
It should be noted that if there are N number of above target process in service, while electronic equipment is triggered by these targets
Process terminates simultaneously, then the total process number that will lead in service mutates, and then leads to the fluctuation of service of service, makes target
Process turns off after random delay time, and the asynchronous end of target process may be implemented, and avoids due to total in service
The problem of fluctuation of service that process number services caused by mutating.
It should be noted that the present embodiment can be combined with embodiment shown in Fig. 2, above-mentioned steps 301 to step 303 have
Body can refer to the correlation step of Fig. 1 and embodiment illustrated in fig. 2, and details are not described herein again.
In the present embodiment, service control method further include: while executing step 302 to step 306, every default
Time, detect electronic equipment can work service process number whether be less than the service processes for allowing the electronic equipment to run parallel
Upper limit number, if the electronic equipment can work service process number be less than the upper limit number, created in the electronic equipment new
Service processes, until the electronic equipment can work service process number be equal to the upper limit number.
In practical applications, electronic equipment target end process will lead to the electronic equipment can work service process number subtract
It is few, to influence the speed of service for being allocated to the service of the electronic equipment.Every the preset time, obtain electronic equipment can work
Make service processes number, if having electronic equipment can work service process number be less than allow the electronic equipment to run parallel service into
The upper limit number of journey then illustrates that there are target process in the service processes of the electronic equipment, and the electronic equipment finishes the target
Process then creates new service processes in the electronic equipment, until the electronic equipment can work service process number be equal to
The upper limit number, therefore can guarantee the speed of service for being allocated to the service of the electronic equipment.
The service control method provided in order to illustrate the embodiments of the present invention more clearly, below with by the service control method
Applied to being illustrated for process management system, any restriction not is carried out to the service control method.
Referring to Fig. 4, Fig. 4 is a kind of process management system, as shown in figure 4, the process management system includes: the first electronics
Equipment 11A, the second electronic equipment 11B, electricity three electronic equipment 11C, the 4th electronic equipment 11D, control centre 12 and database 13.
In the first electronic equipment 11A, the second electronic equipment 11B, third electronic equipment 11C and the 4th electronic equipment 11D
In configured with service, which includes multiple processes, and the process of the service is known as service processes, which is divided respectively
Dispensing first electronic equipment 11A, the second electronic equipment 11B, third electronic equipment 11C and the 4th electronic equipment 11D are carried out
Processing.
In order to distinguish above-mentioned different electronic equipment, respectively the first electronic equipment 11A, the second electronic equipment 11B, third
Electronic equipment 11C and the 4th electronic equipment 11D respectively distribute an address.
Configurations list is stored in database 13, the ground of aforementioned four electronic equipment in the configurations list
The memory weight system of the hardware configuration information of the electronic equipment that location and each address are directed toward, the electronic equipment of user setting
The upper limit number of number and the service processes for allowing the electronic equipment to run parallel.The hardware configuration information includes the physics of electronic equipment
Memory size.
Control centre 12 reads the configurations list from database 13, and by the hardware configuration in configurations list
The memory weight coefficient of the electronic equipment of information, user setting and the service processes for allowing the electronic equipment to run parallel it is upper
Limit number is transmitted to corresponding electronic equipment.
Each electronic equipment is according to the hardware configuration information received, the memory weight coefficient of the electronic equipment of user setting
It is transmitted to corresponding electronic equipment with the upper limit number for the service processes for allowing the electronic equipment to run parallel, and is based on threshold calculations
Formula: the memory that p=α × m/n calculates each electronic equipment can occupied space threshold value.
Wherein, in the threshold calculations formula, p be the service processes of electronic equipment memory can occupied space threshold value, α is
Memory weight coefficient, m are the physical memory size of electronic equipment, and n is the progress of work number upper limit.
Then the process of process response is completed in each electronic equipment monitoring service, i.e., each electronic equipment obtains the electronics and sets
Be completed the memory footprint of the service processes of active user's request in standby, and by the memory footprint of the service processes with
The memory of the service processes of the electronic equipment can occupied space threshold value comparison, if the memory footprint of the service processes be greater than it is interior
Deposit can occupied space threshold value, then demarcate the service processes be target process.
If electronic equipment, can be by reading and parsing using system more than linux 2.6.24 kernel version
VmRss field obtains the EMS memory occupation situation of the process.Linux 2.6.24 kernel version or more is not used for control centre
System electronic equipment 13, then can be that each process setting memory records file in preset file, according to service
The newly-built and closing of process is newly-built and deletes corresponding memory record file, and the EMS memory occupation data of process are stored in the memory
It records in file.For the process of more preferable Differentiated Services, a process number is distributed for each process, the memory of each process records text
Part and the process number of each process correspond.Whether the memory footprint for detecting the process obtained is more than to distribute for the process
Memory can occupied space threshold value, if having process memory footprint be more than for the process distribution memory can occupied space threshold
Value, then demarcating the process is target process.
After spotting process, there are the electronic equipment of target process detect the electronic equipment can work service process number
Whether be less than it is preset can work service process number lower limit number, if the electronic equipment can work service process number be less than the lower limit
Number, then new service processes are created in the electronic equipment, until the electronic equipment in can work service process quantity etc.
In the upper limit number for the service processes for allowing the electronic equipment to run parallel.
It should be noted that when the service processes of electronic equipment lower than it is preset can work service process number lower limit number when,
The electronic equipment can stop handling the process task that electronic equipment distribution is distributed in the service, in order to avoid in electronic equipment knot
Cause when beam target process the electronic equipment can work service process lower than this it is preset can work service process number lower limit number,
Before the electronic equipment target end process, also to detect the electronic equipment can work service process number, if the electronics is set
It is standby can work service process number less than it is preset can work service process number lower limit number, then trigger the newly-built service of the electronic equipment
Process, until the electronic equipment can work service process number be equal to allow the electronic equipment to run parallel service processes it is upper
Limit number.
In actual application, electronic equipment by fork (duplication) order duplication father's service processes obtain sub-services into
Journey, and then realize the creation of new service processes.It should be noted that by fork replicate father's service processes obtain sub-services into
Cheng Shi, if subprocess terminates prior to parent process, the subprocess and really to be deleted, but leave one and be referred to as zombie process
Data structure, in order to avoid generate zombie process, trigger electronic equipment terminate subprocess when, subprocess is entered into suspend mode shape
State, until triggering electronic equipment terminates the parent process of the subprocess, then the asynchronous subprocess for terminating the parent process.
Then, electronic equipment by target process can be removed in work service process queue from the electronic equipment, and store
The RAM leakage information of the target process.The RAM leakage information includes: the process of the address of the electronic equipment, the target process
Number, the target process completes the time of process task for the first time, the target process last completes time of process task, the target into
The amount of having a net increase of of journey committed memory and the target process complete the total degree of process task.The RAM leakage information of preservation is used to comment
The RAM leakage situation for estimating electronic equipment provides foundation.
Then electronic equipment target end process, if there is only a target process, corresponding electronic equipments in service
The target process can directly be terminated.If detecting in service there are at least two target process, terminate mesh in batches in order to prevent
The fluctuation of process processing speed caused by mark process needs asynchronous these target process of end.
Below with there are three target process in service, and these three target process are respectively present in the first electronic equipment
For 11A, the second electronic equipment 11B and three electronic equipment 11C of electricity, the asynchronous process for terminating multiple target process is said
It is bright, any restriction not is carried out to the distribution situation of the quantity of target process and target process in the electronic device.
The process of above three target process might as well successively be named are as follows: process A, process B and process C, process A are present in
In first electronic equipment 11A, process B is present in the second electronic equipment 11B, and process C is present in third electronic equipment 11C.
First electronic equipment 11A, the second electronic equipment 11B and third electronic equipment 11C send ending request to control centre 12 respectively,
After control centre 12 receives the ending request, three delay times are randomly generated and are transmitted separately to these three delay times
First electronic equipment 11A, the second electronic equipment 11B and third electronic equipment 11C, the first electronic equipment 11A, the second electronic equipment
The delay time of 11B and third electronic equipment 11C based on each target process, terminate respectively after being delayed corresponding delay time into
Journey A, process B and process C.For example, the delay time that control centre is randomly generated is respectively 5 seconds, 7 seconds and 10 seconds, and will delay
It was transmitted to the first electronic equipment 11A within time 5 seconds, the second electronic equipment 11B was transmitted to by delay time 7 seconds, by delay time 10
Second is transmitted to third electronic equipment 11C.For first electronic equipment 11A after receiving the delay time, being delayed 5 seconds terminates process A;
For second electronic equipment 11B after receiving the delay time, being delayed 7 seconds terminates process B;Third electronic equipment 11C is in delay 10
Technology process C after second, then realizes the asynchronous end of multiple target process, avoids since batch target end process causes
Service the speed of service fluctuation.
Each electronic equipment be calculated each electronic equipment memory can after occupied space threshold value, every the preset time,
Detect each electronic equipment can work service process number whether be less than the upper of the service processes for allowing the electronic equipment to run parallel
Limit number.If electronic equipment can work service process number be less than the upper limit number, created in the electronic equipment new service into
Journey, until the electronic equipment can work service process number be equal to the upper limit number.For example, detecting each electronic equipment every one minute
Can work service process number, detect the first electronic equipment 11A can work service process number be 12, allow the first electronics set
Standby 11A run parallel can the upper limit number of the progress of work be 20, then create new service processes in the first electronic equipment 11A,
Make the first electronic equipment 11A can work service process number rise to 20.
Wherein, can work service process number be the quantity of service processes being currently running in electronic equipment.
In the present embodiment, in a first aspect, due to being simply turned off the target process in servicing, without restarting entire service,
Again since the process of process response being completed in only monitoring service, therefore the service of restarting will not be generated or terminate to handle user and asked
The problem of transmission of data caused by the process asked is lost, user's request is aborted.Second aspect, due to passing through threshold calculations
Formula be calculated the service processes of the electronic equipment memory can occupied space threshold value, so there is no need to according to artificial experience be electronics
The memory that the service processes of the electronic equipment are arranged in equipment can occupied space threshold value.The third aspect, due in target end process
Before also detect electronic equipment can work service process number whether be less than it is preset can work service process number lower limit number, avoid
Due to electronic equipment can work service process number be less than it is preset can work service process number lower limit number, it is caused to be allocated to
The problem of fluctuation of service of the service of the electronic equipment.Fourth aspect, due to there are the feelings of multiple target process in service
When condition, obtains and a delay time, and the extension time based on each target process is randomly generated for each target process,
Being delayed after corresponding delay time terminates corresponding target process, realizes the asynchronous closing of target process, thus can to avoid by
In closing the process numerical mutation of service caused by multiple target process in batches, and then avoid since the process numerical mutation of service is led
The fluctuation of service of the process of cause.5th aspect, due to obtaining the RAM leakage of target process before target process terminates
Information, therefore foundation is provided for assessment can be carried out for the RAM leakage situation to respective service.6th aspect, due to every default
Time, detect electronic equipment can work service process number, if electronic equipment can work service process number less than allowing the electricity
The upper limit number for the service processes that sub- equipment is run parallel then creates new service processes in the electronic equipment, until the electronics
Equipment can work service process number be equal to the upper limit number, therefore the process being moved to end can be restarted, guarantee is allocated to electronic equipment
Service the speed of service.
Referring to Fig. 5, Fig. 5 be another embodiment of the present invention provides electronic equipment structural schematic diagram, as shown in figure 5,
The electronic equipment includes:
Monitoring module 410, for the process of process response to be completed in monitoring service.
Processing module 420, for there are target process when monitoring module 410 monitors in the process that process response is completed
When, terminate the target process.The memory footprint of the target process is more than the memory of the target process can occupied space threshold value.
In the present embodiment, due to the target process being simply turned off in service, without restarting entire service, and due to only supervising
Control service in be completed process response process, therefore will not generate the service of restarting or terminate handling user request process lead
The problem of data transmission of cause is lost, user's request is aborted.
Referring to Fig. 6, Fig. 6 be another embodiment of the present invention provides electronic equipment structural schematic diagram, with 5 institute of earlier figures
Unlike the electronic equipment shown, in the present embodiment:
Further, as shown in fig. 6, the electronic equipment further includes obtaining module 430, for obtaining the hardware of electronic equipment
The upper limit number of configuration information, the memory weight coefficient of the electronic equipment and the service processes for allowing the electronic equipment to run parallel,
Wherein, which includes the size of the physical memory of the electronic equipment, which is the process of service.
Monitoring module 410 includes: computing module 411, for according to threshold calculations formula calculate electronic equipment service into
The memory of journey can occupied space threshold value, the threshold calculations formula are as follows: p=α × m/n, in the threshold calculations formula, p is the electronics
The memory of the service processes of equipment can occupied space threshold value, α be the electronic equipment memory weight coefficient, n be allow the electronics
The upper limit number for the service processes that equipment is run parallel, m are the size of the physical memory of the electronic equipment.
Optionally, it obtains module 430 and is also used to obtain the memory footprint that the process of process response is completed in service.
Monitoring module 410 further include: detection module 412, for will be completed process response service processes memory footprint with
The memory footprint threshold value of the service processes compares, if the memory footprint of the service processes is greater than the service processes
Memory footprint threshold value, then the service processes are demarcated as target process.
Further, detection module 412, be also used to detect electronic equipment can work service process number whether be less than it is default
Can work service process number lower limit number.
Processing module 420, if be also used to detection module 412 detect electronic equipment can work service process number be less than can
Work service process number lower limit number, then create new service processes in the electronic equipment, until can work in the electronic equipment
The quantity of service processes is equal to the upper limit number for the service processes for allowing the electronic equipment to run parallel.
Wherein, can work service process number be the quantity of service processes being currently running in electronic equipment.
In the present embodiment, in a first aspect, due to being simply turned off the target process in servicing, without restarting entire service,
Again since the process of process response being completed in only monitoring service, therefore the service of restarting will not be generated or terminate to handle user and asked
The problem of transmission of data caused by the process asked is lost, user's request is aborted.Second aspect, due to passing through threshold calculations
Formula be calculated the service processes of the electronic equipment memory can occupied space threshold value, so there is no need to according to artificial experience be electronics
The memory that the service processes of the electronic equipment are arranged in equipment can occupied space threshold value.The third aspect, due in target end process
Before also detect electronic equipment can work service process number whether be less than it is preset can work service process number lower limit number, avoid
Due to electronic equipment can work service process number be less than it is preset can work service process number lower limit number, it is caused to be allocated to
The problem of fluctuation of service of the service of the electronic equipment.
Referring to Fig. 7, Fig. 7 be another embodiment of the present invention provides electronic equipment structural schematic diagram, with earlier figures 5 with
Unlike electronic equipment shown in fig. 6, in the present embodiment:
Further, module 430 is obtained, if there are N number of above target process in being also used to service, is obtained for each
The delay time for each target process that target process generates at random.Wherein N is not less than 2.
Processing module 410 is also used to be delayed based on the delay time for obtaining each target process that module 430 obtains
Terminate corresponding target process after corresponding delay time.
Further, processing module 410, be also used to target process from electronic equipment can be in work service process queue
It removes.
The electronic equipment further includes memory module 440, for storing the RAM leakage information of target process, wherein this is interior
Depositing leakage information includes: that the address of the electronic equipment, the process number of the target process, the target process complete process task for the first time
Time, the target process last complete time of process task, the amount of having a net increase of of the target process committed memory and the target into
The total degree of journey completion process task.The RAM leakage information of preservation for the RAM leakage situation of assessment electronics for providing
Foundation.
Further, detection module 412, be also used to detect electronic equipment can work service process number whether be less than permission
The upper limit number for the service processes that the electronic equipment is run parallel.
Processing module 410, if be also used to electronic equipment can work service process number less than allowing the electronic equipment parallel
The upper limit number of the service processes of operation then creates new service processes in the electronic equipment, until the electronic equipment can work
Make service processes number equal to the upper limit number.
In the present embodiment, in a first aspect, due to being simply turned off the target process in servicing, without restarting entire service,
Again since the process of process response being completed in only monitoring service, therefore the service of restarting will not be generated or terminate to handle user and asked
The problem of transmission of data caused by the process asked is lost, user's request is aborted.Second aspect, due to passing through threshold calculations
Formula be calculated the service processes of the electronic equipment memory can occupied space threshold value, so there is no need to according to artificial experience be electronics
The memory that the service processes of the electronic equipment are arranged in equipment can occupied space threshold value.The third aspect, due in target end process
Before also detect electronic equipment can work service process number whether be less than it is preset can work service process number lower limit number, avoid
Due to electronic equipment can work service process number be less than it is preset can work service process number lower limit number, it is caused to be allocated to
The problem of fluctuation of service of the service of the electronic equipment.Fourth aspect, due to there are the feelings of multiple target process in service
When condition, obtains and a delay time, and the extension time based on each target process is randomly generated for each target process,
Being delayed after corresponding delay time terminates corresponding target process, realizes the asynchronous closing of target process, thus can to avoid by
In closing the process numerical mutation of service caused by multiple target process in batches, and then avoid since the process numerical mutation of service is led
The fluctuation of service of the process of cause.5th aspect, due to obtaining the RAM leakage of target process before target process terminates
Information, therefore foundation is provided for assessment can be carried out for the RAM leakage situation to respective service.6th aspect, due to every default
Time, detect electronic equipment can work service process number, if electronic equipment can work service process number less than allowing the electricity
The upper limit number for the service processes that sub- equipment is run parallel then creates new service processes in the electronic equipment, until the electronics
Equipment can work service process number be equal to the upper limit number, therefore the process being moved to end can be restarted, guarantee is allocated to electronic equipment
Service the speed of service.
Referring to Fig. 8, Fig. 8 be another embodiment of the present invention provides electronic equipment structural schematic diagram, as shown in figure 8,
The electronic equipment includes: memory 520, processor 510 and is stored on memory 520 and can run on processor 510
Computer program.When processor 510 executes the program in memory 520, service control method as shown in Figures 1 to 3 is realized.
Memory 520 can be high random access memory body (RAM, Random Access Memory) memory,
It can be non-labile memory (non-volatile memory), such as magnetic disk storage.Memory 520 is for storing one
Group executable program code, processor 510 are coupled with memory 520.
Further, the embodiment of the invention also provides a kind of computer readable storage medium, the computer-readable storages
Medium can be in the mobile terminal being set in the various embodiments described above, which can be earlier figures 6
Memory in illustrated embodiment.It is stored with computer program on the computer readable storage medium, which is held by processor
Realize earlier figures 1 to service control method described in embodiment illustrated in fig. 3 when row.Further, which can store Jie
Matter can also be USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), the various media that can store program code such as magnetic or disk.
Referring to Fig. 9, Fig. 9 be another embodiment of the present invention provides service control method in configuration interface schematic diagram.
As shown in figure 9, the configuration interface include: to input address information the first input frame 601, to input detection instruction
One control 602.
When receiving detection instruction, according to the address information inputted in current first input frame 601, address letter is obtained
The hardware configuration information for the electronic equipment being directed toward is ceased, which includes the physical memory size of the electronic equipment.
Optionally, hardware configuration information further include: the nucleus number of the processor of the electronic equipment and the net of the electronic equipment
The size of card.
The hardware configuration information of the electronic equipment is shown in the configuration interface, for use in the hardware based on the electronic equipment
Configuration information configures the memory weight coefficient of the electronic equipment and the upper limit for the service processes for allowing the electronic equipment to run parallel
Number.
Wherein, the memory weight coefficient of the electronic equipment and the upper limit number are to determine that the memory of the electronic equipment can occupy
Capacity-threshold, so that there are when target process, trigger the electronic equipment to terminate the mesh in the service for monitoring the electronic equipment
Mark process.
The service processes are the process of service, which is that memory footprint can more than the memory of the electronic equipment
The process of occupied space threshold value.
In the present embodiment, due to the target process being simply turned off in service, without restarting entire service, and due to only supervising
Control service in be completed process response process, therefore will not generate the service of restarting or terminate handling user request process lead
The problem of data transmission of cause is lost, user's request is aborted.
Referring to Fig. 10, Figure 10 be another embodiment of the present invention provides operation control system structural schematic diagram, such as scheme
Shown in 10, which includes: electronic equipment 701 and monitoring device 702.
Electronic equipment 701, for executing service processes, which is the process of service.
Electronic equipment 701 is also used to be completed the process of process response in monitoring service, if electronic equipment 701 monitors
Be completed process response process in there are target process, then to monitoring device 702 send process ending request, receiving prison
When the instruction for allowing to terminate that control equipment 702 is responded based on the ending request, electronic equipment 701 terminates the target process.
Wherein, the memory footprint of target process can occupied space threshold value more than the memory of the target process.
In the present embodiment, due to the target process being simply turned off in service, without restarting entire service, and due to only supervising
Control service in be completed process response process, therefore will not generate the service of restarting or terminate handling user request process lead
The problem of data transmission of cause is lost, user's request is aborted.
Figure 11 is please referred to, Figure 11 is the structural schematic diagram for the operation control system that another embodiment of invention provides, such as Figure 11
It is shown, unlike operation control system shown in Fig. 10, in the present embodiment:
Further, operation control system further include: database 703, data management apparatus 704 and configurating terminal 705.
When the quantity of electronic equipment 701 is greater than 1, in order to distinguish these electronic equipments, configuration information management equipment 704,
For respectively distributing an address for these electronic equipments, configuration information management equipment 704 is also used to each acquisition electronic equipment in real time
701 hardware configuration information, and the hardware configuration information of the address of electronic equipment and each electronic equipment is transmitted to database 703
In.
Database 703, the basis that the hardware configuration information for will acquire is stored under the address of corresponding electronic equipment are matched
It sets in table.
Configurating terminal 705, for providing a kind of display interface as shown in Figure 9, which includes: to input ground
First input frame 601 of location information, the first control 602 to input detection instruction.
When receiving detection instruction, configurating terminal 705, for according to the address inputted in current first input frame 601
Information, obtains the hardware configuration information of the electronic equipment of address information direction from the configurations table of database 703, this is hard
Part configuration information includes the physical memory size of the electronic equipment.
Optionally, hardware configuration information further include: the nucleus number of the processor of the electronic equipment and the net of the electronic equipment
The size of card.
Configurating terminal 705 is also used to show the hardware configuration information of the electronic equipment in the configuration interface, for use in base
The memory weight coefficient of the electronic equipment is configured in the hardware configuration information of the electronic equipment and the electronic equipment is allowed to transport parallel
The upper limit number of capable service processes.
Configurating terminal 705 is also used to the memory weight coefficient for the electronic equipment that user inputs and allows the electronic equipment simultaneously
The upper limit number of the service processes of row operation is transmitted to database 703.
Database 703 is also used to the memory weight coefficient of electronic equipment and the clothes for allowing the electronic equipment to run parallel
The upper limit number of business process is stored in the configurations table under the address of the electronic equipment.
Wherein, which is the process of service, which is that memory footprint is more than the electronic equipment
Memory can occupied space threshold value process.
Electronic equipment 701 is also used to obtain from the configurations list under the address of the electronic equipment of database 703
The hardware configuration information of the electronic equipment, the memory weight coefficient of the electronic equipment and the clothes for allowing the electronic equipment to run parallel
The upper limit number of business process.
Electronic equipment 701 is also used to hardware configuration information, the electricity according to the electronic equipment obtained by database 703
The upper limit number of the memory weight coefficient of sub- equipment and the service processes for allowing the electronic equipment to run parallel.Based on threshold calculations public affairs
The memory that formula p=α × m/n calculates the service processes of the electronic equipment can occupy threshold value.In the threshold calculations formula, p is the electricity
The memory of the service processes of sub- equipment can occupied space threshold value, α be the electronic equipment memory weight coefficient, n be allow the electricity
The upper limit number for the service processes that sub- equipment is run parallel, m are the physical memory size of the electronic equipment.
Further, if monitoring device 702, while N number of ending request is received, then monitoring device 702 is also used to be directed to
Each ending request generates N number of delay time at random, and by the delay time and the instruction for allowing to terminate.Wherein N is not less than 2.
Electronic equipment 701 is also used to be prolonged accordingly according to the delay time received and the instruction for allowing to terminate in delay
When the time after terminate corresponding target process.
Further, monitoring device 702 are also used to when receiving ending request, in the electronics to transmission ending request
Equipment send allow END instruction before, detect the electronic equipment can work service process number whether be less than preset work
Service processes number lower limit number;
Monitoring device 702, if be also used to the electronic equipment can work service process number be less than can work service process number
Lower limit number then triggers the electronic equipment and creates new service processes, until the electronic equipment in can work service process quantity
Equal to the upper limit number for the service processes for allowing the electronic equipment to run parallel;
Wherein, this can work service process number be the quantity of the service processes being currently running in the electronic equipment.
Further, monitoring device 702 are also used to when receiving ending request, in the electricity to the transmission ending request
Sub- equipment is sent before allowing END instruction, also triggers the electronic equipment for the target process being directed toward with the ending request from the electricity
Sub- equipment can remove in work clothes business process queue, and obtain the RAM leakage information of the target process.
Monitoring device 702 is also used to convert the RAM leakage information to the leakage of the standard memory with uniform data form
After information, standard memory leakage information is transmitted to database 703.
Wherein, which includes: the address of electronic equipment, the process number of the target process, the target process
Time of process task is completed for the first time, the target process last completes the time of process task, the target process committed memory
The amount of having a net increase of and the target process complete the total degree of process task.The RAM leakage information of preservation is used for as assessment electronics
RAM leakage situation provides foundation.
It can it should be noted that converting the leakage information of the standard memory with same data mode for memory overflow information
It is revealed in information one-time write database 703 with the standard memory that will be cached, it is possible to reduce write-in and reading to database
Number.
Further, monitoring device 702 are also used to each preset time, and that detects each electronic equipment can work service
Whether process number is less than the upper limit number for the service processes for allowing the electronic equipment to run parallel.
Monitoring device 702, if be also used to electronic equipment can work service process number less than the upper limit number, trigger the electricity
The service processes of sub- equipment creation information, until the electronic equipment can work service process number be equal to the upper limit number.
In the present embodiment, in a first aspect, due to being simply turned off the target process in servicing, without restarting entire service,
Again since the process of process response being completed in only monitoring service, therefore the service of restarting will not be generated or terminate to handle user and asked
The problem of transmission of data caused by the process asked is lost, user's request is aborted.Second aspect, due to passing through threshold calculations
Formula be calculated the service processes of the electronic equipment memory can occupied space threshold value, so there is no need to according to artificial experience be electronics
The memory that the service processes of the electronic equipment are arranged in equipment can occupied space threshold value.The third aspect, due in target end process
Before also detect electronic equipment can work service process number whether be less than it is preset can work service process number lower limit number, avoid
Due to electronic equipment can work service process number be less than it is preset can work service process number lower limit number, it is caused to be allocated to
The problem of fluctuation of service of the service of the electronic equipment.Fourth aspect, due to there are the feelings of multiple target process in service
When condition, obtains and a delay time, and the extension time based on each target process is randomly generated for each target process,
Being delayed after corresponding delay time terminates corresponding target process, realizes the asynchronous closing of target process, thus can to avoid by
In closing the process numerical mutation of service caused by multiple target process in batches, and then avoid since the process numerical mutation of service is led
The fluctuation of service of the process of cause.5th aspect, due to obtaining the RAM leakage of target process before target process terminates
Information, therefore foundation is provided for assessment can be carried out for the RAM leakage situation to respective service.6th aspect, due to every default
Time, detect electronic equipment can work service process number, if electronic equipment can work service process number less than allowing the electricity
The upper limit number for the service processes that sub- equipment is run parallel then creates new service processes in the electronic equipment, until the electronics
Equipment can work service process number be equal to the upper limit number, therefore the process being moved to end can be restarted, guarantee is allocated to electronic equipment
Service the speed of service.
In multiple embodiments provided herein, it should be understood that disclosed method, system and electronic equipment,
It may be implemented in other ways.For example, embodiments described above is only schematical, for example, the module
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple module or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling or direct-coupling or communication linkage discussed can be through some interfaces, the INDIRECT COUPLING of module or logical
Letter link can be electrical property, mechanical or other forms.
The module as illustrated by the separation member may or may not be physically separated, aobvious as module
The component shown may or may not be physical module, it can and it is in one place, or may be distributed over multiple
On network module.Some or all of the modules therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
It, can also be in addition, each functional module in each embodiment of the present invention can integrate in a processing module
It is that modules physically exist alone, can also be integrated in two or more modules in a module.Above-mentioned integrated mould
Block both can take the form of hardware realization, can also be realized in the form of software function module.
It should be noted that for the various method embodiments described above, describing for simplicity, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because
According to the present invention, certain steps can use other sequences or carry out simultaneously.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules might not all be this hair
Necessary to bright.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiments.
The above are to service control method provided by the present invention, system, electronic equipment and computer readable storage medium
Description, for those skilled in the art, thought according to an embodiment of the present invention, in specific embodiments and applications
There will be changes, and to sum up, the contents of this specification are not to be construed as limiting the invention.
Claims (10)
1. a kind of service control method characterized by comprising
The process of process response is completed in monitoring service;
When monitoring in the process that process response is completed, there are when target process, terminate the target process, the mesh
The memory footprint of mark process is more than the memory of the target process can occupied space threshold value.
2. service control method as described in claim 1, which is characterized in that process response is completed in the monitoring service
Before process, further includes:
It obtains the hardware configuration information of electronic equipment, the memory weight coefficient of the electronic equipment and allows the electronic equipment simultaneously
The upper limit number of the service processes of row operation, wherein the hardware configuration information includes the physical memory size of the electronic equipment,
The service processes are the process of the service;
According to threshold calculations formula calculate the service processes of the electronic equipment memory can occupied space threshold value, the threshold
It is worth calculation formula are as follows: p=α × m/n, in the threshold calculations formula, the p is the service processes of the electronic equipment
Memory can occupied space threshold value, the α is the memory weight coefficient of the electronic equipment, and the n is to allow the electronic equipment
The upper limit number of the service processes run parallel, the m are the physical memory size of the electronic equipment.
3. service control method as claimed in claim 2, which is characterized in that before the end target process, also wrap
It includes:
Detect the electronic equipment can work service process number whether be less than it is preset can work service process number lower limit number;
If the electronic equipment can work service process number be less than it is described can work service process number lower limit number, in the electricity
New service processes are created in sub- equipment, until the electronic equipment described in can work service process quantity be equal to allow institute
State the upper limit number for the service processes that electronic equipment is run parallel;
Wherein, it is described can work service process number be the quantity of the service processes being currently running in the electronic equipment.
4. service control method as claimed in claim 2 or claim 3, which is characterized in that if there are N number of above targets in the service
Process, then it is described to terminate the target process and include:
Obtain the delay time of each target process generated at random for each target process;
Based on the delay time of each target process, terminate corresponding target process after being delayed corresponding delay time;
Wherein, the N is not less than 2.
5. service control method as claimed in claim 4, which is characterized in that before the end target process, also wrap
It includes:
By the target process can remove in work service process queue from the electronic equipment, and store the target process
RAM leakage information, wherein the RAM leakage information include: the address of the electronic equipment, the target process into
Cheng Hao, the target process complete the time of process task for the first time, the target process last completes the time of process task, institute
The amount of having a net increase of and the target process of stating target process committed memory complete the total degree of process task.
6. service control method as claimed in claim 5, which is characterized in that the service control method further include:
Every preset time, detect the electronic equipment can work service process number whether be less than and allow the electronic equipment simultaneously
The upper limit number of the service processes of row operation;
If the electronic equipment can work service process number be less than the upper limit number, created in the electronic equipment new
The service processes, until the electronic equipment it is described can work service process number be equal to the upper limit number.
7. a kind of electronic equipment characterized by comprising
Monitoring module, for the process of process response to be completed in monitoring service;
Processing module, for there are target process when the monitoring module monitors in the process that process response is completed
When, terminate the target process, the memory footprint of the target process is more than that the memory of the target process can occupy sky
Between threshold value.
8. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program quilt
When processor executes, each step in service control method described in any one of claim 1 to 6 is realized.
9. a kind of service control method characterized by comprising display configuration interface, the configuration interface includes: to input
First input frame of address information, the first control to input detection instruction;
When receiving the detection instruction, according to the address information inputted in presently described first input frame, the address is obtained
The hardware configuration information of electronic equipment pointed by information, the hardware configuration information include the physical memory of the electronic equipment
Size;
The hardware configuration information of the electronic equipment is shown in the configuration interface, so that user is based on the hard of the electronic equipment
The service processes that part configuration information configures the memory weight coefficient of the electronic equipment and the electronic equipment is allowed to run parallel
Upper limit number;
Wherein, the memory weight coefficient of the electronic equipment and the upper limit number can be accounted for the memory of the determination electronic equipment
With capacity-threshold, so that there are when target process, trigger the electronic equipment knot in the service for monitoring the electronic equipment
Shu Suoshu target process;
The service processes are the process of the service, and the target process is that memory footprint is more than the electronic equipment
Memory can occupied space threshold value process.
10. a kind of operation control system characterized by comprising electronic equipment and monitoring device;
The electronic equipment is the process of service for executing service processes, the service processes;
The electronic equipment is also used to monitor the process that process response is completed in the service, if the electronic equipment monitors
There are target process in the process that process response is completed, then send process ending request to the control equipment, connecing
When receiving the instruction for allowing to terminate that the control equipment is responded based on the process ending request, terminate the target process;
Wherein, the memory footprint of the target process can occupied space threshold value more than the memory of the target process.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810354466.XA CN110209548B (en) | 2018-04-19 | 2018-04-19 | Service control method, system, electronic device and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810354466.XA CN110209548B (en) | 2018-04-19 | 2018-04-19 | Service control method, system, electronic device and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110209548A true CN110209548A (en) | 2019-09-06 |
CN110209548B CN110209548B (en) | 2023-07-14 |
Family
ID=67779072
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810354466.XA Active CN110209548B (en) | 2018-04-19 | 2018-04-19 | Service control method, system, electronic device and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110209548B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112463343A (en) * | 2020-12-16 | 2021-03-09 | 广州博冠信息科技有限公司 | Business process restarting method and device, storage medium and electronic equipment |
CN113051066A (en) * | 2019-12-27 | 2021-06-29 | 阿里巴巴集团控股有限公司 | Memory management method, device, equipment and storage medium |
CN114217925A (en) * | 2021-12-07 | 2022-03-22 | 中信银行股份有限公司 | Business program operation monitoring method and system for realizing abnormal automatic restart |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014106410A1 (en) * | 2013-01-05 | 2014-07-10 | Tencent Technology (Shenzhen) Company Limited | Method for terminal acceleration, terminal and storage medium |
CN104375899A (en) * | 2014-11-21 | 2015-02-25 | 北京应用物理与计算数学研究所 | Thread for high-performance computer NUMA perception and memory resource optimizing method and system |
CN104503828A (en) * | 2014-12-12 | 2015-04-08 | 广东欧珀移动通信有限公司 | Process management method and terminal |
CN105868012A (en) * | 2016-03-30 | 2016-08-17 | 北京小米移动软件有限公司 | Method and device for processing user request |
CN106383743A (en) * | 2016-09-27 | 2017-02-08 | 腾讯科技(深圳)有限公司 | Business processing method and system |
WO2017028719A1 (en) * | 2015-08-19 | 2017-02-23 | 阿里巴巴集团控股有限公司 | Metadata output method, client side, and metadata server |
CN106708616A (en) * | 2016-11-29 | 2017-05-24 | 深圳天珑无线科技有限公司 | Process control method and process control device |
CN107220076A (en) * | 2016-09-27 | 2017-09-29 | 华为技术有限公司 | A kind of method for recovering internal storage and device |
CN107544840A (en) * | 2016-06-28 | 2018-01-05 | 北京优朋普乐科技有限公司 | A kind of process management method and device |
CN107656804A (en) * | 2017-09-22 | 2018-02-02 | 深圳金融电子结算中心有限公司 | Process pool system and method |
CN107832100A (en) * | 2017-10-27 | 2018-03-23 | 平安普惠企业管理有限公司 | A kind of loading method and its terminal of APK plug-in units |
-
2018
- 2018-04-19 CN CN201810354466.XA patent/CN110209548B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014106410A1 (en) * | 2013-01-05 | 2014-07-10 | Tencent Technology (Shenzhen) Company Limited | Method for terminal acceleration, terminal and storage medium |
CN104375899A (en) * | 2014-11-21 | 2015-02-25 | 北京应用物理与计算数学研究所 | Thread for high-performance computer NUMA perception and memory resource optimizing method and system |
CN104503828A (en) * | 2014-12-12 | 2015-04-08 | 广东欧珀移动通信有限公司 | Process management method and terminal |
WO2017028719A1 (en) * | 2015-08-19 | 2017-02-23 | 阿里巴巴集团控股有限公司 | Metadata output method, client side, and metadata server |
CN105868012A (en) * | 2016-03-30 | 2016-08-17 | 北京小米移动软件有限公司 | Method and device for processing user request |
CN107544840A (en) * | 2016-06-28 | 2018-01-05 | 北京优朋普乐科技有限公司 | A kind of process management method and device |
CN106383743A (en) * | 2016-09-27 | 2017-02-08 | 腾讯科技(深圳)有限公司 | Business processing method and system |
CN107220076A (en) * | 2016-09-27 | 2017-09-29 | 华为技术有限公司 | A kind of method for recovering internal storage and device |
CN106708616A (en) * | 2016-11-29 | 2017-05-24 | 深圳天珑无线科技有限公司 | Process control method and process control device |
CN107656804A (en) * | 2017-09-22 | 2018-02-02 | 深圳金融电子结算中心有限公司 | Process pool system and method |
CN107832100A (en) * | 2017-10-27 | 2018-03-23 | 平安普惠企业管理有限公司 | A kind of loading method and its terminal of APK plug-in units |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113051066A (en) * | 2019-12-27 | 2021-06-29 | 阿里巴巴集团控股有限公司 | Memory management method, device, equipment and storage medium |
CN113051066B (en) * | 2019-12-27 | 2024-05-28 | 阿里巴巴集团控股有限公司 | Memory management method, device, equipment and storage medium |
CN112463343A (en) * | 2020-12-16 | 2021-03-09 | 广州博冠信息科技有限公司 | Business process restarting method and device, storage medium and electronic equipment |
CN112463343B (en) * | 2020-12-16 | 2023-09-26 | 广州博冠信息科技有限公司 | Restarting method and device of business process, storage medium and electronic equipment |
CN114217925A (en) * | 2021-12-07 | 2022-03-22 | 中信银行股份有限公司 | Business program operation monitoring method and system for realizing abnormal automatic restart |
Also Published As
Publication number | Publication date |
---|---|
CN110209548B (en) | 2023-07-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2022037337A1 (en) | Distributed training method and apparatus for machine learning model, and computer device | |
CN110837410B (en) | Task scheduling method and device, electronic equipment and computer readable storage medium | |
CN107391268A (en) | service request processing method and device | |
CN113641457B (en) | Container creation method, device, apparatus, medium, and program product | |
CN108446176B (en) | Task allocation method, computer readable storage medium and terminal device | |
CN112165691B (en) | Content delivery network scheduling method, device, server and medium | |
CN105227626B (en) | Content pushing method and device and terminal | |
CN106506670B (en) | A kind of cloud platform virtual resource high speed dispatching method and system | |
CN110795203B (en) | Resource scheduling method, device, system and computing equipment | |
CN107231264A (en) | For the method and apparatus for the capacity for managing Cloud Server | |
CN113656179B (en) | Scheduling method and device of cloud computing resources, electronic equipment and storage medium | |
CN106489132B (en) | Read and write the method, apparatus, storage equipment and computer system of data | |
US10884667B2 (en) | Storage controller and IO request processing method | |
CN110209548A (en) | Service control method, system, electronic equipment and computer readable storage medium | |
CN107944000A (en) | Flight freight rate update method, device, electronic equipment, storage medium | |
WO2019062405A1 (en) | Application program processing method and apparatus, storage medium, and electronic device | |
CN108292162A (en) | Software definition fifo buffer for multi-thread access | |
EP4222598A1 (en) | Optimizing job runtimes via prediction-based token allocation | |
WO2019062404A1 (en) | Application program processing method and apparatus, storage medium, and electronic device | |
CN106991070A (en) | Real-time computing technique and device | |
US11587094B2 (en) | Customer service ticket evaluation using multiple time-based machine learning models customer | |
CN110796591A (en) | GPU card using method and related equipment | |
CN109508323A (en) | A kind of document storage system and file memory method | |
CN110097268A (en) | Task allocation method and device, electronic equipment and storage medium | |
CN109656683A (en) | A kind of virtual machine management system and method |
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 |