网上商城---文献翻译原文

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

JSPSplittingforImprovingExecutionPerformanceTakuyaNakaikeIBMJapan,Ltd.1623-14,Shimotsuruma,Yamato-shi,Kanagawa-ken242-8502,Japannakaike@jp.ibm.comGohKondohIBMJapan,Ltd.1623-14,Shimotsuruma,Yamato-shi,Kanagawa-ken242-8502,Japangkondo@jp.ibm.comHiroakiNakamuraIBMJapan,Ltd.1623-14,Shimotsuruma,Yamato-shi,Kanagawa-ken242-8502,Japanhnakamura@jp.ibm.comFumihikoKitayamaIBMJapan,Ltd.1623-14,Shimotsuruma,Yamato-shi,Kanagawa-ken242-8502,Japanktym@jp.ibm.comShinichiHiroseIBMJapan,Ltd.1623-14,Shimotsuruma,Yamato-shi,Kanagawa-ken242-8502,Japanhiroses@jp.ibm.comAbstractSplittingaJSP(JavaServerPages)pageintofragmentscanimprovetheexecutionperformanceofJSPpageswhentheWebapplicationservercanseparatelycachetheWebpagefragmentsobtainedbyexecutingtheJSPfragments.IfaJSPpageissplitintofragmentsaccordingtotheupdatefrequencyofeachportionoftheWebpageobtainedbyex-ecutingtheJSPpage,allofthesplitJSPfragmentsdonotneedtobeexecutedagainwhenonlyasinglecachedpartofaWebpageexpires.Inaddition,thefragmentsofaJSPpagecanbereusedbyotherJSPpages.Inbothcases,theexecutionresultsofalloftheJSPfragmentssplitfromtheJSPpagemustbethesameasfromtheJSPpagebeforeitwassplit.Inthispaper,weproposeJSPsplitting,whichisamethodofsplittingaJSPpageintofragmentsmaintain-ingthedataandcontroldependencesexistingintheorig-inalJSPpage.JSPsplittingautomaticallydetectsthepor-tionsneededtomaintainthedataandcontroldependencesofaJSPpagefortheportionsthatdeveloperswanttosplitfromtheJSPpage.WeimplementedJSPsplittingwithaGUItool,andconfirmedthatthesplitJSPfragmentswereexecutedinthesameasthewayastheJSPpagebeforethesplit.ExperimentalresultsshowthattheresponsetimetoaccessaWebpagecanbereducedbysplittingaJSPpageintofragmentsandsettingdifferentcachingperiodsfortheWebpagefragmentsobtainedbyexecutingtheJSPfrag-ments.1.IntroductionSplittingaJSP(JavaServerPages)[7]pageintofrag-mentscanimprovetheexecutionperformanceofsomeJSPpageswhentheWebapplicationservercanseparatelycachetheWebpagefragmentsobtainedbyexecutingthefrag-mentsoftheJSPpage.TheperiodofcachingdynamicWebpagesgeneratedbyaJSPengineislimitedduetothedy-namicnatureofthecontent.WhenthecachedcontentofaWebpagegeneratedbyaJSPengineisupdated,theentireJSPpagemustbeexecutedagainontheapplicationserver,eventhoughthechangeoftheWebpagemightbesmall.SincefrequentupdatesofcachedWebpagesincreasetheloadonanapplicationserver,itisreasonabletosplitaJSPpageintofragmentsandsetdifferentcachingperiodsfortheWebpagefragmentsobtainedbyexecutingtheJSPfrag-ments.Ofcourse,theWebpagefragmentsmustbemergedintoafinalWebpagecorrectly.TheDynacachetechnologyofIBMWebSphereApplicationServer[9]allowsWebpagefragmentstohavedifferentcachingperiods.Cachetagli-brariesprovidedbytheApacheJakartaProject[3]alsosup-portdifferentcachingperiodsfortheJSPfragments.Inad-dition,ESI(EdgeSideIncludes)[1]technologyprovidesamechanismtocacheWebpagefragmentswithdifferentcachingperiods,andtomergethemintoafinalWebpageonanedgeserver.TheapplicationoffloadtechnologyofIBMWebSphereEdgeServer[8]isanotherapproachtoimprovetheexecu-tionperformanceofJSPpages.ThistechnologyallowsoneormoreJSPfragmentstobecachedandexecutedonedgeservers.TheremainingJSPfragmentsaredeployedontheProceedingsofthe2004InternationalSymposiumonApplicationsandtheInternet(SAINT’04)0-7695-2068-5/04$20.00©2004IEEEapplicationserverandarecalledbytheJSPfragmentsexe-cutedontheedgeserver.Thus,someoftheexecutionofaJSPpageisoffloadedtotheedgeserver.SplittingaJSPpagefacilitatesthereuseofJSPfrag-ments.WhenaWebapplicationconsistsofmanyJSPpages,thesameportionstendtoexistinmanyJSPpages.Exam-plesaretheframes,thebanners,theheaders,andetc..WhenaJSPpageissplitintofragments,thetotalexe-cutionresultofallofthefragmentsmustbethesameastheJSPpagebeforeitwassplit.Inaddition,whenthefrag-mentsofaJSPpageareexecutedindifferentservers,eachfragmentneedstobeexecutedwithouttheotherfragments.Inordertosatisfytheseconditions,weproposeJSPsplit-ting,whichisthemethodofsplittingaJSPpageintofrag-mentsdescribedinthispaper.Sinceitisverydifficulttoau-tomaticallyfindthebestwaytosplitaJSPpageintofrag-mentsforsomeparticularpurpose,weassumethatthede-veloperswillselecttheportionsthattheywanttosplitintofragments.InordertoexecuteallofthedividedJSPpagescorrectly,JSPsplittingautomaticallydetectsanyportionsthatmustbemovedorcopiedintoafragmentwiththese-lectedportions.Thedetectionisdonebasedontheanaly-sisofthedataandcontroldependencesexistinginaJSPpage.JSPsplittingissimilartotheprogramslicingtech-nique[13]thatslicesaprogrambasedonthedataandthecontroldependences.However,theprogramslicingtech-niquedoesnottakeintoaccountthattheslicedprogramsareexecutedindependentlyandthatthetotalexecutionre-sultoftheslicedprogramsmustbethesameasthepro-grambeforethedivision.Inaddition,sincedataispassedtotheJSPengineduringtheexecutionofJSPpages,thesourceprogramoftheJSPengine,suchasApacheTom-cat[4],isrequiredinordertoanalyzethedatadependencescorrectly.Thisisimpractical,becausethesourceprogramoftheJSPengineisverylargeandcomplex.JSPsplittingavoidstheanalysisoftheJSPenginebyutilizingthechar-acteristicsofJSP.Therestofthepaperiso

1 / 10
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功