Java-100 Advanced -JVM Tian knowledge memory - Knowledge Shop (III)

Knowledge Shop: Light to build knowledge, continuously updated each time less knowledge, the reading is not tired. Does not account for too much time, kept the knowledge to awaken your deep memories.

Java Memory Model (JMM)

JVM memory model is the JVM memory partition

Java memory model is a virtual machine specification

1.  Jvm memory according to the operational state and when the divided memory specifications
file

  1. Java memory area
    file
    2.1 ** ** thread-safe
    file
    2.1.1 Program Counter
    file
    2.1.2 virtual machine stack
    file
    2.1.3 Native Method
    file
    2.2 thread safe
    2.2.1 Method zone
    file
    2.2.2 heap contained in the following figure
    file
    2.2.3 heap memory division
    file

to sum up:

  1. Calculator program is not the only area OOM
  2. Gc heap is the main place of
  3. Thread-safe zones: virtual machine stack, local method, the program counter
  4. Non-thread-safe zones: zone method, heap
  5. Heap: divided into Eden, From Survivor, To Survivor
  6. Heap: district ratio: 8: 1: 1

    Study notes or paper finishing or reproduced by the zshipu.com, if infringement please contact, it will change.

Guess you like

Origin www.cnblogs.com/sblig/p/11875790.html