[Java] JVM configuration

jvm 3 areas

1,young generation New new object 2,old generation Objects that have been used for a long time 3,permanent generation Information such as Class, method, etc.

Setting JVM memory parameters

  1. Maximum heap size -Xmx5M: Maximum heap size 5M
  2. Minimum heap size -Xms3M 3, new generation size -Xmn 4, permanent size -XX:PermSize -XX:MaxPermSize

How GC works 1,ScanVengeGC Target: young generation only Speed: fast Frequency: Frequent How it works: Copy only the object in use to survivor1 (to) without Survivor0 (From) Empty Survivor0 (From). 2,FullGC Target: young generation and old generation Speed: slow Frequency: Not generally done Execution timing: Memory is not released when running ScaVenge GC If not executed, out of memory error will occur How it works: Mark obj in use ---> Delete unused parts ---> Move fragmented memory to continuous memory

jvm.png

test https://github.com/YanHengGo/java

Recommended Posts

[Java] JVM configuration
Java
Java
What is JVM (Java Virtual Machine)?
Beginner's word No4 (Java command, JVM)
Java9 (based on Oracle JVM) catchup
[Java] Runtime Data Areas of JVM
Java learning (0)
Studying Java ―― 3
[Java] array
Java protected
[Java] Annotation
[Java] Module
Java array
Studying Java ―― 9
Java scratch scratch
Java tips, tips
Java methods
Java method
java (constructor)
Java array
[Java] ArrayDeque
java (override)
java (method)
Java Day 2018
Java string
java (array)
Java static
Java serialization
java beginner 4
JAVA paid
Studying Java ―― 4
Java (set)
java shellsort
[Java] compareTo
Studying Java -5
java reflexes
java (interface)
Java memorandum
☾ Java / Collection
Java array
Studying Java ―― 1
[Java] Array
[Java] Polymorphism
Studying Java # 0
Java review
java framework
Java features
[Java] Inheritance
FastScanner Java
Java features
java beginner 3
Java memo
java (encapsulation)
Java inheritance
[Java] Overload
Java basics
Decompile Java
[Java] Annotation
java notes
java beginner