Three levels of Java performance optimization __java

Source: Internet
Author: User

Java is not just a language concept, in addition to the definition of language, there are Java Virtual machine specifications (that is, compiled bytecode format and memory model) and memory recycling mechanism.


1, in the Java language Code layer, provides the syntax rules.

2, in the class byte code compilation, the memory model as well as the byte code instruction execution aspect, is defined by the Java Virtual Machine specification.

3, and in the memory recovery mechanism is to provide several implementations, through the Java startup parameter settings.

Above three layers:

The Java language is not here to say more.

The compilation of class bytecode and the content and memory recovery mechanisms described in the Java Virtual Machine specification are the two main components of Java performance optimization.


Many people think that Java is the interpretation of execution, so slow, so to speak, in fact, very inaccurate.

Now the mainstream commercial virtual machines provide both interpreters and compilers.

You can use parameter settings on the Java command line to perform Java bytecode using an interpreter or a compiler

-xint setting uses an interpreter, that is, interpretation mode

-xcomp setting uses compilers, that is, compilation mode

You can view it through java-version.





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.