计算机科学与探索 ›› 2012, Vol. 6 ›› Issue (1): 32-45.DOI: 10.3778/j.issn.1673-9418.2012.01.002

• 学术研究 • 上一篇    下一篇

ROSA:资源敏感的高性能Web容器体系结构

周晓炜, 张文博, 王联华   

  1. 1. 中国科学院 软件研究所 软件工程技术研究开发中心, 北京 100190
    2. 中国科学院 研究生院, 北京 100190
    3. 北京神舟航天软件技术有限公司, 北京 100094
  • 出版日期:2012-01-01 发布日期:2012-01-01

ROSA: Resource-Oriented High-Performance Web Container Architecture

ZHOU Xiaowei, ZHANG Wenbo, WANG Lianhua   

  1. 1. Technology Center of Software Engineering, Institute of Software, Chinese Academy of Sciences, Beijing 100190, China 2. Graduate University, Chinese Academy of Sciences, Beijing 100190, China
    3. Beijing Shenzhou Aerospace Software Technology Co., Ltd., Beijing 100094, China
  • Online:2012-01-01 Published:2012-01-01

摘要: 现有的Web容器多采用线程池体系结构, 而Web容器所支撑的动态Web组件在执行过程中可能需要获取多种共享资源, 由共享资源并发量限制导致的线程阻塞可能会严重影响性能。提出了一种资源敏感的Web容器体系结构ROSA (resource-oriented staged architecture)。当某些共享资源达到饱和时, 若Web容器接到对需要这些资源的Web组件的请求, ROSA会暂缓为这些请求提供服务以减少线程阻塞。基于排队Petri网, 建立了ROSA结构和线程池结构的性能模型, 通过模型仿真和负载实验验证了ROSA体系结构的性能优势。

关键词: 体系结构, Web容器, 资源敏感, 排队Petri网, 线程池

Abstract: Most of the current Web containers adopt thread-pool architecture. A Web component which Web container supports may obtain multiple shared resources during runtime. The concurrency limits of these resources may cause thread-blocking and seriously hinder the performance. This paper proposes a resource-oriented Web container architecture, which is named ROSA (resource-oriented staged architecture). When some shared resources are satu-rated and Web container receives the requests for Web components demanding these resources, ROSA will post-pone serving these requests in order to reduce thread-blocking. The paper builds the performance model of ROSA and thread-pool architecture using queuing Petri nets, and the experimental results of simulation and load testing show the performance advantage of ROSA.

Key words: architecture, Web container, resource-oriented, queuing Petri net, thread-pool