I am curious whether the mappedbytebuffer occupies direct memory in Java? As mentiond in here
A direct byte buffer may also be created by mapping a region of a file directly into memory
When I map a file into memory, the direct memory should be used. But I started a program with JVM param "-XX:MaxDirectMemorySize=200MB" then I tried to map a file of 1GB into memory, it worked. What's more, I allocated a directByteBuffer with 200MB first and then tried to map the file of 1GB into memory, and it still worked! So, which part of the memory does mappedbytebuffer occupy?