JVM tuning is mainly for memory management tuning, including controlling the size of each generation and GC strategy. Since GC will suspend application threads when it starts garbage collection, which seriously affects performance, the purpose of tuning is to minimize the pause time of application threads caused by GC and reduce the number of Full GCs. The most critical parameters for generation size tuning: -Xms, -Xmx, -Xmn, -XX:SurvivorRatio, -XX:MaxTenuringThreshold, -XX:PermSize, -XX:MaxPermSize-Xms, -Xmx are usually set to the same value to avoid running The JVM memory must be continuously expanded. This value determines the maximum memory that the JVM heap can use. -Xmn determines the size of the new generation space. The ratio of the three areas of the new generation Eden, S0, and S1 can be controlled by -XX:SurvivorRatio (if the value is 4, it means: Eden:S0:S1 = 4:3:3)- XX:MaxTenuringThreshold control object
1. Java virtual machine learning - memory tuning
Introduction: JVM tuning is mainly for memory management tuning, including controlling the size of each generation and GC strategy. Since GC will suspend application threads when it starts garbage collection, which seriously affects performance, the purpose of tuning is to minimize the pause time of application threads caused by GC and reduce the number of Full GCs.
2. Summary and analysis of JVM tuning techniques
##Introduction: This article summarizes and analyzes JVM tuning techniques. Friends in need can refer to
Introduction: 1. Modify the memory settings under weblogicuser_projectsdomainsbase_domainbin setDomainEnv.cmd file: The setting size is determined according to the actual situation if %JAVA_VENDOR%==Sun ( set WLS_MEM_ARGS_64BIT=-Xms512m –Xmx1024m set WLS_MEM_ARGS_32BIT=-Xms512m –Xmx1024m ) else ( set WLS
[Related Q&A recommendations]:
java - What is the difference between jvm parameters -verbose:gc and -XX:+PrintGC?
The above is the detailed content of 10 recommended articles about jvm tuning. For more information, please follow other related articles on the PHP Chinese website!