Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Live Java Profiling
Search
Fabian Lange
November 07, 2012
Technology
1
980
Live Java Profiling
Fabian Lange
November 07, 2012
Tweet
Share
More Decks by Fabian Lange
See All by Fabian Lange
Building a Kubernetes Operator in Quarkus
codingfabian
0
220
Building a Tech Startup Outside the Silicon Valley
codingfabian
0
120
How we process billions of metrics to make your microservices run smoothly
codingfabian
1
260
Predicting and Preventing Outages
codingfabian
0
170
Moderne Architekturen zeitgemäß überwachen und optimieren
codingfabian
0
160
Does My Profiler Tell The Truth - JavaZone & JavaOne 2015
codingfabian
1
2.4k
Web Performance Optimization
codingfabian
0
1.1k
Does My Profiler Tell The Truth?
codingfabian
1
3.9k
Garbage Collection Probleme Einfach Lösen
codingfabian
0
1.3k
Other Decks in Technology
See All in Technology
金融サービスにおける高速な価値提供とAIの役割 #BetAIDay
layerx
PRO
1
830
家族の思い出を形にする 〜 1秒動画の生成を支えるインフラアーキテクチャ
ojima_h
3
1.1k
「AIと一緒にやる」が当たり前になるまでの奮闘記
kakehashi
PRO
3
140
専門分化が進む分業下でもユーザーが本当に欲しかったものを追求するプロダクトマネジメント/Focus on real user needs despite deep specialization and division of labor
moriyuya
1
1.3k
Segment Anything Modelの最新動向:SAM2とその発展系
tenten0727
0
750
AI関数が早くなったので試してみよう
kumakura
0
290
リリース2ヶ月で収益化した話
kent_code3
1
260
人に寄り添うAIエージェントとアーキテクチャ #BetAIDay
layerx
PRO
9
2.2k
【CEDEC2025】『Shadowverse: Worlds Beyond』二度目のDCG開発でゲームをリデザインする~遊びやすさと競技性の両立~
cygames
PRO
1
370
ファッションコーディネートアプリ「WEAR」における、Vertex AI Vector Searchを利用したレコメンド機能の開発・運用で得られたノウハウの紹介
zozotech
PRO
0
290
✨敗北解法コレクション✨〜Expertだった頃に足りなかった知識と技術〜
nanachi
1
700
相互運用可能な学修歴クレデンシャルに向けた標準技術と国際動向
fujie
0
250
Featured
See All Featured
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
60k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
183
54k
jQuery: Nuts, Bolts and Bling
dougneiner
63
7.8k
Building an army of robots
kneath
306
45k
Writing Fast Ruby
sferik
628
62k
Facilitating Awesome Meetings
lara
54
6.5k
Why You Should Never Use an ORM
jnunemaker
PRO
58
9.5k
Thoughts on Productivity
jonyablonski
69
4.8k
It's Worth the Effort
3n
185
28k
Balancing Empowerment & Direction
lara
1
540
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
47
9.6k
Building Adaptive Systems
keathley
43
2.7k
Transcript
Live Java Profiling Fabian Lange
Haben wir ein Problem?
"WE SHOULD FORGET ABOUT SMALL EFFICIENCIES, SAY ABOUT 97% OF
THE TIME: PREMATURE OPTIMIZATION IS THE ROOT OF ALL EVIL" Donald Knuth (1974)
Wissen ist Macht
Die JVM als Informant
Der Profiler als Übersetzer
Profiler sind Nerds
Sprache der Profiler • Instrumentation • Sampling • Wall Clock
& CPU Time • Self & Cumulative • Allocation • Live & GCed • Hotspot
Pseudocode t main() foo() bar() baz()
Sampling t main() foo() bar() baz()
Sampling t main() foo() bar() baz()
Sampling t main() foo() bar()
None
Instrumentation t main() foo() bar() baz()
Instrumentation t main() foo() bar() baz()
PROFILERBAU https://github.com/CodingFabian/SamplingVsInstrumentation
https://blog.codecentric.de/en/2011/10/measure-java-performance- sampling-or-instrumentation/
http://www-plan.cs.colorado.edu/klipto/ http://bryanpendleton.blogspot.de/2010/08/improving-accuracy-of- java-profilers.html
REAL WORLD
ITEXT
None
ITEXT Analyse mit JProfiler
JBOSS RULES
None
JBOSS RULES Analyse mit JProfiler
VAADIN
None
VAADIN Analyse mit JProfiler
GLUSTER
None
-XX:+HeapDumpOnOutOfMemoryError
GLUSTER Analyse mit Eclipse MAT
Profiling Tipps • Mit Sampling starten • CPU – Hotspots
– Pfeil-Rechts • Speicher – Allocation Hotspots – Hohe Objektanzahl – Filter nach eigenem Package • Threads – Timeline – Dumps • Absolute / Relative Anzeige ausprobieren
PROFILING IST EINFACH
Kontakt • CodingFabian •
[email protected]
• blog.codecentric.de Folien auf speakerdeck.com/codingfabian