微软原厂培训-Web相关内容培训_第1页
微软原厂培训-Web相关内容培训_第2页
微软原厂培训-Web相关内容培训_第3页
微软原厂培训-Web相关内容培训_第4页
微软原厂培训-Web相关内容培训_第5页
已阅读5页,还剩42页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

WEB相关内容 CharlesJuSeniorPFE Microsoft 调试 CLRProcess Module Class MethodTable MethodDescription垃圾回收原理WindbgSOS符号加载常用命令 Assembly Module dumpassembly dumpmodule SystemDomain SharedDomain Assembly Foo1 dll Assembly Foo2 dll Assembly Foo3 dll AppDomain dumpdomain EEClass dumpclass EEClass Class3 EEClass Class2 EEClass Class1 MethodTable dumpmt MethodDesc FunctionOne MethodDesc FunctionTwo MethodDesc FunctionThree W3wp exe AppDomain 1 AppDomain 2 EEClass Class4 MethodDesc dumpmd The NETRuntimewithinaProcess MethodDesc NETThreading Amanagedthreadisathreadobject itcanliveonanativethreadManagedcodeoftencallsintounmanagedcode Example Unmanagedcode JIT Managedcode calledanun JITtedmethod Managedcode Unmanagedcode EEfoundoutthetargetmanagedmethodandmadethecall Managedcode madealatebindingcall Managedcode Unmanagedcode ThreadProccallsmanagedThreadStartDelegate callstackgrows CLRThreadsFinalizerGC Servermode DebuggerTimerThreadpool I O Worker ManagedThreadsSystem Threading ThreadAssociatedwithnativethreads NETSourcecode ILandMetadata ManagedExecutionPhases NativeCode CompileTime RunTime Phase NETSourcecode ILandMetadata ILandMetadata NativeCode JIT CLR Compile Executethenativecode MyModule Func1 Firstcall CILJit compileMethod x86 PreJit compileMethod x64 verifiesandcompilestheIL Nativecode GCInfo EHdata etc Storenativecodeinmemory StoretheaddressinMethodDesc Executethenativecode Yes RetrieveaddressofnativecodefromMethodDesc No ManagedExecution JITCompilation UnderstandingManagedMemory ManagedheapsLoaderheapNativeheapsThreadsImages dllfiles Other virtualallocations Free 0 x00000000 0 x7FFFFFFF GCSequence Markgc heap mark phase Sweepmake free lists Plangc heap plan phase Relocategc heap relocate phase Compactgc heap compact phase Compact SuspendEE RestartEE No Yes Gen0 Gen1 Mark Plan Relocate Compact Gen2 3 1 2 5 6 7 9 8 10 4 11 12 13 14 15 16 GCSequenceinMotion Process1 exe Managedheap Gen2 Gen1 Gen0 1 2 3 4 Notafinalizableobject Finalizableobject followsDisposepattern Finalizableobject doesn tfollowDisposepattern 5 Mark Sweep Compact 6 7 8 9 10 11 12 13 14 15 16 17 18 Finalizers VisualOverview BuildanExceptionInformationTableforeachexecutable Searchforanentryforthecurrentmethodinthetabletohandletheexception Handlerfound Createanexceptionobject Searchforanentryforthecallerofthecurrentmethodinthecallstack Exceptionoccurs Beginningofcallstack no no yes yes Exception HandlingModel PopulateexceptionobjectExecutefinallyblocks PopulateexceptionobjectExecutefinallyblocksResumeexecution Unhandledexceptionevent Terminateprocess NotifyDebugger1stChance NotifyDebugger2ndChance UnhandledExceptions UhE OccurswhenanexceptionisthrownandnocatchfilteracceptstheexceptionobjectSetupUnhandledExceptionEventHandlerDelegatethatistriggeredbyanunhandledexceptionCLRhandlesUhEsdifferently dependingonthetypeofthreadonwhichtheUhEoccurred 调试 常见场景阻塞高CPU高内存进程崩溃 SQLServer索引调优 数据存储堆表索引存储及查找创建索引执行计划I O BasicPageStructure Allpagescontainaheader abody andaslotarray ClusteredIndex DataAccess Heap DataAccess Non ClusteredIndexeswithaHeap Allrowsonleafpageshavepointerstodatarows Non ClusteredIndexwithaClusteredIndex Entriesinthenonclusteredleafpagescontainclusteredindexkeyvalues IIS 架构对比重要的配置文件常见工具分析Hang与Crash IIS6 0ProcessModel Svchost exe Inetinfo exe WWWService w3svc IISAdminService metabase FTPService SMTPService NNTPService Lsass exe WindowsAuthentication HTTPAPI Webgarden w3wp exe SSL Winsock TCPIP SYS HTTP SYS UserKernel ApplicationPool w3wp exe IISCORE IIS6 0RequestFlow HTTP SYS UserKernel aspnet isapi dll ISAPIFilterNotifications customerrors authentication logging compression determinehandler NotifyAuth NotifyPreProc NotifyLog NotifyResponse CGI Static ISAPI urlmap Beginreq authentication authorization resolvecache maphandler handlerexec updatereqcache relreqstate endrequest IHttpHandlers trace axd pagehandler IHttpModuleEvents ASPXRequest StaticRequest IIS7 5ProcessModel Configuration applicationhost config Svchost exe Inetinfo exe WWWService w3svc IISAdminService metabase FTPService SMTPService NNTPService LSASS EXE HTTPAPI Webgarden w3wp exe Winsock TCPIP SYS HTTP SYS UserKernel ApplicationPool w3wp exe WAS ManagedMods ManagedMods ManagedMods SSL WindowsAuth IIS7 5RequestFlow Integratedpipeline begin authenticate authorize resolvecache maphandler acquirestate pre executehandler executehandler releasestate updatecache log end IHttpModule NativeorManagedHandlers aspx trace axd ManagedIHttpHandler isapiext staticfile NativeModule NativeHandler UserKernel HTTP SYS IIS7 5ProcessingModes ClassicModeSimilartoIIS6 0UseasamigrationpathtoIntegratedmode NETmodulesdonothaveaccesstonativecontentprocessingDuplicationofprocessingsteps e g Authentication IntegratedModeNew NativeModelforIIS7 0and7 5UnifiedRequestProcessingModel NETprocessinghasaccesstostaticrequests etc ClassicMode Authentication FormsAuthentication WindowsAuthentication MapHandler ASP NET HTTPRequest HTTPResponse IntegratedMode BasicAuth WindowsAuth FormsAuth StaticFile ASPX ISAPI ASPetc CGI WindowsProcessActivationService WAS CoreDependencyforaWebServerConfigurationManagerProcessManagerListenerAdapterInterfaceSupportforNon HTTPProtocols ConfigurationStore Machine Config applicationHost Config RootWeb config SiteWeb Config ApplicationWeb Config DirectoryWeb Config CoreComponentInteraction HTTP SYS W3SVC WAS WorkerProcess ConfigurationStore 1 2 9 3 8 4 5 6 7 10 11 12 Kernel User ConfigurationHierarchy MACHINE WEBROOT APPHOST SiteName VirtualDir Machine config Rootweb config applicationHost config optionalweb config optionalweb config optionalweb config NETFramework IIS Machine config Presentintheframeworkfolder windir Microsoft NET Framework vX X XXXX Config windir Microsoft NET Framework64 vX X XXXX ConfigOnefilepersystemperframeworkversionContainssettingsfor NETFrameworkatasystemlevelTopoftheconfigurationhierarchywhenspecifyingapath AdditionalConfigurationFiles administration configUIsettingsModules Delegationsettings etc IISManagerUsers credentialsredirection configUsedwhenSharedConfigurationisenabledPointstotheremoteapplicationHost configusedwithSharedConfiguration Appcmd exe windir system32 inetsrv appcmd exeProvidesasinglecommandlineinterfaceformanagingtheentireWebserverAllowspipingoutputtofilesystem choiceoftextorXMLoutputAdministrator levelpermissionrequiredtorunit APPCMDUI WrapsAppcmd exetoprovideanauto completeinterfaceProvideshelpforcommands includingsampleoutputNosupportprovidedbyCSSDownloadfrom PSv2 Set ExecutionPolicyRemoteSignedImport ModuleWebAdministrationget command moduleWebAdministrationFilesystemIIS Cd Dir IISLogFiles Weblogs w3svc logfiledirectory haveanewhomeinIIS7 x theyarenowlocatedinc inetpub logs logfilesTimeTakenHTTPStatusCodes Sub StatusCodesTheHTTPErrorlogsremaininc windows system32 logfiles httperrFailedRequestTracinglogsarelocatedinc inetpub logs FailedReqLogFilesDetailedlogoffailedrequests NotenabledbydefaultUseSystemandApplicationEventLogsfortroubleshootingserviceerrorsandworkerprocessfailures FailedRequestEventBuffering FREB Enableno reproinstrumentationfor failedrequests Turntracingon butonlykeeptheeventsfor failedrequests AllowforcustomfailuredefinitionsperURLTimetakenStatus substatuscodesEnableper URLtraceconfigurationDefinewhattotraceonaperURLbasisExample onlytraceaspneteventsfor aspx Persistfailurelogfilesbeyondprocesslifetime EventTracingforWindows ETW High performance low overheadtracingmechanismbuiltintoWindowsProvider consumerarchitectureApplicationscanregistertheirowneventprovidersMany manyprovidersinServer2008R2LogmanqueryproviderstolistCantrace IISstartup shutdownRequestsConfigurationchangesMuchmore ETW logmanqueryproviderslogmanqueryproviders ASP NETEvents logmanstartaspnet p ASP NETEvents 0 xF0 x05 oaspnet etl etsLogmanstopaspnet etstracerptaspnet etl oaspnetdump csv ofCSV RuntimeStatusandControlAPI RSCA APItoobtainruntimestatus controlof AppPoolsWorkerProcessesWebSitesAppDomainsProvidemeansofobtainingcurrentruntimestateofApplicationPools WebSites ApplicationDomains WorkerProcessesProvidedirect consistentwaytostart stopwebsitesExposedetailedruntimestatedata Tools IISLogsFailedRequestEventBufferingEventTracingforWindowsRuntimeStatusandControlAPIConfigurationAuditingBestPracticesAnalyzerDelegationConfigurationToolFiddlerLogparserPerformanceMonitor Tools conti

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论