Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Property optimizing method for applying server

A technology of application server and optimization method, which is applied in the direction of multi-programming devices, transmission systems, electrical components, etc., can solve the problems of reduced throughput, low CPU effective utilization rate, and increased processing time of a single task, so as to improve the effective utilization rate , Reduce the effect of thread scheduling and competition overhead

Inactive Publication Date: 2007-11-07
PEKING UNIV
View PDF2 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, if there is no limit to the use of multi-threading, it may be counterproductive and reduce throughput
This is because when the number of threads increases, on the one hand, creating and destroying threads consumes processor resources; The utilization rate is low, and the effective time actually used to process requests is very small, resulting in an increase in the processing time of a single task and a decrease in total throughput, which urgently needs to be further improved

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Property optimizing method for applying server
  • Property optimizing method for applying server
  • Property optimizing method for applying server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0017] Below in conjunction with accompanying drawing and specific embodiment the technical scheme of the present invention is further described:

[0018] As shown in Figure 1, a performance optimization method for an application server includes the following steps:

[0019] Step 1: The network engine 2 receives the network service request 1 and creates a corresponding task 4 .

[0020] Step 2, the network engine 2 associates the task 4 with the service object 3, and then hands the task 4 to the task scheduler 5.

[0021] Step 3, the task scheduler 5 judges whether there is a thread in the sleep state in the current thread pool 6, if there is, the sleep thread is awakened to perform the task, otherwise the number m of the working thread 61 is judged, the thread pool 6 has a maximum upper limit T_M, and the thread The maximum number of concurrent threads allowed by pool 6 is T_M. If m<T_M, task scheduler 5 creates a new thread in thread pool 6 to handle this task; If m=T_M, t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention relates to performance optimizing method for application server. After receiving the network service request, the network engine creates corresponding task associated with the service target before handing over the task to the task despatcher. If the number m of the work threads in current thread pool is smaller than the upper limit T_M of the thread pool, the despatcher will create one new thread in the pool for processing the task. If m=T_M, the despatcher will queue the task into the task queue. After completing the current task, the work threads in current thread pool will request new task from the task queue. Managing the application threads in the mode of finite thread pool plus infinite task queue can control the number of concurrent threads to reduce thread dispatching and competition overhead, raise utilization of the processor, increase the effective work time of the processor and increase the throughput of application server.

Description

technical field [0001] The invention relates to a performance optimization method of an application server, which belongs to the technical field of computer applications. Background technique [0002] The application server is the high-level operating environment of the application program in the network environment. It provides the application system with component operation management, communication, naming, transaction, security and other service functions, so that application developers can concentrate on the business logic of the target system and simplify the application process. System development and maintenance. The application server itself is a server program, which must have good performance to meet the needs of the application. Performance optimization is usually aimed at the situation where a large number of concurrent client requests arrive at the same time. The goal is to increase throughput and reduce response time as much as possible, so that the applicati...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/46H04L29/02
Inventor 梅宏曹东刚黄罡刘天成
Owner PEKING UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products