Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does Java VM allocate memory?

I am wondering how does Java VM allocate memory? does JAVA allocate memory in the physical memory in our computer? Right now I am trying to compare two data structures, linked list and array taking caution in terms of page fault, and cache hit/miss, to see the performance of each data structure in really low level(harddisk, memory, cache level)

like image 373
David Gao Avatar asked Mar 22 '26 16:03

David Gao


1 Answers

I don't know if this answers your question but IBM has a good article about how JVM uses native memory on Windows / Linux.

like image 147
Buhake Sindi Avatar answered Mar 25 '26 06:03

Buhake Sindi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!