Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up
for free
Java Memory Troubleshooting
perforb
December 04, 2017
Technology
0
6
Java Memory Troubleshooting
perforb
December 04, 2017
Tweet
Share
More Decks by perforb
See All by perforb
perforb
0
9
perforb
1
10
perforb
1
21
Other Decks in Technology
See All in Technology
nozomiito
0
170
clustervr
0
210
shimacos
2
360
kilometer
0
150
ocise
0
190
texmeijin
1
370
mukai21
2
460
hololab
0
350
kamijin_fanta
0
110
chaspy
1
440
kenya888
1
140
hikarut
1
100
Featured
See All Featured
erikaheidi
13
4.2k
sachag
446
36k
maltzj
500
36k
chriscoyier
499
130k
hursman
106
9.2k
matthewcrist
73
7.5k
mongodb
23
3.8k
nonsquared
81
3.3k
tmm1
61
8.5k
hatefulcrawdad
257
17k
bkeepers
52
4.2k
shlominoach
176
7.4k
Transcript
1 0 7/2 4
1 J a b e W
+ • + • J •
• • J •
RS PVU • .GE K 0 • . K 58
• M.6 J" , 1- E EG O • B M M J G • G B C M J G , • 5 2 7 K E 0 M G E K D , ) • 5 2 ( - K 8 M 4 D ) )" E EG
st • 3B3 cb • 1 -) 2 2 •
1 -) 2 2 • 3 3 A 2 2 • (3A5 2 2 • N cb • 6 3 A • 6 3B • • A a e nl bd brTMW Xv RI ghi x T o S S S m J P
S I • 3B3M • 1 -) 2 2 •
1 -) 2 2 • 3 3 A 2 2 • (3A5 2 2 • I M • 6 3 A • 6 3B • • A N PWTX R JM
• •
• ( ( ) •
J H - : - - / 8 /- 8
.
• c N N dV • > < • 1
> - < C3. 3 3 • 51 > • 51 > • > 3 > > • C3a_ M T b • C3 3 1 <5 • )( G M T b e
. : - > 5<: .- • pcb g y
klnfme a • = • 0- % T t M • u V sN obi bd_jV v Xr J • 11(. : - > 5<: >> 11(. : - > 5<: := • 5> ) : 0- : > > := • 5> ) : 0- : > > =: • 5> ) : 0- : > > := :88
( )( Total: reserved=3224257KB +49008KB, committed=1987281KB +89092KB - Java Heap
(reserved=1572864KB, committed=1572864KB) - Class (reserved=1137209KB +23765KB, committed=98565KB +25045KB) (classes #14873 +2984) - Thread (reserved=30938KB +8582KB, committed=30938KB +8582KB) (thread #84 +31) (stack: reserved=30028KB +8060KB, committed=30028KB +8060KB) - Code (reserved=280682KB +8425KB, committed=85422KB +47229KB) - GC (reserved=103695KB +2538KB, committed=103695KB +2538KB)
) ) ( Total: reserved=3224257KB +49008KB, committed=1987281KB +89092KB - Java
Heap (reserved=1572864KB, committed=1572864KB) - Class (reserved=1137209KB +23765KB, committed=98565KB +25045KB) (classes #14873 +2984) - Thread (reserved=30938KB +8582KB, committed=30938KB +8582KB) (thread #84 +31) (stack: reserved=30028KB +8060KB, committed=30028KB +8060KB) - Code (reserved=280682KB +8425KB, committed=85422KB +47229KB) - GC (reserved=103695KB +2538KB, committed=103695KB +2538KB) M N ) )
8D 8D 8D 8D 8D 8D( 8D) 8D 8D 8D
8D 8D 8D 8D 8D 28 8 - ( ( ( (( ( ( ( ) -03 - ( ( ( ( () () ( ( ) ( ) ) ) ) - ) 0 18 B [ 104 4 8 9 P NM 6 5 C7G S 28 8 - -03 - - 18 B [ T G X
W 8F S 8 • G 8 • ) 11
1 • 11 C8 PTGS 9 1 • JM • T ST • ( • • JM
-server -Xms1536m -Xmx1536m -Xss256K -XX:MaxMetaspaceSize=256M -XX:+TieredCompilation -XX:ReservedCodeCacheSize=256m -XX:+UseCodeCacheFlushing -XX:NativeMemoryTracking=detail ()
)
( ) -server -Xms1536m -Xmx1536m -Xss256K -XX:MaxMetaspaceSize=256M -XX:+TieredCompilation -XX:ReservedCodeCacheSize=256m -XX:+UseCodeCacheFlushing
-XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled -XX:NativeMemoryTracking=detail ( )
)( -server -Xms1536m -Xmx1536m -Xss256K -XX:MaxMetaspaceSize=256M -XX:+TieredCompilation -XX:ReservedCodeCacheSize=256m -XX:+UseCodeCacheFlushing -XX:+UseG1GC
-XX:MaxGCPauseMillis=200 -XX:InitiatingHeapOccupancyPercent=45 -XX:NativeMemoryTracking=detail )(
08B% 08B 08B 08B( 08B) 08B 08B 08B 08B- 08B%
08B%% 08B% 08B% 08B%( 08B%) 48 8 1 -- % %(% %))( % % ( %% % ( -- 36 1 ) - % -- %% % ( %) % ( % %) % - % % % % % % % % ) 1% 1 % % ) % ( % % ( %% % ) % %) ) 3. 28 8RS P 566 7 %) 7 %) 48 8 1 36 1 1% 1 08B-J48 8 1 D 1% 1 JX C G 9 M ) 48 8 1 566
2 2 2 2 2 2 2 ( 2 )
2 2 2 2 2 2 2 02825545 1 ) ) ) ) ) ) ) ) ( ) 37 69 55 02825545 1 55 F 55 CD G 55
07C 07C 07C 07C 07C( 07C) 07C 07C 07C, 07C
07C 07C 07C 07C 07C ( 57 7 2 ( , ) , ( ( ( ( )( 36 2 ( , ( (( ( ) , ( ) , ) ( ( ) ) ,) 2 2 ( , , , ( ( ) ( ) , 8 = 9 S OM 57 7 2 4 9 7 78 C 3. 36 2 4 9 7 78 C ),3. 2 2 4 9 7 78 C () 3. 57 7 2 36 2 2 2 1B 2 1B 2 FGD D 9 S P
1 • • • • • •
i S F • • Fp MGc s t •
5 r d ae r • B r d 3 zu PS • o c C SP 0 R C Fl S
S a 6 • • . r F% G 2C
• l u e . r F • % FR P . r oC5 C 2 d • % e F F
1 • S M • M )- a P G
• ( C e C J M X
• • J C • a M • V G
• ) ( 0 ( ( 52 1
321 • = E 6 8 E: : # ::
# 7 • = E =9 6 =6 : 67 8 : # ## • = E 68 K: L 8 : # = L :9 8: E 7 : 6 : • = E LLL 9: =6 : : 4 ? 0 7 6 6 76 : 6 76 : 8 :8 • = E LLL 9: =6 : : 4 ? 0 7 6 8 8 : 6 L::E 6 76 : 8 :8 • = E ?: 6 8 8 7 6 76 : 8 :8 ?6K6 : 6 : E 6 • = E 9 =6 : 6 : ?E 5 # # # • = E LLL : 6 6 : : LE .E-# • = E 9 8 68 : 8 89 /# # # # 67: 9: = • = E =6 : 67 ?E : # # # • = E 7 6 =: :9 L : # # # 99 :L6 : 7: 8= 6 : • = E : ? : :8= ?6K6 = E • = E E 7 7 : :6 L= 9 : ?6K6 E 8: 8 : : : =6
G T5 - • F N C • 0 •
F G • % 6
si X-3 : • = 3 • 2 e X
0 RxB a • R p P 2 Ru GoX • M = 3 Rd y lR si G o • T 2 Ro u P • = 3 P = 3 2 R e n X P wr • 0 Rpm RgR R z MCNS t
T • • N • N 2 T • -
4 1 2 65
22 . 6 6 : / • 22 . 6
6 : / - • +0 oe l T s X Ic • S X IcJ oe n z • oe n X IcRt vr • d ghimp wNUX • 4 C 22 0 6 = C af nbR = :CC EEE E 44 6 == = : 6 / 6 6 C