Installation Environment Vmware Workstation pro It is recommended to use the snapshot to store the state of each installation stage to avoid installation failures and causing the installation to start from scratch. Ubuntu 22.04 windows 11 Hardware settings create 3 VM: 4 cores and 4G memory and 100G capacity Before installing K8s (All use the root user) set host: 192.168.47.135 master 192.168.47.131 node1 192.168.47.132 node2 set root ssh connection: sudo su - echo "PermitRootLogin yes" >> /etc/ssh/sshd_config systemctl restart sshd sudo passwd ssh-keygen for i in {master,node1,node2}; do ssh-copy-id root@$i; done set Ipvs and conf create conf file: for i in {master,node1,node2}; do ssh root@$i 'cat << EOF > /etc/modules-load.d/containerd.conf overlay br_netfilter EOF'; done execute conf: for i in {master,node1,node2}; do ssh root@$i 'modprobe overlay;modprobe br_netfilter;'; done create 99-kubernetes-cri.conf file: for i in {maste...
The java memory model has multiple areas to do different jobs, this model is in user space because it has no I/O control.
There are these parts:
- Program counter register:
- For java multi-thread switching different threads, and same functionality as OS counters.
- (PC) Registers are created every time a new thread is created. The PC holds a pointer to the current statement being executed in its thread. If the currently executing method is 'native', then the value of the program counter register will be undefined.
- Stack:
- Private for each thread.
- It contains method-specific primitive values and references to objects referenced from methods in the heap.
- Whenever we call a new method, a new block is created on top of the stack which contains values specific to that method
- Native Method stacks:
- JVM that supports native methods will have native method stacks. It is used for native methods, and created per thread.
- Heap:
- Heap data area is used to store objects of classes and arrays.
- Heap memory is common and shared across multiple threads.
- This is where the garbage collector comes into picture.
- Method area:
- Method area is created at JVM startup and shared among all the threads.
- Method area has per class structures and fields. Nothing but static fields and structures.
- Runtime constant pool is part of method area.
留言
張貼留言