Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

JDK not so hidden treasures

465 views

Published on

A journey through /bin of your JDK talk

Published in: Software
  • Be the first to comment

  • Be the first to like this

JDK not so hidden treasures

  1. 1. JDK not so hidden treasures
  2. 2. Andrzej Grzesik @ags313 andrzej@grzesik.it andrzejgrzesik.info
  3. 3. about:me
  4. 4. dev going deeper
  5. 5. java
  6. 6. If Java had true garbage collection, most programs would delete themselves upon execution Robert Sewell
  7. 7. tl;dr: log gc at least
  8. 8. every known problem becomes completely new when you add “in Java” stolen from: @mryapee
  9. 9. javac
  10. 10. javap
  11. 11. when things go…
  12. 12. does it run?
  13. 13. top // htop
  14. 14. jps instead of ps
  15. 15. jar
  16. 16. jmap instead of pmap
  17. 17. and jhat
  18. 18. stacktraces :)
  19. 19. kill -3 <pid>
  20. 20. caveat ;-)
  21. 21. jstack
  22. 22. quiz time
  23. 23. caveats only at safepoints, one thread at a time
  24. 24. jstat
  25. 25. custom options http://hg.openjdk.java.net/jdk9/jdk9/jdk/file/d49e247dade6/src/jdk.jcmd/share/ classes/sun/tools/jstat/resources/jstat_options
  26. 26. jstatd
  27. 27. from http://www.slideshare.net/stalar/diagnosing-your-application-on-the-jvm
  28. 28. jcmd
  29. 29. jmxsh jmxterm http://wiki.cyclopsgroup.org/jmxterm http://code.google.com/p/jmxsh/ and more
  30. 30. jvisualvm

×