Preface
There are many comments on the Internet that the Java market is now more saturated. We don't have to dispute whether it is right or not. From the current situation, Java has always competed with a lot of people. Both college graduates and trained people account for a large base. In recent years, due to high salaries and wide demand, the number of people who switch to Java has been increasing, competition is still increasing, recruitment is the best choice, and the threshold requirements are constantly increasing.
Looking at the current Java job recruitment requirements, there are four words that can definitely be seen: that is-performance optimization. In fact, performance optimization is the deep water area of software engineering, and it is also a measure of the level of a programmer's ability. If you go to any major factory for an interview, the problem you will encounter is Java performance optimization. So in order to pass better and improve system performance, what should we do? How to do? How to avoid CRUD boy becoming CRUD old boy? Don't panic! ! The editor recently just collected a book of Java performance optimization from a friend of Ali! It is divided into 6 parts, successively from the software design. Software coding, JVM tuning, and program troubleshooting are introduced to optimize methods for Java programs. The gap is more than a little bit!
Not much BB, let’s look at the main content and catalog
Due to the excessive content and the problem of the number of words and space, only the catalog and documents are displayed here. Friends in need can receive it for free by adding a private message to the assistant vx after one-click and three-link!
Overview of Java performance tuning
- Performance overview
- The level of performance tuning
- Design tuning
- Code tuning
- JVM tuning
- Database tuning
- Operating system tuning
- Basic tuning strategies and methods
- One step of optimization
- System optimization considerations
Design Optimization
Mainly introduces important performance-related design patterns, performance components and optimization methods. It focuses on the structure, usage and implementation details of singleton mode, agent mode, flyweight mode, decorator mode, observer mode, Value Object mode and business agent mode. In the performance optimization component, common components such as buffer, cache, and object pool are introduced in detail. For the basic method of performance optimization, the function and realization of load balancing, time for space and space for time are introduced.
Java program optimization
- String optimization processing
- Core data structure
- Use NIO to improve performance
- Reference type
- Tips to help improve performance
- Use exceptions with caution
- Use local variables
- Bit operations instead of multiplication and division
- Replace switch
- -Dimensional array instead of two-dimensional array
- Extract expression
- Unroll the loop
- Boolean operations instead of bit operations
- Use arrayCopy()
- Use Buffer for I/O operations
- Use clone() instead of new
- Static method instead of instance method
Parallel program development and optimization
- Parallel programming mode
- Spin lock & lock elimination
- Coroutine
JVM tuning
- Java virtual machine memory model
- Program counter
- Java virtual machine stack
- Native method stack
- Java heap
- Method area
- JVM memory allocation parameters
- Set the maximum heap memory
- Set minimum heap memory
- Set up the new generation
- Set persistent generation
- Set thread stack
- Heap proportional allocation
- Summary of heap allocation parameters
- Basics of Garbage Collection
- Common tuning cases and methods
- Reserve new objects in the new generation and large objects into the old generation
- Set the age of the object into the old age
- Stable and volatile heap size
- Throughput priority case
- Use large page case
- Reduce stall cases
- Practical JVM parameters
- JIT compilation parameters
- Heap snapshot (heap dump)
- Error handling
- Get GC information
- Class and object tracking
- Control GC
- Select class validator
- Thread control under Solaris
- Use large pages
- Compressed pointer
- Practical JVM tuning
- Introduction to Tomcat and startup acceleration
- Introduction to web applications
- Introduction and use of JMeter
- Web application running status before tuning
- Tuning process
Java performance tuning tool
Mainly introduces the commonly used performance collection tools and troubleshooting tools. Helps developers locate performance bottlenecks. Troubleshoot
Due to the excessive content and the problem of the number of words and space, only the catalog and documents are displayed here. Finally, friends who need it can directly add the assistant vx after one-click triple connection: you can get it 100% free! ! !