Impact of Direct Memory on jvm, jvm memory

Source: Internet
Author: User

Impact of Direct Memory on jvm, jvm memory

Direct Memory

Direct Memory is an important issue. First, it is neither a part of the running data zone nor a part of the Java Virtual Machine specification. This issue is mainly related to NIO after java1.4, an I/O Method Based on channels and buffers. It can use the Native function library to directly allocate off-heap memory, then, you can use the DirectByteBuffer object in the java heap to reference the memory outside the java heap to improve the performance, this prevents the back-and-forth replication of data in the java heap and native heap.

The point is that, since the direct memory is not managed by the java heap, it will also be limited by the total memory. If the administrator sets the dynamically scalable java JVM for the course, if the direct memory is ignored and the total actual memory is greater than the actual memory, the outofmemoryerror will occur when the jvm needs to dynamically expand the memory.

Related Article

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.