Heap, Virtual, and Physical Memory
843829Oct 24 2007 — edited Jan 3 2008Q. How does Heap relate to the virtual memory being used in a OS?
Q. Do java processes use only heap memory?
Q. Does heap memory only use physical memory or can this also be virtual OS memory.
From what I read, it seems that heap memory is only physical contiguous memory and that java objects are loaded into this memory. That would seem to say that java applications do not use OS virtual memory. Or do only java objects load into heap, but actual data loads into virtual memory.
Generally this is for Linux and Windows kernels.
Thanks