Java Performance Tuning Learning notes (1)

Source: Internet
Author: User

    • Reference indicators for performance
      • Execution time-from the time the code starts running to the end
      • CPU time--the time that a function or thread consumes the CPU
      • Memory allocation-a scenario in which a program consumes memory at run time
      • Disk throughput--Describe the use of IO
      • Network throughput--describe the use of the network
      • Response time-The response time that the system makes to a user's behavior or time
    • The bottleneck resources for performance may be:
      • Disk IO
      • Network operation
      • Cpu
      • Exception--For Java applications, abnormal replenishment and processing is very resource-intensive, if the program high frequency of exception handling will affect the overall performance
      • Database
      • Lock contention-increases the cost of context switching
      • Memory
    • Level of performance tuning
      • Design tuning-macro tuning, design a reasonable plan before development, directly determine product quality, can avoid problems in advance. Design optimization, designers should be familiar with design methods, design patterns, basic performance components and common optimization ideas.
      • Code Tuning-micro-tuning, focusing on performance differences in implementation
      • JVM tuning-the memory of a late development requires a certain understanding of how the JVM works and the basic memory structure. If the structure of the heap memory, the type of GC, etc.
      • Database tuning
        • Application layer optimization of SQL statements--optimization of SQL statements
        • Optimize your database-a well-designed table structure
        • Optimize database software-for example, set up a reasonably sized shared pool, cache buffer, or PGA, etc.
      • Operating system tuning-such as shared memory segments in Unix, semaphores, shared memory maximums, etc.

Java Performance Tuning Learning notes (1)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.