Tuning Networks.docx

上传人:b****5 文档编号:28779698 上传时间:2023-07-19 格式:DOCX 页数:16 大小:23.11KB
下载 相关 举报
Tuning Networks.docx_第1页
第1页 / 共16页
Tuning Networks.docx_第2页
第2页 / 共16页
Tuning Networks.docx_第3页
第3页 / 共16页
Tuning Networks.docx_第4页
第4页 / 共16页
Tuning Networks.docx_第5页
第5页 / 共16页
点击查看更多>>
下载资源
资源描述

Tuning Networks.docx

《Tuning Networks.docx》由会员分享,可在线阅读,更多相关《Tuning Networks.docx(16页珍藏版)》请在冰豆网上搜索。

Tuning Networks.docx

TuningNetworks

TuningNetworks

Thischapterdescribesdifferentconnectionmodelsandintroducesnetworkingissuesthataffecttuning.

Thischaptercontainsthefollowingsections:

∙UnderstandingConnectionModels

∙DetectingNetworkProblems

∙SolvingNetworkProblems

UnderstandingConnectionModels

Thetechniquesusedtodeterminethesourceofproblemsvarydependingontheconfiguration.Youcanhaveasharedserverconfigurationoradedicatedserverconfiguration.

∙Ifyouhaveasharedserverconfiguration,thenLSNRCTLserviceslistsdispatchers.

∙Ifyouhaveadedicatedserverconfiguration,thenLSNRCTLserviceslistsdedicatedservers.

Itispossibletoconnecttodedicatedserverwithadatabaseconfiguredforsharedserversbyplacingtheparameter(SERVER=DEDICATED)intheconnectdescriptor.

SharedServerConfiguration

Thissectiondiscussesthesetupsforthesharedserverconfiguration.

RegisteringtheDispatchers

TheLSNRCTLcontrolutility'sservicesstatementlistseverydispatcherregisteredwithit.ThislistincludesthedispatchersprocessID.Youcancheckthealertlogtoconfirmthatthedispatchershavebeenstartedsuccessfully.

Note:

RememberthatPMONcantakeaminutetoregisterthedispatcherwiththelistener.

LSNRCTL>services

Connectingto

(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=helios)(PORT=1521)))

ServicesSummary...

Service""has1instance(s).

Instance"sales",statusREADY,has3handler(s)forthisservice...

Handler(s):

"DEDICATED"established:

0refused:

0state:

ready

LOCALSERVER

"D000"established:

0refused:

0current:

0max:

10000state:

ready

DISPATCHER

helios,pid:

1689>

(ADDRESS=(PROTOCOL=tcp)(HOST=helios)(PORT=52414))

"D001"established:

0refused:

0current:

0max:

10000state:

ready

DISPATCHER

helios,pid:

1691>

(ADDRESS=(PROTOCOL=tcp)(HOST=helios)(PORT=52415))

Thecommandcompletedsuccessfully.

SeeAlso:

OracleNetServicesAdministrator'sGuideforinformationonsettingtheoutputmode

ConfiguringInitializationParametersforSharedServers

Thefollowinglistprovidesinformationonconfiguringinitializationparametersforsharedservers.

∙MakesurethattheDISPATCHERSlineiscorrectlyset.Forexample:

∙DISPATCHERS="(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)

∙(HOST=hostname)(PORT=1492)(queuesize=32)))

∙(DISPATCHERS=1)

∙(LISTENER=alias)

∙(SERVICE=servicename)

∙(SESSIONS=1000)

∙(CONNECTIONS=1000)

∙(MULTIPLEX=ON)

∙(POOL=ON)

∙(TICK=5)"

One,andonlyone,ofthefollowingattributesisrequired:

∙PROTOCOL

∙ADDRESS

∙DESCRIPTION

ADDRESSandDESCRIPTIONprovidesupportforthespecificationofadditionalnetworkattributesbeyondPROTOCOL.Inthepreviousexample,theentireDISPATCHERSlinecanbe(PROTOCOL=TCP).TheattributesDISPATCHERS,LISTENER,SERVICE,SESSIONS,CONNECTIONS,MULTIPLEX,POOL,andTICKSarealloptional.

MakesurethattheoptionalMAX_DISPATCHERSlineiscorrectlyset.Forexample:

MAX_DISPATCHERS=4

Thislineshouldreflectthetotalnumberofdispatchersyouwanttostart.

MakesurethattheoptionalMAX_SHARED_SERVERSlineiscorrectlyset.Forexample:

MAX_SHARED_SERVERS=5

ThislinesetstheupperboundonthetotalnumberofsharedserversPMONcancreate,basedonthepeakloadofthesystem.Thisshouldbesethighenoughsothatallrequestscanbeserviced,butnotsohighthatthesystemswapsiftheyarereached.Thepurposeofthisparameteristopreventtheserverfromswapping.Runthefollowingscripttoseewhatthehighwatermarkisforthenumberofserversrunning,andthensetMAX_SHARED_SERVERStomorethenthis.

SELECTmaximum_connections"MAXCONN",servers_started"STARTED",servers_

terminated"TERMINATED",servers_highwater"HIGHWATER"FROMV$SHARED_SERVER_

MONITOR;

∙MakesurethattheoptionalSHARED_SERVERSlineiscorrectlyset.Forexample:

∙SHARED_SERVERS=5

Thisisthetotalnumberofsharedserversstartedwhenthedatabaseisstarted.ItalsorepresentsthetotalnumberofsharedserversPMONtriestokeep.Itshouldbethetotalnumberofserversexpectedtobeusedwhenthedatabaseisactive.MAX_SHARED_SERVERSisintendedtohandlepeakload.

CheckingtheConnections

UsetheLSNRCTLcontrolutility'sservicescommandtoseeifthereareexcessiveconnectionrefusals.Checkthelistener'slogfiletoseeifthisisaconnectionproblem.Forexample:

LSNRCTL>services

Connectingto

(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=helios)(PORT=1521)))

ServicesSummary...

Service""has1instance(s).

Instance"sales",statusREADY,has2handler(s)forthisservice...

Handler(s):

"DEDICATED"established:

11refused:

0state:

ready

LOCALSERVER

"D000"established:

565refused:

4current:

155max:

10000state:

ready

DISPATCHER

helios,pid:

5673>

(ADDRESS=(PROTOCOL=tcp)(HOST=helios)(PORT=38411))

Thecommandcompletedsuccessfully.

Undernormalconditions,thenumberrefusedshouldbezero.Shutdownthelistenerandrestartittoerasethesestatistics.Iftherefusedcountisincreasingafterthelistenerrestarts,thentheconnectionsarebeingrefused.Iftherefusedcountstaysatzero,andiftheproblemyouaretroubleshootingisoccurring,thenyourproblemisnotwiththeconnectionsbeingrefused.

CheckingtheConnect/SecondRate

Connectionrefusalscanoccurformanyreasons.Examinethelistenerlogtoseewhattheconnectrateis.Runthelistenerloganalyzerscripttocheck.

Thelistenerisaqueue-basedprocess.Itreceivesconnectrequestsfromthelowerlevelprotocolstack.Ithasalimitedqueuestackwhichisconfigurabletotheoperatingsystemmaximum.Itcanonlyprocessoneconnectionatatime,andthereisalimittothenumberofconnectionsasecondtheprocesscanhandle.

Iftherateatwhichtheconnectrequestsarriveexceedsthatlimit,thentherequestsarequeued.Thequeuestackisalsolimited,butyoucanconfigureit.Iftherearemorelistenerprocesses,thentherequestsmadeagainsteachindividualprocessarefewerandarehandledmorequickly.

Increasingthelistenerqueueisdoneinthelistener.orafile.Thelistener.orafilecancontainmanylisteners,eachbyadifferentname.Itisassumedthatonlyoneofthoselistedishavingaproblem.Ifnot,thenapplythismethodtoallapplicablelisteners.Toincreasethelistenerqueue,add(queuesize=number)tothelistener.orafile.Forexample:

listener=

(address=

(protocol=tcp)

(host=sales-pc)

(port=1521)

(queuesize=20)

SeeAlso:

OracleNetServicesAdministrator'sGuide

Stopandrestartthelistenertoinitializethisnewparameter.Ifyouarenotcurrentlyrunningasharedserverconfiguration,thenconsiderdoingso.Itisfasterforthelistenertohandleaclientrequestinasharedserverconfigurationthanitisinadedicatedserverconfiguration.

Note:

Sharedserverdispatchersalsoreceiveconnectrequestsandcanalsobenefitfromtuningthequeuesize.

Themaximumqueuesizeissubjecttothemaximumsizepossibleforaparticularoperatingsystem.

DetectingNetworkProblems

Thissectionencompasseslocalareanetwork(LAN)andwideareanetwork(WAN)troubleshootingmethods.

UsingDynamicPerformanceViewsforNetworkPerformance

Networksentailoverheadthataddsacertainamountofdelaytoprocessing.Tooptimizeperformance,youmustensurethatyournetworkthroughputisfast,andyoushouldtrytoreducethenumberofmessagesthatmustbesentoverthenetwork.Itcanbedifficulttomeasurethedelaythenetworkadds.

Threedynamicperformanceviewsareusefulformeasuringthenetworkdelay:

∙V$SESSION_EVENT

∙V$SESSION_WAIT

∙V$SESSTAT

InV$SESSION_EVENT,theAVERAGE_WAITcolumnindicatestheamountoftimethatOraclewaitsbetweenmessages.Youcanusethisstatisticasayardsticktoevaluatetheeffectivenessofthenetwork.

InV$SESSION_WAIT,theEVENTcolumnliststheeventsforwhichactivesessionsarewaiting.The"sqlnetmessagefromclient"waiteventindicatesthatthesharedorforegroundprocessiswaitingforamessagefromaclient.Ifthiswaiteventhasoccurred,thenyoucanchecktoseewhetherthemessagehasbeensentbytheuserorreceivedbyOracle.

Youcaninvestigatehang-upsbylookingatV$SESSION_WAITtoseewhatthesessionsarewaitingfor.Ifaclienthassentamessage,thenyoucandeterminewhetherOracleisrespondingtoitorisstillwaitingforit.

InV$SESSTATyoucanseethenumberofbytesthathavebeenreceivedfromtheclient,thenumberofbytessenttotheclient,andthenumberofcallstheclienthasmade.

UnderstandingLatencyandBandwidth

Themostcriticalaspectsofanetworkthatcontributetoperformancearelatencyandbandwidth.

∙Latencyreferstoatimedelay;forexample,thegapbetweenthetimeadevicerequestsaccesstoanetworkandthetimeitreceivespermissiontotransmit.

∙Bandwidthisthethroughputcapacityofanetworkmediumorprotocol.Variationsinthenetworksignalscancausedegradationonthenetwork.Sourcesofdegradationcanbecablesthataretoolongorwrongcabletype.Externalnoisesources,suchaselevators,airhandlers,orflorescentlights,canalsocauseproblems.

CommonNetworkTopologies

LocalAreaNetworkTopologies:

∙Ethernet

∙FastEthernet

∙1GigabitEthernet

∙TokenRing

∙FDDI

∙ATM

WideAreaNetworkTopologies:

∙DSL

∙ISDN

∙FrameRelay

∙T-1,T-3,E-1,E-3

∙ATM

∙SONAT

Table 11-1liststhemostcommonratingsforvarioustopologies.

Table11-1 BandwidthRatings

TopologyorCarrier

Bandwidth

Ethernet

10Megabits/second

FastEthernet

100Megabits/second

1GigabitEthernet

1Gigabits/second

TokenRing

16Megabits/second

FDDI

100Megabits/second

AT

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

当前位置:首页 > 高中教育 > 语文

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

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