Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

The Java Performance Companion: Will be useful for whom?  RSS feed

 
Ganesh Patekar
Bartender
Posts: 696
23
Eclipse IDE Hibernate Java jQuery MySQL Database Netbeans IDE Oracle Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
  • Will The Java Performance Companion book be useful for 2+ year experienced Java developer?
  • Does this book provide sample examples to show, how to write code to improve the performance of application?
  • Does this book provide diagrammatic representation wherever necessary to understand the concepts like GC mechanism?
  •  
    Charlie Hunt
    author
    Greenhorn
    Posts: 11
    5
    • Likes 1
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Hi Ganesh,

    Responses to your fine questions.

    > Will The Java Performance Companion book be useful for 2+ year experienced Java developer?

    It might ;-)

    If you have interest in wanting to know more details of the G1 garbage collector, how it works, how to tune it, then yes it should be useful.
    If you have interest in either wanting to learn about some of the internal parts of the HotSpot JVM, or have interest in how to triage a situation that resulted in an unexpected JVM failure, then the content on the HotSpot Serviceability Agent would be useful.

    If there are other areas of Java performance that may be of interest, than a look at the table of content of the Java Performance might be of some interest.

    > Does this book provide examples to show, how to write code to improve the performance of an application?

    No it does not provide examples on how to write code to improve the performance of an application.  It focuses more on either tuning G1 GC, through some examples, or how to use the Serviceability Agent, again through examples.
    As for how to write code to improve performance of an application ... you may have seen in one of the other threads here there is a suggestion to write code in its most natural form along with a couple suggestions to think about? I suppose I could add to that and say that choosing / using the most appropriate data structures and algorithms fit into that "writing code in its natural form" description.

    > Does this book provide diagrammtic representation where necessary to understand the concepts like GC mechanism?

    Yes there are diagrams in both the GC content and Serviceability Agent content.
     
    Poonam Parhar
    author
    Greenhorn
    Posts: 2
    5
    • Likes 1
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Hi Ganesh,

    > Does this book provide diagrammtic representation where necessary to understand the concepts like GC mechanism?

    The Serviceability Agent offers a graphical tool 'HSDB' that can be used to look at the JVM representation of objects in the Java Heap, search and explore various memory pools of the JVM, and compute the reverse pointers to determine how an object is reachable. These utilities can greatly help in understanding the JVM internals.
     
    Ganesh Patekar
    Bartender
    Posts: 696
    23
    Eclipse IDE Hibernate Java jQuery MySQL Database Netbeans IDE Oracle Spring Tomcat Server
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    First of all congratulations to Charlie Hunt, Poonam Parhar,  Monica Beckwith and  Bengt Rutisson. Also thank you for reply.

    Recently I read about JVM architecture where I came to know about class loader subsystem, run time data area, execution engine and most important which speed up compilation process that is JIT which compiles code into native code and How HotSpot VM monitors the code which is being executed mostly.

    All of these were just theoretical but never checked practically. Yes I had already gone through the table of content in this morning which seems really interesting to peruse specially GC1, internals of the HotSpot VM. I always prefer to draw diagrams wherever possible to understand the concept and It's really cool to have diagrams of GC content.
    Do you I have to read Charlie Hunt and Binu John’s classic Java Performance before reading The Java Performance Companion or I can directly read this book?
     
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!