在好例子网,分享、交流、成长!
您当前所在位置:首页Others 开发实例一般编程问题 → Java Performance

Java Performance

一般编程问题

下载此实例
  • 开发语言:Others
  • 实例大小:12.23M
  • 下载次数:1
  • 浏览次数:91
  • 发布时间:2020-08-12
  • 实例类别:一般编程问题
  • 发 布 人:robot666
  • 文件格式:.pdf
  • 所需积分:2
 

实例介绍

【实例简介】
java性能监控,想深入jvm的同学可以下载哦,良心推荐。还推荐system perfrmance不错的教程
OREILLY Java performance The Definitive guide Coding and testing are often considered separate areas of expertise. In this book, author and Java expert Scott Oaks takes the approach that anyone who works with Java should be equally adept at understanding how code behaves in the JVM, as well as the tunings likely to help its performance Gain in-depth knowledge of Java application performance, using the Java Virtual Machine (vm) and the Java platform, including the language and APl. With this comprehensive guide, developers and performance engineers alike will learn a variety of features, tools, and processes for mproving the way Java 7 and 8 applications perform Apply four principles for obtaining the best results from performance testing a Use jdK tools to collect data on how a Java application is perTorming a Understand the advantages and disadvantages of using a JIT compiler a Tune JVM garbage collectors to affect programs as little as possible a Use techniques to manage heap memory and JVM native memory a Maximize Java threading and synchronization performance features a Tackle per formance issues in Java EE and Java SE APls Improve Java-driven database application performance Scott oaks is an architect at oracle corporation where he works on the perfor mance of Oracle's middleware software employed by sun microsystems in 1987 he became Suns Java evangelist and in 2001 joined their Java Per formance group, which is now his primary focus. Scott has written O'reilly books on Java Security, Java Threads, and Jin PROGRAMMING/JAVA 口口 Twitter: oreillymedia facebook. com/oreilly US$449 CAN$47.99 ISBN:978-1-449-35845-7 54499 9781449135845 Java performances The definitive guide Scott oaks Beijing· Cambridge.mham·Kh· Sebastopol. TokyoOREILLY Java performance: the definitive guide by scott oaks Copyright C 2014 Scott Oaks. All rights reserved Printed in the United States of america Published by o reilly media, InC., 1005 Gravenstein Highway North, Sebastopol, CA 95472 OReilly books may be purchased for educational,business, or sales promotional use. Online editions are alsoavailableformosttitles(http://my.safaribooksonline.com).fOrmoreinformation,contactourcorporate institutionalsalesdepartment800-998-9938orcorporate@oreilly.com Editor: Meghan blanchette Indexer: Judith McConville Production Editor: Kristen Brown Cover Designer: Karen Montgomery Copyeditor: Becca Freed Interior Designer: David Futato Proofreader: Charles roumeliotis strator: Rebecca demarest April 2014 First edition Revision History for the First Edition: 2014-04-09 First release Seehttp://oreilly.com/catalog/errata.csp?isbn=9781449358457forreleasedetails Nutshell Handbook, the Nutshell Handbook logo, and the O Reilly logo are registered trademarks ofO Reilly Media, Inc. Java Performance: The Definitive Guide, the image of saiga antelopes, and related trade dress are trademarks of O Reilly Media, Inc Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and O Reilly Media, Inc was aware ofa trademark claim, the designations have been printed in caps or initial caps While every precaution has been taken in the preparation of this book, the publisher and author assume no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein ISBN:978-1-449-35845-7 Table of contents 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 22455678 Look Elsewhere: The Database Is always the bottleneck Optimize for the Common Case ummary 10 2. An Approach to Performance Testing 11 Test a Real application 11 Microbenchmarks Macrobenchmarks 16 Mesobenchmarks 18 Common Code examples 20 Understand Throughput, Batching, and Response Time 24 Elapsed Time(Batch) Measurements 24 Throughput Measurements 25 Response Time Tests 26 Understand variability 29 Test early, Test Often 33 Summary 36 3. A Java performance toolbox ,37 Operating system Tools and analysis 37 CPU USage 38 The CPU Run Queue 41 Disk usage 43 Network Usage Java Monitoring Tools 46 Basic vm information Thread information 50 Class Information 51 Live gC analysis 51 Heap Dump Postprocessing 51 Profiling Tools 51 Sampling Profilers 52 Instrumented profilers 54 Blocking Methods and Thread Timelines 55 Native Profilers ava mission control Java Flight Recorder 60 Enabling JFR Selecting FR Events Summary 72 4. Working with the JIT Compiler.............. Just-in-Time Compilers: An Overview 73 Hot Spot Compilation 75 Basic Tunings: Client or Server (or Both) Optimizing Startup Optimizing batch Operations 80 Optimizing Long-Running Applications 81 Java and JIT Compiler versions 82 Intermediate Tunings for the Compiler 85 Tuning the Code Cache 85 Compilation Thresholds 87 Inspectin g the Compilation Process 90 Advanced Compiler Tunings 94 Compilation Threads 94 Inlining 96 E A nalySiS 97 Deoptimization 8 Not entrant code 98 Deoptimizing Zombie Code 101 Tiered Compilation Levels 101 Table of contents ummary 103 5. An Introduction to Garbage collection 105 Garbage Collection Overview 105 Generational Garbage Collectors 107 GC Algorithms 109 Choosing a gC algorithm 113 Basic Gc tuning 119 Sizing the Heap 119 Sizing the generations 122 Sizing permgen and metaspace 124 Controlling Parallelism 126 Adaptive Sizing 127 GC Tools 128 Summary 131 6. Garbage collection algorithms....................... 133 Understanding the Throughput Collector 133 Adaptive and static heap size tuning 136 Understanding the CMs Collector 140 Tuning to Solve Concurrent Mode Failures Tuning CMS for Permgen 148 Incremental CMs 149 Understanding the Gl Collector 150 Tuning GI 157 Advanced tunings 159 Tenuring and Survivor Spaces 159 Allocating Large Objects 163 AggressiveHeap 171 Full Control Over Heap Size 173 Summary 174 7. Heap memory best practices 177 Heap analysis 177 Heap Histograms 178 Heap dumps 179 Out of Memory errors 184 g 188 Reducing Object Size 188 Lazy initialization 191 Immutable and Canonical objects 196 String interning g 198 Table of content Object Lifecycle management 202 Object reuse 202 Weak, Soft, and Other References 208 Summary 221 8. Native Memory Best Practices 223 Footprint 223 Measuring Footprint 224 Minimizing footprint 225 Native NIO Buffers 226 Native Memory Tracking 227 JVM Tunings for the Operating System 230 Large pages 230 C compressed oops 234 Summary 236 9. Threading and Synchronization Performance................. 237 Thread pools and Thread Poolexecutors 237 Setting the maximum Number of Threads 238 Setting the Minimum Number of Threads 242 Thread Pool Task sizes 243 Sizing a ThreadPoolExecutor 244 The ForkJoin Pool 246 Automatic Parallelization 252 Thread Synchronization 254 Costs of Synchronization 254 Avoiding synchronization 259 False Sharing 262 JVM Thread Tunings 267 Tuning Thread Stack Sizes 267 Biased Locking 268 Lock Spinning 268 Thread Priorities 269 Monitoring Threads and Locks 270 Thread visibility 270 Blocked Thread visibility 271 ummary 275 10. Java Enterprise Edition Performance ,277 Basic Web container performance 277 Http Session State 280 Thread pools 283 ⅵi| Table of contents Enterprise Java Session Beans 283 Tuning ejB pools 283 Tuning EJB Caches 286 Local and remote instances 288 XML and jSoN Processing 289 Data size 290 An Overview of Parsing and Marshalling 291 Choosing a Parser 293 XML Validation 299 Document models 302 Java Object Models 305 Object Serialization 307 Transient fields 307 O iding default serializati 307 Compressing serialized data 311 K eeping Track of duplicate objects 31 Java EE Networking APis 316 Sizing Data Transfers 316 Summary 318 11. Database performance best practices ,321 JDBC 322 JDBC Drivers 322 Prepared Statements and Statement Pooling 324 JDBC Connection Pools 326 Transactions 327 Result set processing 335 JPA 337 Transaction Handling 337 Optimizing jPa Writes 340 Optimizing JPA Reads 342 JPA Caching 346 JPA Read-Only Entities 352 Summary 353 12. Java se api tips ,355 Buffered i/o 355 Classloading 358 Random numbers 362 ava Native interface 364 Exceptions 366 String performance 370 Table of Contents 【实例截图】
【核心代码】

标签:

实例下载地址

Java Performance

不能下载?内容有错? 点击这里报错 + 投诉 + 提问

好例子网口号:伸出你的我的手 — 分享

网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警