The effect of the JVM's direct memory

Source: Internet
Author: User

Direct Memory

Direct memory is an important issue, first of all it is not part of the running data area, nor is it part of the Java Virtual Machine specification. This appears primarily related to NIO, a channel-and buffer-based IO approach, which can use the native library to directly allocate out-of-heap memory, and then operate on a reference to the memory outside the Java heap through a Directbytebuffer object that exists in the Java heap java1.4 , you can improve related performance because you avoid copying data back and forth in the Java heap and the native heap.

That's the point, since this direct memory does not belong to the Java heap management, but also by the total memory limit, if the administrator set the class dynamically extended JAVAJVM, if the direct memory is ignored, the final sum of actual memory is greater than the actual memory, when the JVM to dynamically expand memory, This OutOfMemoryError error will occur.

The effect of the JVM's direct memory

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.