Native method stack and java heap
The local method stack is integrated with the java virtual machine stack in the HotSpot version. The local method stack is not distinguished separately. But there is such an area in the java virtual machine.
effect:
1. The local method stack executes java method services for the virtual machine stack
2. The local method stack executes navtive method services for the virtual machine stack
java heap
The java heap is the heap memory of the thread shared area. It is shared by all threads.
effect:
1. Store the object instance
2. The main area managed by the garbage collector
3. New generation, old generation, Eden space
Set size by parameter: -Xmx -Xms
Will report OutMemoryError error