当前位置:网站首页>[confluence] JVM memory adjustment

[confluence] JVM memory adjustment

2022-07-07 19:37:00 cindysz110

background :Confluence 7.16.2 Data Center edition , The default installation is JVM Memory set to 1024M, When the number of simultaneous access users is large , The service is stuck , Journal JVM OutOfMemoryError.

Problem solving : modify Confluence The configuration file , increase JVM Memory .

step :

1) stop it Confluence service

[[email protected] ~]# cd /data/atlassian/confluence/bin
[[email protected] bin]# ./stop-confluence.sh

2) modify Confluence The configuration file

[[email protected] bin]# vi /data/atlassian/confluence/bin/setenv.sh
 modify  CATALINA_OPTS="-Xms1024m -Xmx1024m ${CATALINA_OPTS}"
 by    CATALINA_OPTS="-Xms8g -Xmx8g ${CATALINA_OPTS}"

explain :

  •  -Xms:Java Heap Maximum , The default is physical memory 1/4, The best setting depends on the size of the physical memory and other memory overhead in the computer
  • -Xmx:Java Heap Initial value ,Server End JVM It is best to -Xms and -Xmx Set to the same value , Develop a test machine JVM You can keep the default value

3) start-up Confluence service

[[email protected] ~]# cd /data/atlassian/confluence/bin

[[email protected] bin]# ./startup.sh

After the service starts successfully , You can log in with an administrator account , Get into General configuration - system information   see JVM Whether the memory configuration is modified successfully .

原网站

版权声明
本文为[cindysz110]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207071727038727.html