Java性能权威指南

奥克斯 (Scott Oaks)

出版时间

2016-02-29

ISBN

9787115413765

评分

★★★★★
书籍介绍
市面上介绍Java的书有很多,但专注于Java性能的并不多,能游刃有余地展示Java性能优化难点的更是凤毛麟角,本书即是其中之一。通过使用JVM和Java平台,以及Java语言和应用程序接口,本书详尽讲解了Java性能调优的相关知识,帮助读者深入理解Java平台性能的各个方面,最终使程序如虎添翼。 通过阅读本书,你可以: 运用四个基本原则最大程度地提升性能测试的效果 使用JDK中自带的工具收集Java应用的性能数据 理解JIT编译器的优缺点 调优JVM垃圾收集器以减少对程序的影响 学习管理堆内存和JVM原生内存的方法 了解如何最大程度地优化Java线程及同步的性能 解决Java EE和Java SE应用程序接口的性能问题 改善Java驱动的数据库应用程序的性能
作者简介
Scott Oaks 是Oracle公司的一位架构师,专注研究Oracle中间件软件的性能。加入Oracle之前,他曾于Sun Microsystem公司任职多年,在多个技术领域都有建树,包括SunOS的内核、网络程序设计、Windows系统的远程方法调用(RPC)以及OPEN LOOK虚拟窗口管理器。1996年,Scott成为Sun公司的Java布道师,并于2001年加入Sun公司的Java性能小组——从那时起他就一直专注于Java的性能提升。此外,Scott也在O'Reilly出版社出版了多部书籍,包括Java Security、Java Threads、JXTA in a Nutshell和Jini in a Nutshell。
AI导读
核心看点
  • 系统讲解JVM调优、GC策略及线程同步
  • 提供性能测试四大原则与JDK内置工具用法
  • 涵盖从算法优化到数据库调优的全链路实践
读者共识
  • 内容覆盖全面但深度不足,缺乏透彻解析
  • 翻译生硬晦涩,严重影响阅读体验与理解
  • 适合入门了解概念,进阶需补充其他资料
精彩摘录
  • "Performance analysis is all about visibility—knowing what is going on inside of an application, and in the application’s environment. Visibility is all about tools. And so performance tuning is all about tools."
  • "Compiler Flags Are Different Unlike most Java flags, the flags to select a compiler are different: most of them do not use -XX. The standard compiler flags are simple words: -client, -server, or -d64. The exception here is tiered compilation, which is enabled with a flag in the common format: -XX:+T"
  • "There are four main garbage collectors available in current JVMs: the serial collector (used for single-CPU machines), the throughput (parallel) collector, the concurrent (CMS) collector, and the G1 collector."
  • "The cost for a contended operation in code using CAS instructions is unpredictable. CAS primitives are based on an optimistic strategy: the thread sets a value, executes some code, and then makes sure that the initial value has not changed. If it has, then the CAS-based code must execute the code ag"
目录
推荐序  xi
前言  xii
第1章 导论  1
1.1 概述  2
1.2 平台版本约定  2

显示全部
用户评论
很高深啊,关于jvm和gc的部分,还是能够理解的,会再读!
至少详细讲了G1就比其他好
满满干货
内容相对较新
介绍了很多最佳实践。但是不知道是不是翻译的问题,读起来很不顺畅
看过深入理解jvm后觉得这个有点一般呢,可能也是因为没怎么读进去吧
不管怎么样,对我的帮助还是蛮大的。不过嘛,有些东西给了个开头,然后就草草收尾了,读的一点都不尽兴。最多的收获就是列了一个超级大的todolist,然而并没有什么卵用
jvm部分还可以 后边不少东西已经过时了
这本书仅仅是个介绍 如何监控Linux本机 CPU, 内存,磁盘,网络,可以看性能之巅 如何监控Java,Troubleshooting Guidehttps://docs.oracle.com/javase/8/docs/technotes/guides/troubleshoot/toc.html 编译,可以看编译原理 垃圾收集,可以看垃圾回收的算法与实现或者Garbage Collection;然后看 HotSpot Virtual Machine Garbage Collection Tuning Guide https://docs.oracle.com/javase/8/docs/technotes/guides/vm/gctuning/
下载
收藏