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
970
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
200
Building a Tech Startup Outside the Silicon Valley
codingfabian
0
110
How we process billions of metrics to make your microservices run smoothly
codingfabian
1
240
Predicting and Preventing Outages
codingfabian
0
160
Moderne Architekturen zeitgemäß überwachen und optimieren
codingfabian
0
150
Does My Profiler Tell The Truth - JavaZone & JavaOne 2015
codingfabian
1
2.3k
Web Performance Optimization
codingfabian
0
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
[JAWS-UG金沢支部×コンテナ支部合同企画]コンテナとは何か
furuton
3
330
Microsoft Intune アプリのトラブルシューティング
sophiakunii
1
370
DatabricksにおけるLLMOpsのベストプラクティス
taka_aki
4
1.6k
"君は見ているが観察していない"で考えるインシデントマネジメント
grimoh
4
980
Fargateを使った研修の話
takesection
0
160
State of Open Source Web Mapping Libraries
dayjournal
0
200
LINEヤフー株式会社における音声言語情報処理AI研究開発@SP/SLP研究会 2024.10.22
lycorptech_jp
PRO
2
270
国土交通省 データコンペ参加者向け勉強会
takehikohashimoto
0
360
「視座」の上げ方が成人発達理論にわかりやすくまとまってた / think_ perspective_hidden_dimensions
shuzon
2
15k
SREの組織類型に応じた リーダシップの考察
kenta_hi
PRO
0
590
Railsで4GBのデカ動画ファイルのアップロードと配信、どう実現する?
asflash8
1
150
ジョブマッチングサービスにおける相互推薦システムの応用事例と課題
hakubishin3
3
610
Featured
See All Featured
Agile that works and the tools we love
rasmusluckow
327
21k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
505
140k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
42
2.2k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
38
1.8k
Raft: Consensus for Rubyists
vanstee
136
6.6k
Visualization
eitanlees
145
15k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
Into the Great Unknown - MozCon
thekraken
32
1.5k
A designer walks into a library…
pauljervisheath
202
24k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
26
2.1k
Git: the NoSQL Database
bkeepers
PRO
427
64k
Teambox: Starting and Learning
jrom
133
8.8k
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