
作者:ScottOaks著
页数:408
出版社:东南大学出版社
出版日期:2015
ISBN:9787564153830
电子书格式:pdf/epub/txt
内容简介
编程和测试经常被认为是两个不同的领域。在本书中,作为Java专家的作者Scott Oaks阐述了任何一个使用Java的人都应该深入了解代码是如何在JVM中运作的,以及如何调优性能。
通过本书,你将深入掌握包括Java应用性能,使用Java虚拟机(JVM)和Java平台,以及语言和API方面的知识。开发人员和性能工程师等也能够学到多种用来改进Java 7和Java 8应用程序性能的特性,工具和处理方法。
作者简介
Scott Oaks是Oracle公司的架构师,主要负责Oracle中间件软件的性能。他在1987年被Sun Microsystems公司雇用成为一名Java的传播者,并在2001年加入了该公司的Java性能组,这也是他现在的关注重点。Scott编写了O’Reilly出版社的多本有关Java安全、Java线程和Jini方面的书籍。
本书特色
java 技术具有卓越的通用性、高效性、平台移植性和安全性,广泛应用于个人pc、数据中心、游戏控制台、科学超级计算机、移动电话和互联网,同时拥有全球最大的开发者专业社群。在全球云计算和移动互联网的产业环境下,java更具备了显著优势和广阔前景。本书适合java程序员以及对java语言感兴趣的学习者。
目录
preface
1.introduction
a brief outline
platforms and conventions
jvm tuning flags
the complete performance story
write better algorithms
write less code
oh go ahead, prematurely optimize
look elsewhere: the database is always the bottleneck
optimize for the common case
summary
2.an approach to performance testing
test a real application
microbenchmarks
macrobenchmarks
mesobenchmarks
common code examples
understand throughput, batching, and response time
elapsed time (batch) measurements
throughput measurements
response time tests
understand variability
test early, test often
summary
3.a java performance toolbox
operating system tools and analysis
cpu usage
the cpu run queue
disk usage
network usage
java monitoring tools
basic vm information
thread information
class information
live gc analysis
heap dump postprocessing
profiling tools
sampling profilers
instrumented profilers
blocking methods and: thread timelines
native profilers
java mission control
java flight recorder
enabling jfr
selecting jfr events
summary
4.working with the jit compiler
just-in-time compilersran overview
hot spot compilation
basic tunings: client or server (or both)
optimizing startup
optimizing batch operations
optimizing long-running applications
java and jit compiler versions
intermediate tunings for the compiler
tuning the code cache
compilation thresholds
inspecting the compilation process
advanced compiler tunings
compilation threads
inlining
escape analysis
deoptimization
not entrant code
deoptimizing zombie code
tiered compilation levels
……
5.an introduction to garbage collection
6.garbage collection algorithms
7.heap memory best practkes
8.native memory best practices
9.threading and synchronization performance
10.java enterprise edition performance
11.database performance best practices
12.java se api tips
a.summary oftuning flags
index
1.introduction
a brief outline
platforms and conventions
jvm tuning flags
the complete performance story
write better algorithms
write less code
oh go ahead, prematurely optimize
look elsewhere: the database is always the bottleneck
optimize for the common case
summary
2.an approach to performance testing
test a real application
microbenchmarks
macrobenchmarks
mesobenchmarks
common code examples
understand throughput, batching, and response time
elapsed time (batch) measurements
throughput measurements
response time tests
understand variability
test early, test often
summary
3.a java performance toolbox
operating system tools and analysis
cpu usage
the cpu run queue
disk usage
network usage
java monitoring tools
basic vm information
thread information
class information
live gc analysis
heap dump postprocessing
profiling tools
sampling profilers
instrumented profilers
blocking methods and: thread timelines
native profilers
java mission control
java flight recorder
enabling jfr
selecting jfr events
summary
4.working with the jit compiler
just-in-time compilersran overview
hot spot compilation
basic tunings: client or server (or both)
optimizing startup
optimizing batch operations
optimizing long-running applications
java and jit compiler versions
intermediate tunings for the compiler
tuning the code cache
compilation thresholds
inspecting the compilation process
advanced compiler tunings
compilation threads
inlining
escape analysis
deoptimization
not entrant code
deoptimizing zombie code
tiered compilation levels
……
5.an introduction to garbage collection
6.garbage collection algorithms
7.heap memory best practkes
8.native memory best practices
9.threading and synchronization performance
10.java enterprise edition performance
11.database performance best practices
12.java se api tips
a.summary oftuning flags
index















