• Post Reply Bookmark Topic Watch Topic
  • New Topic

The Java Performance Companion book question

 
Krystian Kowalski
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello and welcome to the ranch!

I was thinking about reading a book "Java Performance" and i have a question to you Charlie How does this new book differs from "Jave performance"? I know, that new book includes jdk 1.8. Which one would you advise to read first?
And one more question to all:
All of the advices that you provide in this book is mostly about JVM so it's also gonna be useful for scala developer, am i right ?
 
Campbell Ritchie
Marshal
Posts: 52516
118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please supply a link to the old book, otherwise nobody will know which book you are discussing.
 
Campbell Ritchie
Marshal
Posts: 52516
118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found this. Is that the old book you meant?
 
Krystian Kowalski
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, sorry
 
Charlie Hunt
author
Greenhorn
Posts: 11
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Krystian,

The two book are intended to be complimentary of each other. The first one (Java Performance), given the time frame it was written (about 5 years ago), does not cover Java 8 features, or features that also impact the JVM in Java 8 such as G1 GC.

Depending on what you are looking for, I see you mentioned you are a Scala developer, there may be things that may be more beneficial in one book than the other. A point I am trying to make here is, the topics and content between the two books are not intended to overlap.

Java Performance gives an all around view of many different subjects / topics. I think my two favorite chapters in Java Performance are the two that offer a JVM overview (what's in that black box?) and the step by step JVM tuning chapter. Both of those may have some applicability to you as a Scala developer, especially if you would a general understand of a modern JVM and how to go about tuning for an application including one developed with Scala.  The Java Performance Companion does extensive coverage of the G1 garbage collector (why it was developed, how it works and how to tune it), and it also has in-depth information on how to use a triaging tool to help diagnose JVM failures, called the Serviceability Agent, (it can also be used to look at the nitty gritty internal details of the JVM), and there's an Appendix that contains some JVM command line option descriptions, along with its applicable to use them. These were added to compliment the ones that were in the Java Performance Appendix.

So if you have interest in knowing more about G1 GC, or learning about the JVM failure triaging tool (the Serviceability Agent), then Java Performance Companion would be of interest to you. There may be some command line options that may be of interest there too, but I have a hard time suggesting someone buy the book for a couple JVM command line option descriptions. ;-)

If you have interest in learning more about the HotSpot JVM, how to tune it, performance monitoring, profiling, and/or also coverage into Java EE performance, then Java Performance would be of interest.

Hope that helps!
 
Krystian Kowalski
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your answer !

I will begin with Java Performance and then look on The Java Performance Companion I am Java developer but got some Scala developer friends who are also interested in this topic That's why I've asked. Both are JVM languages so that knowledge looks really useful
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!