计算机科学 ›› 2010, Vol. 37 ›› Issue (10): 161-164.

• 软件工程 • 上一篇    下一篇

一种基于排队系统的启发式中间件动态线程池管理机制

陈宁江,林盘   

  1. (广西大学计算机与电子信息学院 南宁530004)
  • 出版日期:2018-12-01 发布日期:2018-12-01
  • 基金资助:
    本文受国家863课题(2007AA01Z134),广西高校人才小高地建设创新团队资助计划(桂教人[2007]71号)资助。

Heuristic and Dynamic Thread Pooling Mechanism Based on Queuing System in Middleware

CHEN Ning-jang,LIN Pan   

  • Online:2018-12-01 Published:2018-12-01

摘要: 以Web应用服务器为代表的中间件需要为Intcrnct应用提供有效的运行时性能保障和优化服务。线程池技术是一种常见的性能优化方法。针对Internet应用的特征,中间件的线程池管理需要在感知运行时上下文的基础上进行动态调整,然而如何挖掘有效的影响因素以使调整效果更具有适应性,仍值得深入研究。首先基于M/M/1/K/二/FCFS排队系统提出了一个应用服务器的动态线程池模型,然后在此基础上研究了引入一组启发因素和规则,这将更有效地反映运行时上下文,实现驱动线程池大小的动态调整过程,使线程池规模适应资源的变化。以上机制通过原型实验验证了启发式因素的变化对线程池规模调整的有效影响,并表明该机制能够有效改善系统性能。

关键词: 线程池,中间件,排队系统,启发式

Abstract: Middlcware in Internet cnvironmcnt,typically Wcb Application Server(WAS),needs to provide the performance guarantee and optimization services effectively for Internet applications. Thread pooling technique is a common method of performance optimization. With the consideration of the features of Internet applications,the management of thread pool in middleware needs to adjust dynamically on the basis of perceiving the context at run-time. However,how to find out effective influencing factors which make the adjusting results having better adaptability remains to be discussed further. The paper firstly presented a dynamic thread pool model of application server based on M/M/1/K/二/FCFS queuing system;then,the paper studied a mechanism which imports heuristic factors and rules for reflecting the context at run-time. It can realize dynamic adjustment of thread pool size more effectively so that thread pool size is well adapted to resources change. The experiments verify the effective influence of heuristic factor that exert on a山ustment of thread pool system.size and show that the presented management mechanism can significantly improve the performance of system.

Key words: Thread pool, Middleware, Queuing system, Heuristic

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!