簡易檢索 / 詳目顯示

研究生: 林育任
Lin, Yu-Ren
論文名稱: 快取個人化及資料庫相關之動態網頁
Caching Personalized and Database-related Dynamic Web Pages
指導教授: 張燕光
Chang, Yeim-Kuan
學位類別: 碩士
Master
系所名稱: 電機資訊學院 - 資訊工程學系
Department of Computer Science and Information Engineering
論文出版年: 2006
畢業學年度: 94
語文別: 英文
論文頁數: 48
中文關鍵詞: 動態網頁個人化資料庫快取
外文關鍵詞: dynamic web pages, cache, consistency, Tomcat, Session Objects
相關次數: 點閱:124下載:3
分享至:
查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報
  • 近年來,隨著電子商務與個人化網頁的興起,使用Session物件與資料庫相關的動態網頁越來越多。網頁伺服器每處理一個要求,就必須重新擷取資料庫並根據Session物件內的資訊來產生動態網頁。當越來越多人使用,網頁伺服器的負載越來越重甚至到達無法負荷的狀態。此時,動態網頁快取變成必然的趨勢。
    本論文針對使用Session物件、資料庫相關的動態網頁快取做深入的探討。研究如何建立動態網頁與資料庫欄位之間的關連性,Session物件與動態網頁的關連性。並且將快取系統實做在Tomcat網頁伺服器內。實驗證明,快取資料庫相關的動態網頁可以大幅提升網頁伺服器效能與穩定性。我們的結果更指出快取的網頁系統比不快取的效能高上208%。

    In recent years, while e-commerce and personalize web pages are getting popular, using session objects and database-related dynamic web pages increase more. When a web server serves a request, it needs to queries database again and generate the dynamic web pages by information in the session objects. When serving more and more users, the load of web server to too heavy to serve. In this time, caching dynamic web pages is a inevitable trend.
    Our thesis focuses and does much research on using session objects and database-related dynamic web cache. We show how to build the dependency between dynamic web pages and underlying database fields, session objects. Furthermore, we implement the dynamic web cache system in the Tomcat web server. Our experiment shows that dynamic web cache can improve the web server performance a lot and increase the stability of web server. Our result shows dynamic web cache improves web server performance up to 208%.

    Table of Contents 1 INTRODUCTION................................................................................................1 2 DYNAMIC WEB CACHES .................................................................................6 2.1 CHALLENGES...................................................................................................6 2.2 PROPOSED SOLUTION........................................................................................9 2.3 TERMINOLOGY...............................................................................................10 2.3.1 Tomcat Dynamic Web Pages Caching System........................................10 2.3.2 URIs to Database Fields Mapping Table ...............................................10 2.3.3 Tomcat Container...................................................................................10 3 SYSTEM DESIGN AND IMPLEMENTATION............................................... 11 3.1 OVERVIEW.....................................................................................................11 3.2 URIS TO DATABASE FIELDS MAPPING TABLE .................................................12 3.2.1 URIs to Database Fields Mapping Table ...............................................12 3.2.2 URIs to Database Fields Mapping Table with Session Detection..........14 3.3 HOW TOMCAT SERVES A REQUEST...................................................................19 3.4 IMPLEMENTATION OF CORE CACHING SYSTEM ...............................................26 3.4.1 Overview of Core Caching System.........................................................27 3.4.2 Where we implement the Core Caching System .....................................28 3.4.3 Controller of Core Caching System .......................................................31 3.4.4 OutputBuffer ..........................................................................................35 3.5 INVALIDATOR.................................................................................................37 3.5.1 Binary-Update-Log of MySQL...............................................................37 3.5.2 Invalidator Thread .................................................................................37 4 PERFORMANCE EVALUATION ....................................................................41 4.1 EXPERIMENTAL CONFIGURATION....................................................................41 4.2 WEBBENCH CONFIGURATION .........................................................................42 4.3 EXPERIMENTAL RESULTS ................................................................................42 5 CONCLUSION AND FUTURE WORK ...........................................................45 6 REFERENCE .....................................................................................................47

    [1] Arun Iyengar, Jim Challenger, Paul Dantzig: A Scalable System for Consistently Caching Dynamic web Data. INFOCOM 1999: 294-303
    [2] Budi Kurniawan, Paul Deck: How Tomcat Works http://www.brainysoftware.com/
    [3] Carey L. Williamson, Rob Simmonds, Martin F. Arlitt: A case study of Web server benchmarking using parallel WAN emulation. 111-127, September 2002
    [4] Huican Zhu, Tao Yang: Class-based Cache Management for Dynamic Web Content. INFOCOM 2001: 1215-1224
    [5] Jim Challenger, Paul Dantzig, Arun Iyengar, Mark S. Squillante, Li Zhang: Efficiently serving dynamic data at highly accessed web sites. IEEE/ACM Trans. Netw. 12(2): 233-246 (2004)
    [6] K. Selcuk Candan, Wen-Syan Li, Qiong Luo, Wang-Pin Hsiung, Divyakant Agrawal: Enabling Dynamic Content Caching for Database-Driven Web Sites. SIGMOD Conference 2001
    [7] Lance Titchkosky, Martin F. Arlitt, Carey L. Williamson: A performance comparison of dynamic Web technologies. SIGMETRICS Performance Evaluation Review 31(3): 2-11 (2003)
    [8] Li, Quanzhong and Moon, Bongki (2001) Distributed Cooperative Apache Web Server. In Proceedings International WWW Conference(10), Hong-Kong
    [9] Manish Bhide, Pavan Deolasee, Amol Katkar, Ankur Panchbudhe, Krithi Ramamritham, Prashant J. Shenoy: Adaptive Push-Pull: Disseminating Dynamic Web Data. IEEE Trans. Computers 51(6): 652-668 (2002)
    [10] P. Mohaptra, H. Chen: WebGraph: A Framework for Managing and Improving Performance of Dynamic Web Content, IEEE Journal on Selected Areas in Communications (JSAC), pp1414, Vol. 20, No. 7, Sept, 2002
    [11] Wen-Syan Li, Wang-Pin Hsiung, Oliver Po, Koji Hino, K. Selcuk Candan, Divyakant Agrawal: Challenges and practices in deploying web acceleration solutions for distributed enterprise systems. WWW 2004: 297-308
    [12] Oracle Database (iCache) Cache FAQ http://www.orafaq.com/faqicach.htm
    [13] Oracle Web Cache http://www.oracle.com/technology/products/ias/web_cache/index.html
    [14] The Apache Jakarta Tomcat Connector: http://jakarta.apache.org/tomcat/connectors-doc/
    [15] Tux - Red Hat Content Accelerator 2.2: Reference Manual
    [16] WebBench 5.0 http://www.veritest.com/benchmarks/webbench/home.asp

    下載圖示 校內:立即公開
    校外:2006-06-06公開
    QR CODE