Configuring Oracle Web Cache for Caching a Java EE Application文档格式.docx
- 文档编号:21368962
- 上传时间:2023-01-30
- 格式:DOCX
- 页数:35
- 大小:822.53KB
Configuring Oracle Web Cache for Caching a Java EE Application文档格式.docx
《Configuring Oracle Web Cache for Caching a Java EE Application文档格式.docx》由会员分享,可在线阅读,更多相关《Configuring Oracle Web Cache for Caching a Java EE Application文档格式.docx(35页珍藏版)》请在冰豆网上搜索。
∙Availability:
Throughsurgeprotection,clustering,loadbalancing,andfailover
∙Developerproductivity:
Noneedtorollyourowncachemeansfastertime-to-market
∙Bottomline:
Reducedloadonapplicationanddatabaseserverstranslatesintoinfrastructurecostsavings
*ESIisasimplemarkuplanguageusedtodefinecomponentsofaWebpagefordynamicassemblyanddeliveryofWebapplicationsattheedgeoftheInternet.MoreinformationaboutESIisavailableat
SoftwareandHardwareRequirements(Optional)
Thefollowingisalistofsoftwarerequirements:
Item
Specification
ProcessorType
IntelXeonorPentiumIV
ProcessorSpeed
2.4GHzorhigher
NumberofProcessors
1ormore(ifrequired)
Memory
2GB
HardDiskSpace
20GB(initialsize)
OperatingSystem
RedHatEnterpriseLinux4Update5
Prerequisites
Beforestartingthistutorial,youshould:
1.
HaveaninstanceofOracleWebLogicServer10.3.
2.
Haveconfiguredadomain.
3.
Downloadandunzipthewebapp.zipfileonyourmachine.DeploytheWebAppWar.warfiletotheapplicationWebserver.
ConfiguringportconfigurationforOracleWebCachewithOPMN
OracleWebCacheusesHTTPorHTTPSlisteningporttoreceiverequests.Youcanalsoaddlisteningports,ifnecessary.Forexample,itmaybenecessarytoaddalisteningporttoassignOracleWebCacheaportthatanoriginserverwaspreviouslylisteningon.
Inadditiontoalisteningport,OracleWebCachealsoreceivesrequestsfortheadminserverprocess,invalidation,andstatisticsmonitoringrequestsonspecificHTTPorHTTPSlisteningports.
VerifyingportconfigurationforOracleWebCache
VerifyingportconfigurationforOracleWebCachewithFusionMiddlewareControl
AddinganOracleWebCachelisteningport
SpecifySitedefinitions
MapsitedefinitionstoOriginServers
TodetermineportsinusebyOracleWebCachewithOPMN,executethefollowingcommands:
NavigatetoyourORACLE_INSTANCE/bindirectoryandexecuteopmnctlstatus-lcommand.Forexample:
$cd/u01/app/oracle/product/fmw/11.1.1.1/as_1/opmn/bin/opmnctlstatus-l
Inthisexample:
Port7785istheHTTPlisteningportforOracleWebCache,representedbyhttp_
listen.
Port7786istheHTTPlisteningportfortheadminserverprocess,representedby
WebCache-admin
Port7787istheHTTPlisteningportforstatisticsmonitoringrequests,represented
byhttp_stat.
Port7788istheHTTPlisteningportforinvalidationrequests,representedby
http_invalidation.
Port7789istheHTTPlisteningportforOracleWebCache,representedbyhttps_
EnterthefollowingURLtodisplayFusionMiddlewareControl.
http:
//<
hostname>
.<
domain>
:
<
port>
/em
EntertheOracleFusionMiddlewareadministratorusernameandpassword.ClickLogin.
Fromthenavigationpane,expandthefarmandthentheWebTierinstallationtype,andselectOracleWebCachecomponent.FromtheWebCachemenu,selectPortUsage.
ThePortsUsagepagedisplays.
Youcanaddlisteningports,ifnecessary.Forexample,itmaybenecessarytoaddlisteningporttoassignOracleWebcacheaportthatanoriginserverwaspreviouslylisteningon.ToaddanHTTPlisteningport:
FromtheWebCachemenu,selectAdministration>
PortsConfiguration.
Theportsconfigurationpagedisplays.ClickCreate.TheCreatePortpageappears.
FromthePortTypelist,selectNORM.IntheIPAddressfield,selectANYtorepresentanyIPaddress.InthePortfield,enterthelisteningportfromwhichOracleWebCachereceivesclientrequestsfortheWebsite.Ensurethatthisportnumberisnotalreadyinuse.Forexample,enter7890.
ClickOK.
4.
ClickWebCache>
Control>
RestarttorestartOracleWebCache.
ClickRestarttoconfirm.
ClickClosewhentherestartoperationcompletessuccessfully.
OracleWebCachecachesandassemblesdynamiccontentforoneormoreWebsites.WhenOracleWebCachereceivesabrowserrequestforadocument,itdeterminesthedestinationsitebyusingoneofthefollowingelements:
∙Hostrequest-headervaluefromtherequest
∙HostportionoftherequestedURL
OracleWebCachethenlooksuptheconfiguredsitesettingsandmappingstodeterminewhetherthesiteissupported,andtheapplicationWebserversorproxyserversandcachingrulesforthesite.
Toconfigureasitedefinition,navigatetotheOracleWebCacheHomepageinFusionMiddlewareControl.FromtheWebCachemenu,selectAdministration>
Sites.
.
TheSitespageisdisplayed.FromtheSiteDefinitionssection,clickCreatetoaddanewsite.
EnterthefollowinginformationtoconfigureOracleWebCachewithinformationaboutthenamedWebsite:
Parameter
Description
Host
Enterthehostnameofthesite,suchas.Donotusethewildcard*torepresentmultiplesites.
Port
EntertheportnumberfromwhichtheWebsiteislisteningforincomingHTTPorHTTPSrequests.Theportnumbershouldbeoftheportusedinbrowserrequests.
URLPrefix
EnterthepathprefixoftheURLstodistinguishthissitefromanothersitethatsharesthesamehostname.DonotincludethefilenameorembeddedURLparametersintheprefixandmakesurethattheprefixstartswith“/”.Whendefiningasitedefinition,youcanspecifyaURLpathprefixforthosesitesthatsharethesamehostname.
OracleWebCacheresolvesanincomingrequestfirsttoasitedefinition,andthentothefirstmatchingsite-to-originservermapping.
ClickApplyandthenrestartOracleWebCachefromWebCache>
Restart.
ClickClosetoclosetheConfirmationwindow.
ConfigureOracleWebCachewiththeapplicationWebserversorproxyserversto
whichitsendscachemisses.Typically,OracleWebCacheusesapplicationWebservers
forinternalsitesandproxyserversforexternalsitesoutsideafirewall.
IfOracleHTTPServerwasinstalled,theinstallationprocesscreatesadefaultorigin
serverbasedonthehostnameandlisteningportofOracleHTTPServer.
OracleWebCacheonlyforwardsrequeststoaconfiguredoriginserveriftheorigin
serverismappedtoaWebsite.
FromtheWebCachemenu,selectAdministrationandthenSites.
TheSitespagedisplays.FromtheSite-to-ServerMappingsection,clickCreate.
EnterthefollowinginformationfortheOriginServertoenableittosendOracleWebCacherequests:
HostPattern
Enterthesitepattern,suchas.
PortPattern
EntertheHTTPorHTTPSportnumberfortheWebsitefromwhichOracleWebCacheislisteningforincomingrequests.
SelecttheWebServer()towhichtheadditionalWebCacheportshouldbemapped.TheWebServerisnowlistedunderSelectedOriginServers.
IntheOriginServerssection,selecttheoriginserver.ClickMove.
ClickApply.
RestartOracleWebCachefromWebCachemenu>
AddingCachingRulesandCompression
IfyouwanttocacheyourdocumentbyusingOracleWebCache,thenyoumustestablishacachingpolicy.Thecachingpolicycanbeembe
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- Configuring Oracle Web Cache for Caching Java EE Application
![提示](https://static.bdocx.com/images/bang_tan.gif)
链接地址:https://www.bdocx.com/doc/21368962.html