• DocumentCode
    3516348
  • Title

    Efficient resource management on template-based web servers

  • Author

    Courtwright, Eli ; Yue, Chuan ; Wang, Haining

  • Author_Institution
    Dept. of Comput. Sci., Coll. of William & Mary, Williamsburg, VA, USA
  • fYear
    2009
  • fDate
    June 29 2009-July 2 2009
  • Firstpage
    249
  • Lastpage
    258
  • Abstract
    The most commonly used request processing model in multithreaded web servers is thread-per-request, in which an individual thread is bound to serve each web request. However, with the prevalence of using template techniques for generating dynamic contents in modern web servers, this conventional request processing model lags behind and cannot provide efficient resource management support for template-based web applications. More precisely, although content code and presentation code of a template-based dynamic web page can be separated into different files, they are still processed by the same thread. As a result, web server resources, especially database connection resources, cannot be efficiently shared and utilized. In this paper, we propose a new request scheduling method, in which a single web request is served by different threads in multiple thread pools for parsing request headers, performing database queries, and rendering templates. The proposed scheme ensures the high utilization of the precious database connections, while templates are being rendered or static contents are being served. We implemented the proposed scheme in CherryPy, a representative template-enabled multithreaded web server, and we evaluated its performance using the standard TPC-W benchmark implemented with the Django web templates. Our evaluation demonstrates that the proposed scheme reduces the average response times of most web pages by two orders of magnitude and increases the overall web server throughput by 31.3% under heavy loads.
  • Keywords
    Internet; benchmark testing; multi-threading; resource allocation; software performance evaluation; CherryPy; Django Web templates; TPC-W benchmark; Web page; multithreaded Web servers; request processing; resource management; template-based Web servers; Cascading style sheets; Databases; Delay; Dynamic scheduling; HTML; Resource management; Throughput; Web pages; Web server; Yarn; Performance; Request Scheduling; Resource Management; Templates; Web Server;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Dependable Systems & Networks, 2009. DSN '09. IEEE/IFIP International Conference on
  • Conference_Location
    Lisbon
  • Print_ISBN
    978-1-4244-4422-9
  • Electronic_ISBN
    978-1-4244-4421-2
  • Type

    conf

  • DOI
    10.1109/DSN.2009.5270329
  • Filename
    5270329