Slide 1

Slide 1 text

Beyond top(1) Command-Line Monitoring on the JVM Colin Jones @trptcolin 8th Light

Slide 2

Slide 2 text

command-line tooling

Slide 3

Slide 3 text

introspection & serviceability on the JVM

Slide 4

Slide 4 text

war stories

Slide 5

Slide 5 text

A long time ago in a startup far, far away…

Slide 6

Slide 6 text

Things are going pretty well

Slide 7

Slide 7 text

But strange things are afoot

Slide 8

Slide 8 text

the server sometimes gets really slow

Slide 9

Slide 9 text

the team has to manually restart the application server

Slide 10

Slide 10 text

Pain, frustration, anger

Slide 11

Slide 11 text

Just the facts

Slide 12

Slide 12 text

sometimes, things get slow

Slide 13

Slide 13 text

all requests seem to be affected

Slide 14

Slide 14 text

the JVM stays up

Slide 15

Slide 15 text

restart the JVM and everything is fine

Slide 16

Slide 16 text

What could it be?

Slide 17

Slide 17 text

Demo

Slide 18

Slide 18 text

More facts!

Slide 19

Slide 19 text

what application code was running

Slide 20

Slide 20 text

constant full GCs

Slide 21

Slide 21 text

what’s in the heap

Slide 22

Slide 22 text

What could it be?

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

No content

Slide 25

Slide 25 text

Mystery solved!

Slide 26

Slide 26 text

Now “just” fix it

Slide 27

Slide 27 text

idea 1: eliminate the leak

Slide 28

Slide 28 text

idea 2: eliminate the cache altogether?

Slide 29

Slide 29 text

idea 3: delete the feature

Slide 30

Slide 30 text

idea 4: re-think the problem

Slide 31

Slide 31 text

So we’re good, for now…

Slide 32

Slide 32 text

Lessons

Slide 33

Slide 33 text

“it’s slow” could mean lots of things

Slide 34

Slide 34 text

“high CPU” could mean lots of things

Slide 35

Slide 35 text

collecting data is crucial in a crisis

Slide 36

Slide 36 text

reproducing the issue helps me sleep at night

Slide 37

Slide 37 text

The right tools for the job

Slide 38

Slide 38 text

Other “right tools for the job”

Slide 39

Slide 39 text

Learning more

Slide 40

Slide 40 text

Books Books!

Slide 41

Slide 41 text

operators are standing by!

Slide 42

Slide 42 text

Thank you! Colin Jones @trptcolin