个人博客网站设计外文文献及翻译及感应式ID卡办公门禁考勤一卡通管理系统方案计划书.docx

上传人:b****8 文档编号:10747456 上传时间:2023-02-22 格式:DOCX 页数:53 大小:912.66KB
下载 相关 举报
个人博客网站设计外文文献及翻译及感应式ID卡办公门禁考勤一卡通管理系统方案计划书.docx_第1页
第1页 / 共53页
个人博客网站设计外文文献及翻译及感应式ID卡办公门禁考勤一卡通管理系统方案计划书.docx_第2页
第2页 / 共53页
个人博客网站设计外文文献及翻译及感应式ID卡办公门禁考勤一卡通管理系统方案计划书.docx_第3页
第3页 / 共53页
个人博客网站设计外文文献及翻译及感应式ID卡办公门禁考勤一卡通管理系统方案计划书.docx_第4页
第4页 / 共53页
个人博客网站设计外文文献及翻译及感应式ID卡办公门禁考勤一卡通管理系统方案计划书.docx_第5页
第5页 / 共53页
点击查看更多>>
下载资源
资源描述

个人博客网站设计外文文献及翻译及感应式ID卡办公门禁考勤一卡通管理系统方案计划书.docx

《个人博客网站设计外文文献及翻译及感应式ID卡办公门禁考勤一卡通管理系统方案计划书.docx》由会员分享,可在线阅读,更多相关《个人博客网站设计外文文献及翻译及感应式ID卡办公门禁考勤一卡通管理系统方案计划书.docx(53页珍藏版)》请在冰豆网上搜索。

个人博客网站设计外文文献及翻译及感应式ID卡办公门禁考勤一卡通管理系统方案计划书.docx

个人博客网站设计外文文献及翻译及感应式ID卡办公门禁考勤一卡通管理系统方案计划书

外文文献资料

收集:

应用技术学院计算机科学与技术

(外文文件名:

JSPSplittingforImprovingExecutionPerformance)

Abstract

SplittingaJSP(JavaServerPages)pageintofragmentscanimprovetheexecutionperformanceofJSPpageswhentheWebapplicationservercanseparatelycachetheWebpagefragmentsobtainedbyexecutingtheJSPfragments.IfaJSPpageissplitintofragmentsaccordingtotheupdatefrequencyofeachportionoftheWebpageobtainedbyexecutingtheJSPpage,allofthesplitJSPfragmentsdonotneedtobeexecutedagainwhenonlyasinglecachedpartofaWebpageexpires.Inaddition,thefragmentsofaJSPpagecanbereusedbyotherJSPpages.Inbothcases,theexecutionresultsofalloftheJSPfragmentssplitfromtheJSPpagemustbethesameasfromtheJSPpagebeforeitwassplit.Inthispaper,weproposeJSPsplitting,whichisamethodofsplittingaJSPpageintofragmentsmaintainingthedataandcontroldependencesexistingintheoriginalJSPpage.JSPsplittingautomaticallydetectstheportionsneededtomaintainthedataandcontroldependencesofaJSPpagefortheportionsthatdeveloperswanttosplitfromtheJSPpage.WeimplementedJSPsplittingwithaGUItool,andconfirmedthatthesplitJSPfragmentswereexecutedinthesameasthewayastheJSPpagebeforethesplit.ExperimentalresultsshowthattheresponsetimetoaccessaWebpagecanbereducedbysplittingaJSPpageintofragmentsandsettingdifferentcachingperiodsfortheWebpagefragmentsobtainedbyexecutingtheJSPfragments.

1.Introduction

SplittingaJSP(JavaServerPages)pageintofragmentscanimprovetheexecutionperformanceofsomeJSPpageswhentheWebapplicationservercanseparatelycachetheWebpagefragmentsobtainedbyexecutingthefragmentsoftheJSPpage.TheperiodofcachingdynamicWebpagesgeneratedbyaJSPengineislimitedduetothedynamicnatureofthecontent.WhenthecachedcontentofaWebpagegeneratedbyaJSPengineisupdated,theentireJSPpagemustbeexecutedagainontheapplicationserver,eventhoughthechangeoftheWebpagemightbesmall.SincefrequentupdatesofcachedWebpagesincreasetheloadonanapplicationserver,itisreasonabletosplitaJSPpageintofragmentsandsetdifferentcachingperiodsfortheWebpagefragmentsobtainedbyexecutingtheJSPfragments.Ofcourse,theWebpagefragmentsmustbemergedintoafinalWebpagecorrectly.TheDynacachetechnologyofIBMWebSphereApplicationServerallowsWebpagefragmentstohavedifferentcachingperiods.CachetaglibrariesprovidedbytheApacheJakartaProjectalsosupportdifferentcachingperiodsfortheJSPfragments.Inaddition,ESI(EdgeSideIncludes)technologyprovidesamechanismtocacheWebpagefragmentswithdifferentcachingperiods,andtomergethemintoafinalWebpageonanedgeserver.

TheapplicationoffloadtechnologyofIBMWebSphereEdgeServerisanotherapproachtoimprovetheexecutionperformanceofJSPpages.ThistechnologyallowsoneormoreJSPfragmentstobecachedandexecutedonedgeservers.TheremainingJSPfragmentsaredeployedontheapplicationserverandarecalledbytheJSPfragmentsexecutedontheedgeserver.Thus,someoftheexecutionofaJSPpageisoffloadedtotheedgeserver.

SplittingaJSPpagefacilitatesthereuseofJSPfragments.WhenaWebapplicationconsistsofmanyJSPpages,thesameportionstendtoexistinmanyJSPpages.Examplesaretheframes,thebanners,theheaders,andetc.

WhenaJSPpageissplitintofragments,thetotalexecutionresultofallofthefragmentsmustbethesameastheJSPpagebeforeitwassplit.Inaddition,whenthefragmentsofaJSPpageareexecutedindifferentservers,eachfragmentneedstobeexecutedwithouttheotherfragments.Inordertosatisfytheseconditions,weproposeJSPsplitting,whichisthemethodofsplittingaJSPpageintofragmentsdescribedinthispaper.SinceitisverydifficulttoautomaticallyfindthebestwaytosplitaJSPpageintofragmentsforsomeparticularpurpose,weassumethatthedeveloperswillselecttheportionsthattheywanttosplitintofragments.InordertoexecuteallofthedividedJSPpagescorrectly,JSPsplittingautomaticallydetectsanyportionsthatmustbemovedorcopiedintoafragmentwiththeselectedportions.ThedetectionisdonebasedontheanalysisofthedataandcontroldependencesexistinginaJSPpage.JSPsplittingissimilartotheprogramslicingtechniquethatslicesaprogrambasedonthedataandthecontroldependences.However,theprogramslicingtechniquedoesnottakeintoaccountthattheslicedprogramsareexecutedindependentlyandthatthetotalexecutionresultoftheslicedprogramsmustbethesameastheprogrambeforethedivision.Inaddition,sincedataispassedtotheJSPengineduringtheexecutionofJSPpages,thesourceprogramoftheJSPengine,suchasApacheTomcat,isrequiredinordertoanalyzethedatadependencescorrectly.Thisisimpractical,becausethesourceprogramoftheJSPengineisverylargeandcomplex.JSPsplittingavoidstheanalysisoftheJSPenginebyutilizingthecharacteristicsofJSP.

Therestofthepaperisorganizedasfollows.Section2explainsthedifficultyofsplittingaJSPpageintofragments.Section3givesdetailsofthealgorithmtosplitaJSPpage.Section4describestheJSPsplittingtoolthatisanimplementationofJSPsplittinganddemonstrateshowasampleJSPpageissplitbythetool.Section5showstheexperimentalresultsobtainedbyexecutingthesplitJSPfragmentswithdifferentcachingperiodsontheIBMWebSphereApplicationServer.Section6discussespreviousworkinrelationtoourcontributions.Ourconclusionsformthefinalsection.

2.DifficultyofSplittingaJSPPage

Inthispaper,splittingaJSPpagemeansthatsomeportionsoftheJSPpagearecutfromtheJSPpageandsavedasnewJSPpages.SuchnewlycreatedJSPpagesareincludedintheoriginalJSPpagebyusingsomemechanismsuchasthejsp:

includetag.WecalltheincludedJSPpagetheJSPfragment,andcalltheJSPpagethatinvokestheJSPfragmentsthemasterJSPpage.AmasterJSPpageinvokesJSPfragmentsandreceivesWebpagefragmentsobtainedbyexecutingthem.ThenthemasterJSPpagemergesitsownWebpagefragmentwiththeWebpagefragmentsreceivedfromtheJSPfragments,andcreatesafinalWebpage.

JSPfragmentsarenotalwaysexecutedinthesameserveroratthesametime.TheapplicationoffloadtechnologyallowsamasterJSPpageandJSPfragmentstobeexecutedindifferentservers.WhentheESImechanismisused,esi:

includetagsareputintoaWebpagefragmentobtainedbyexecutingamasterJSPpageandinterpretedinanedgeserverthatsupportstheESImechanism.Inthiscase,theedgeservercheckswhetherornottheWebpagefragmentsspecifiedbyesi:

includetagsexistinitscache.IfthecontentsofWebpagefragmentsarenotcachedorhaveexpired,theJSPfragmentsareinvokedfromtheedgeserver,andexecutedinoneormoreapplicationservers.IfdifferentcachingperiodscanbegiventotheWebpagefragmentsobtainedbyexecutingtheJSPfragments,eachJSPfragmentisexecutedonlywhenthecachedcontenthasexpired.TheDynacachetechnology,theESImechanism,andthecachetaglibrariescansupportdifferentcachingperiodsforWebpagefragments.

WhenaJSPpageissplitintofragments,thefollowingtwoconditionsmustbesatisfiedevenifthemasterJSPpageandtheJSPfragmentsarenotexecutedinthesameserveroratthesametime.

Cond.1-1ThetotalexecutionresultofamasterJSPpageandtheJSPfragmentsisthesameastheJSPpagebeforeitwassplit.

Cond.1-2EachJSPpage,whichiseitheramasterJSPpageoraJSPfragment,maybeexecutedwithoutotherJSPpages.

TheseconditionsaresatisfiedbymaintainingthedataandcontroldependencesexistinginaJSPpageaftertheJSPpagehasbeensplitintofragments.However,itishardworkfordeveloperstodetectdataandcontroldependentportionsinaJSPpage,becausethedataandcontrolflowofaJSPpagecanbedividedamongtheJSPpage,theJSPenginethatexecutestheJSPpage,anyJavabeansusedintheJSPpage,andetc..Thus,anaturalsolutioncallsforautomaticallydetectingdata-dependentandcontrol-dependentportionslinkedtotheportionsthatdeveloperswanttosplit.

TheprogramslicingtechniquedetectsasetofprogramstatementsthataffectaprogramstatementSbyanalyzingthedataandcontroldependencesexistingintheprogram.OneprogramsliceconsistsofthedetectedsetofprogramstatementsandthestatementS.Thistechniqueisusefulwhendebuggingormaintaininglargeprograms.SinceJSPpagesarecompiledintoservletprogramsbyusingaJSPcompilersuchastheApacheJaspercompiler[4],JSPslicescanbeobtainedbyapplyingprogramslicingtechniquetoaservletprogramcompiledfromaJSPpage.However,theprogramslicingtechniqueisnotsufficienttosplitaJSPpageintofragments,becausethetechniquedoesnottakeintoaccountthatprogramslicesareexecutedindependently.

Figure1showsapartofasampleJSPpageandasampleservletprogramcompiledfromtheJSPpage.Figure2(a)showsthedatadependencegraphobtainedfromtheservletprogram.Inaprogram,whenastatementS1assignsavaluetoavariableandastatementS2followingS1usesthatvalue,atruedatadependenceexistsbetweenS1andS2.SuchadatadependenceisdenotedasS1S2.InFigure2(a),duetothedatadependences,theprogramsliceforthestatementS10consistsofS1,S9,andS10.Iftheprogramsliceiscutfromtheservletprogram,theremainingprogramstatementshaveerrorsbecausethedatadependencesS1S2,S11,andS12andS9

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > PPT模板 > 自然景观

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1