In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces you how to carry out JVM memory layout, the content is very detailed, interested friends can refer to, hope to be helpful to you.
JVM memory: heap, method area, virtual machine stack, local method stack, program counter
The heap and method area threads are shared, and the last three threads are private.
Heap: the main area of GC where instance objects and array objects are stored. The heap allocates memory for objects: collision pointers and free lists. Object access: handle and direct access.
Method area: store data such as class information, constants, static variables, compiled code, etc. that have been loaded by the virtual machine.
Virtual machine stack: the memory model that the Java method executes. When each method is executed, a stack frame is created to store local variables, Operand stacks, dynamic links, method exits, and so on.
Local method stack: basically the same as the virtual machine stack, but the local method stack mainly stores the method information of native.
Program counter: this area is a small area in memory. Is the bytecode, line number indicator that the current thread is executing. It is private to threads and does not interfere with each other. Is the only area in the jvm that does not specify the OutOfMemoryError situation.
On how to carry out the JVM memory layout to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.