性能工程师指南:玩转OpenJDK-HotSpot垃圾收集器课件.pptx
- 【下载声明】
1. 本站全部试题类文档,若标题没写含答案,则无答案;标题注明含答案的文档,主观题也可能无答案。请谨慎下单,一旦售出,不予退换。
2. 本站全部PPT文档均不含视频和音频,PPT中出现的音频或视频标识(或文字)仅表示流程,实际无音频或视频文件。请谨慎下单,一旦售出,不予退换。
3. 本页资料《性能工程师指南:玩转OpenJDK-HotSpot垃圾收集器课件.pptx》由用户(晟晟文业)主动上传,其收益全归该用户。163文库仅提供信息存储空间,仅对该用户上传内容的表现方式做保护处理,对上传内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知163文库(点击联系客服),我们立即给予删除!
4. 请根据预览情况,自愿下载本文。本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
5. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007及以上版本和PDF阅读器,压缩文件请下载最新的WinRAR软件解压。
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 性能 工程师 指南 OpenJDK HotSpot 垃圾 收集 课件
- 资源描述:
-
1、11Performance Engineering2P e r f o r m a n c eE n g i n e e r i n g 2Perfor m a n ce EngineeringPerformance R equirem ents&Test P l a n&DevelopmentPerfor m a n ce Analysis3P e r f o r m a n c e E n g i n e e r i n g P e r f o rRequirementsDesignPerformance R equirem ents&Test P l a n&DevelopmentImp
2、lementationPerfor m a n ce Analysis4R e q u i r e m e n t s D e s i g n P e r f o r m a n c e Perfor m a n ce R equirem ents5P e r f o r m a n c eR e q u i r e m e n t s 56Performance Requirem entsThro ug hput?R espo n se times?Capacity?Fo otpr int?Availability?6 P e r f o r m a n c e R e q u i r e
3、m e n t s T h r o7Performance Analysis7 P e r f o r m a n c eA n a l y s i s8Perfor m a n ce AnalysisMon itor ing System Under TestUtil iz atio n,L o c k Stats,Appl icatio n,System,Memory,ProfilingAnaly zin g logs8 P e r f o r m a n c e A n a l y s i s Mo n i t o r i9JVM Performance Engineering9 J V
4、 MP e r f o r m a n c eE n g i n e e r i n gJava ApplicationJ ava A P IOS+Hardware10JR EJ I T CompilerJava VMG CClass loaderR u ntim eJ a v aA p p l i c a t i o n J a v a A P I O S+Study,Analyz e,TuneJava Devel opm ent KitJ I TC o m piler+RuntimeGarbage Collector/C o l lectio nJ ava API11S t u d y,A
5、 n a l y z e,T u n e J a v a D eGarbage Collection Perfor m a n ce E ng in eer ing12G a r b a g eC o l l e c t i o n P e r f o r m a n cG CPerfor m a n ce EngineeringJVMMonitoringAppl icatio n ProfilingPro cess&Plot G C logsOnline&Off l in e G C MonitoringHeap Prof il ing13G C J V MA p p l i c a t i
6、 o n P r o f i l i n g P r oG arbag e C o l lectio n-F acts,Trade-Offs A n d Algorithms14G a r b a g eC o l l e c t i o n-F a c t s,TG C ca n NOT el im in ate yo ur m em o r y leaks!G C(a n d hea p d um p)ca n pro vid e a n insight into your application.15GC Fact!G Cc a nN O Te l i m i n a t ey o u
7、rm e m oTotal Occupied HeapOld generationYoung generationLive Data Set16T o t a l O c c u p i e d H e a p Y o u n g g e n e rThro ug hput a n d l aten cy are the two m a in drivers towards refinement o f G C algorithms.17GC Fact!T h r o u g h p u ta n dl a t e n c ya r etThe Throughput MaximizerMaxi
8、mize Thro ug hputG enerationalOldParal lel WorkYo ungC o n c ur rent ThreadsStop-t he-wor l d Threads18T h e T h r o u g h p u t Ma x i m i z e r Ma x i m iMr.Latency SensitiveLatency SensitivePa use o n ly when neededConcurrent Mark i ng/SweepingRe d u ce stop-the-wor l d G Cpause timeNo/Partial C
9、o m pactio n19Mr.L a t e n c y S e n s i t i v e L a t e n c ySL ets l o okat Open J DK HotSpot G C s:)20L e t sl o o ka tO p e n J D KH o t S p o tThro ug hput MaximizerLatency Sen sitiveParal lel G C21CMS G CG 1 G CT h r o u g h p u t Ma x i m i z e r L a t e n c y Al l G C s in Open J DK HotSpot
10、are generational.22GC Fact!A l lG C si nO p e n J D KH o t S p o ta r eYo u n g G e n eratio nOld G e n eratio nEd e nSurvivors23Y o u n g G e n e r a t i o n O l d G e n e r a t iEd e nAllocationsSur vivorsYo u n g Generation24E d e n A l l o c a t i o n s S u r v i v o r s Y o u n g25Fast Path All
11、ocation=L o c k-F r e e Allocation=T hread s Al l o cate I nto T heirLo cal Al l o catio n Buff er(LAB)s2 5 F a s tP a t hA l l o c a t i o n=L o cE d e n26TLABTLABTLABTLABTLABTLAB=Thread Local Allocation BufferE d e n 2 6 T L A B T L A B T L A B T L A B T L A B T L A BThread 1Thread 2Thread 3Thread
12、 4TLABTLABEd e nTLABTLABTLABThread 027T h r e a d1 T L A B T L A B E d e n T L A B T L A B T hEd e nAllocationsSur vivorsYo u n g GenerationS0S128E d e n A l l o c a t i o n s S u r v i v o r s Y o u n gEd e nAllocationsSur vivorsYo u n g GenerationS0S129E d e n A l l o c a t i o n s S u r v i v o r
13、 s Y o u n g30G arbag e C o l lectio n-Reclamation.3 0 G a r b a g eC o l l e c t i o n-R e c l a mY o u n g Generation31Old GenerationEd e nS0S1Y o u n gG e n e r a t i o n 3 1 O l dG e n e r a t i*Similar G C Algorithms for Open J DK HotSpotDiff erent G C Al g or ithm s for OpenJDK HotspotAlwa ys
14、co l lected in its entiretyYo u n g Generation32Old Generation*S i m i l a rG C A l g o r i t h m sf o r OAlwa ys co l lected in its entirety33Yo u n g GenerationOld Generation*Similar G C Algorithms for Open J DK HotSpotDiff erent G C Al g or ithm s for OpenJDK HotspotA l w a y sc o l l e c t e di
15、ni t se n t i r eY o ung G arbag e C o l lectio n=Reclamation Via Scavenging34Y o u n gG a r b a g eC o l l e c t i o n=ROldGenerationR o ot SetYo u n g Generation35O l dG e n e r a t i o n R o o tS e t Y o u n gG eSurvivorEd e nY o u n g Generation36S u r v i v o r E d e n Y o u n gG e n e r a t i
16、o n 3 6SurvivorEd e nY o u n g Generation37S u r v i v o r E d e n Y o u n gG e n e r a t i o n 3 7SurvivorEd e nY o u n g Generation38S u r v i v o r E d e n Y o u n gG e n e r a t i o n 3 8Ol d G arbag e C o l lectio n=Different G CAlgorithms39O l dG a r b a g eC o l l e c t i o n=D i fThe Through
17、put CollectorMulti-ThreadedMulti-Threaded-Entire Heap M a r ke d,Swept a n d Compacted in its entiretyAlwa ys co l lected in its entiretyYo u n g Generation40OldGenerationT h e T h r o u g h p u t C o l l e c t o r Mu l t i-Multi-ThreadedMulti-Threaded-Entire Heap M a r ke d,Swept a n d Compacted in
18、 its entiretyAlwa ysco l lected in itsentirety41Yo u n g GenerationOld GenerationMu l t i-T h r e a d e d Mu l t i-T h r e a d e d -Old GenerationR o otSetYo u n g GenerationGarbage Collection-Reclamation via Parallel Mark-Compact42O l dG e n e r a t i o n R o o tS e t Y o u n gG eGarbage Collection
19、-Reclamation via Parallel Mark-CompactOld Generation43G a r b a g e C o l l e c t i o n -R e c l a m a t i oGarbage Collection-Reclamation via Parallel Mark-CompactOld Generation44G a r b a g e C o l l e c t i o n -R e c l a m a t i oGarbage Collection-Reclamation via Parallel Mark-CompactOld Genera
20、tionso urce reg io n45de stinatio n regionG a r b a g e C o l l e c t i o n -R e c l a m a t i oGarbage Collection-Reclamation via Parallel Mark-CompactOld Generationso urce reg io nde stinatio n region46G a r b a g e C o l l e c t i o n -R e c l a m a t i oGarbage Collection-Reclamation via Paralle
展开阅读全文